diff --git a/package.json b/package.json index 4bbbcad..60bfb99 100644 --- a/package.json +++ b/package.json @@ -9,16 +9,22 @@ }, "dependencies": { "core-js": "^3.8.3", - "vue": "^3.2.13" + "primeicons": "^7.0.0", + "vue": "^3.2.13", + "vue-router": "^4.5.1" }, "devDependencies": { "@babel/core": "^7.12.16", "@babel/eslint-parser": "^7.12.16", + "@tailwindcss/postcss": "^4.1.13", "@vue/cli-plugin-babel": "~5.0.0", "@vue/cli-plugin-eslint": "~5.0.0", "@vue/cli-service": "~5.0.0", + "autoprefixer": "^10.4.21", "eslint": "^7.32.0", - "eslint-plugin-vue": "^8.0.3" + "eslint-plugin-vue": "^8.0.3", + "postcss": "^8.5.6", + "tailwindcss": "^3.4.17" }, "eslintConfig": { "root": true, diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..c3d6d5d --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,7 @@ +module.exports = { + plugins: { + // '@tailwindcss/postcss': {}, // ganti ini + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/public/images/bghero-select.jpg b/public/images/bghero-select.jpg new file mode 100644 index 0000000..27899ab Binary files /dev/null and b/public/images/bghero-select.jpg differ diff --git a/public/images/bghero.jpg b/public/images/bghero.jpg new file mode 100644 index 0000000..0203278 Binary files /dev/null and b/public/images/bghero.jpg differ diff --git a/public/images/but-nav-hiburan.png b/public/images/but-nav-hiburan.png new file mode 100644 index 0000000..3312142 Binary files /dev/null and b/public/images/but-nav-hiburan.png differ diff --git a/public/images/but-nav-hiburan.svg b/public/images/but-nav-hiburan.svg new file mode 100644 index 0000000..ba29a65 --- /dev/null +++ b/public/images/but-nav-hiburan.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + diff --git a/public/images/but-nav-home.png b/public/images/but-nav-home.png new file mode 100644 index 0000000..c8c9999 Binary files /dev/null and b/public/images/but-nav-home.png differ diff --git a/public/images/but-nav-home.svg b/public/images/but-nav-home.svg new file mode 100644 index 0000000..355d0fe --- /dev/null +++ b/public/images/but-nav-home.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + diff --git a/public/images/but-nav-koleksi.png b/public/images/but-nav-koleksi.png new file mode 100644 index 0000000..8cf7e63 Binary files /dev/null and b/public/images/but-nav-koleksi.png differ diff --git a/public/images/but-nav-koleksi.svg b/public/images/but-nav-koleksi.svg new file mode 100644 index 0000000..a86154f --- /dev/null +++ b/public/images/but-nav-koleksi.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + diff --git a/public/images/char-select-bg.png b/public/images/char-select-bg.png new file mode 100644 index 0000000..5413cf0 Binary files /dev/null and b/public/images/char-select-bg.png differ diff --git a/public/images/char/bear.png b/public/images/char/bear.png new file mode 100644 index 0000000..f95d628 Binary files /dev/null and b/public/images/char/bear.png differ diff --git a/public/images/char/bunny.png b/public/images/char/bunny.png new file mode 100644 index 0000000..4a7e3b6 Binary files /dev/null and b/public/images/char/bunny.png differ diff --git a/public/images/char/char-select-bg.png b/public/images/char/char-select-bg.png new file mode 100644 index 0000000..fd709d0 Binary files /dev/null and b/public/images/char/char-select-bg.png differ diff --git a/public/images/char/fox.png b/public/images/char/fox.png new file mode 100644 index 0000000..5e763f8 Binary files /dev/null and b/public/images/char/fox.png differ diff --git a/public/images/char/horse.png b/public/images/char/horse.png new file mode 100644 index 0000000..d948914 Binary files /dev/null and b/public/images/char/horse.png differ diff --git a/public/images/char/lion.png b/public/images/char/lion.png new file mode 100644 index 0000000..02e384c Binary files /dev/null and b/public/images/char/lion.png differ diff --git a/public/images/char/monkey.png b/public/images/char/monkey.png new file mode 100644 index 0000000..00570ae Binary files /dev/null and b/public/images/char/monkey.png differ diff --git a/public/images/char/pig.png b/public/images/char/pig.png new file mode 100644 index 0000000..ee67667 Binary files /dev/null and b/public/images/char/pig.png differ diff --git a/public/images/char/sheep.png b/public/images/char/sheep.png new file mode 100644 index 0000000..51ac71d Binary files /dev/null and b/public/images/char/sheep.png differ diff --git a/public/images/char/tiger.png b/public/images/char/tiger.png new file mode 100644 index 0000000..e312511 Binary files /dev/null and b/public/images/char/tiger.png differ diff --git a/public/images/footer.png b/public/images/footer.png new file mode 100644 index 0000000..09c608f Binary files /dev/null and b/public/images/footer.png differ diff --git a/public/images/icon-edit.svg b/public/images/icon-edit.svg new file mode 100644 index 0000000..f24265b --- /dev/null +++ b/public/images/icon-edit.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + diff --git a/public/images/logo.png b/public/images/logo.png new file mode 100644 index 0000000..17fb591 Binary files /dev/null and b/public/images/logo.png differ diff --git a/public/images/logobig.png b/public/images/logobig.png new file mode 100644 index 0000000..8d870c0 Binary files /dev/null and b/public/images/logobig.png differ diff --git a/public/images/propic-001.svg b/public/images/propic-001.svg new file mode 100644 index 0000000..1b03a0e --- /dev/null +++ b/public/images/propic-001.svg @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/propic-blank.svg b/public/images/propic-blank.svg new file mode 100644 index 0000000..7a43c6b --- /dev/null +++ b/public/images/propic-blank.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/qicon1.png b/public/images/qicon1.png new file mode 100644 index 0000000..1c09c2b Binary files /dev/null and b/public/images/qicon1.png differ diff --git a/public/images/qicon2.png b/public/images/qicon2.png new file mode 100644 index 0000000..7dcf148 Binary files /dev/null and b/public/images/qicon2.png differ diff --git a/public/images/qicon3.png b/public/images/qicon3.png new file mode 100644 index 0000000..0a0bc77 Binary files /dev/null and b/public/images/qicon3.png differ diff --git a/public/images/qtime.png b/public/images/qtime.png new file mode 100644 index 0000000..9d9ab3d Binary files /dev/null and b/public/images/qtime.png differ diff --git a/public/images/qup.png b/public/images/qup.png new file mode 100644 index 0000000..edcdca2 Binary files /dev/null and b/public/images/qup.png differ diff --git a/public/images/token-coin.svg b/public/images/token-coin.svg new file mode 100644 index 0000000..ec88104 --- /dev/null +++ b/public/images/token-coin.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/token-poin.svg b/public/images/token-poin.svg new file mode 100644 index 0000000..ae6fca3 --- /dev/null +++ b/public/images/token-poin.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/App.vue b/src/App.vue index 591a031..fce1f6f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,26 +1,48 @@ - - diff --git a/src/assets/images/bghero-select.jpg b/src/assets/images/bghero-select.jpg new file mode 100644 index 0000000..27899ab Binary files /dev/null and b/src/assets/images/bghero-select.jpg differ diff --git a/src/assets/images/bghero.jpg b/src/assets/images/bghero.jpg new file mode 100644 index 0000000..0203278 Binary files /dev/null and b/src/assets/images/bghero.jpg differ diff --git a/src/assets/images/but-nav-hiburan.png b/src/assets/images/but-nav-hiburan.png new file mode 100644 index 0000000..3312142 Binary files /dev/null and b/src/assets/images/but-nav-hiburan.png differ diff --git a/src/assets/images/but-nav-hiburan.svg b/src/assets/images/but-nav-hiburan.svg new file mode 100644 index 0000000..ba29a65 --- /dev/null +++ b/src/assets/images/but-nav-hiburan.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + diff --git a/src/assets/images/but-nav-home.png b/src/assets/images/but-nav-home.png new file mode 100644 index 0000000..c8c9999 Binary files /dev/null and b/src/assets/images/but-nav-home.png differ diff --git a/src/assets/images/but-nav-home.svg b/src/assets/images/but-nav-home.svg new file mode 100644 index 0000000..355d0fe --- /dev/null +++ b/src/assets/images/but-nav-home.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + diff --git a/src/assets/images/but-nav-koleksi.png b/src/assets/images/but-nav-koleksi.png new file mode 100644 index 0000000..8cf7e63 Binary files /dev/null and b/src/assets/images/but-nav-koleksi.png differ diff --git a/src/assets/images/but-nav-koleksi.svg b/src/assets/images/but-nav-koleksi.svg new file mode 100644 index 0000000..a86154f --- /dev/null +++ b/src/assets/images/but-nav-koleksi.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + diff --git a/src/assets/images/char-select-bg.png b/src/assets/images/char-select-bg.png new file mode 100644 index 0000000..5413cf0 Binary files /dev/null and b/src/assets/images/char-select-bg.png differ diff --git a/src/assets/images/char/bear.png b/src/assets/images/char/bear.png new file mode 100644 index 0000000..f95d628 Binary files /dev/null and b/src/assets/images/char/bear.png differ diff --git a/src/assets/images/char/bunny.png b/src/assets/images/char/bunny.png new file mode 100644 index 0000000..4a7e3b6 Binary files /dev/null and b/src/assets/images/char/bunny.png differ diff --git a/src/assets/images/char/char-select-bg.png b/src/assets/images/char/char-select-bg.png new file mode 100644 index 0000000..fd709d0 Binary files /dev/null and b/src/assets/images/char/char-select-bg.png differ diff --git a/src/assets/images/char/fox.png b/src/assets/images/char/fox.png new file mode 100644 index 0000000..5e763f8 Binary files /dev/null and b/src/assets/images/char/fox.png differ diff --git a/src/assets/images/char/horse.png b/src/assets/images/char/horse.png new file mode 100644 index 0000000..d948914 Binary files /dev/null and b/src/assets/images/char/horse.png differ diff --git a/src/assets/images/char/lion.png b/src/assets/images/char/lion.png new file mode 100644 index 0000000..02e384c Binary files /dev/null and b/src/assets/images/char/lion.png differ diff --git a/src/assets/images/char/monkey.png b/src/assets/images/char/monkey.png new file mode 100644 index 0000000..00570ae Binary files /dev/null and b/src/assets/images/char/monkey.png differ diff --git a/src/assets/images/char/pig.png b/src/assets/images/char/pig.png new file mode 100644 index 0000000..ee67667 Binary files /dev/null and b/src/assets/images/char/pig.png differ diff --git a/src/assets/images/char/sheep.png b/src/assets/images/char/sheep.png new file mode 100644 index 0000000..51ac71d Binary files /dev/null and b/src/assets/images/char/sheep.png differ diff --git a/src/assets/images/char/tiger.png b/src/assets/images/char/tiger.png new file mode 100644 index 0000000..e312511 Binary files /dev/null and b/src/assets/images/char/tiger.png differ diff --git a/src/assets/images/footer.png b/src/assets/images/footer.png new file mode 100644 index 0000000..09c608f Binary files /dev/null and b/src/assets/images/footer.png differ diff --git a/src/assets/images/icon-edit.svg b/src/assets/images/icon-edit.svg new file mode 100644 index 0000000..f24265b --- /dev/null +++ b/src/assets/images/icon-edit.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + diff --git a/src/assets/images/logo.png b/src/assets/images/logo.png new file mode 100644 index 0000000..17fb591 Binary files /dev/null and b/src/assets/images/logo.png differ diff --git a/src/assets/images/logobig.png b/src/assets/images/logobig.png new file mode 100644 index 0000000..8d870c0 Binary files /dev/null and b/src/assets/images/logobig.png differ diff --git a/src/assets/images/propic-001.svg b/src/assets/images/propic-001.svg new file mode 100644 index 0000000..1b03a0e --- /dev/null +++ b/src/assets/images/propic-001.svg @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/images/propic-blank.svg b/src/assets/images/propic-blank.svg new file mode 100644 index 0000000..7a43c6b --- /dev/null +++ b/src/assets/images/propic-blank.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/images/qicon1.png b/src/assets/images/qicon1.png new file mode 100644 index 0000000..1c09c2b Binary files /dev/null and b/src/assets/images/qicon1.png differ diff --git a/src/assets/images/qicon2.png b/src/assets/images/qicon2.png new file mode 100644 index 0000000..7dcf148 Binary files /dev/null and b/src/assets/images/qicon2.png differ diff --git a/src/assets/images/qicon3.png b/src/assets/images/qicon3.png new file mode 100644 index 0000000..0a0bc77 Binary files /dev/null and b/src/assets/images/qicon3.png differ diff --git a/src/assets/images/qtime.png b/src/assets/images/qtime.png new file mode 100644 index 0000000..9d9ab3d Binary files /dev/null and b/src/assets/images/qtime.png differ diff --git a/src/assets/images/qup.png b/src/assets/images/qup.png new file mode 100644 index 0000000..edcdca2 Binary files /dev/null and b/src/assets/images/qup.png differ diff --git a/src/assets/images/token-coin.svg b/src/assets/images/token-coin.svg new file mode 100644 index 0000000..ec88104 --- /dev/null +++ b/src/assets/images/token-coin.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/images/token-poin.svg b/src/assets/images/token-poin.svg new file mode 100644 index 0000000..ae6fca3 --- /dev/null +++ b/src/assets/images/token-poin.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/logo.png b/src/assets/logo.png deleted file mode 100644 index f3d2503..0000000 Binary files a/src/assets/logo.png and /dev/null differ diff --git a/src/assets/tailwind.css b/src/assets/tailwind.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/src/assets/tailwind.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/src/main.js b/src/main.js index 01433bc..fe6c3fa 100644 --- a/src/main.js +++ b/src/main.js @@ -1,4 +1,8 @@ import { createApp } from 'vue' import App from './App.vue' +import './assets/tailwind.css' +import router from './router' + + +createApp(App).use(router).mount('#app') -createApp(App).mount('#app') diff --git a/src/pages/Character.vue b/src/pages/Character.vue new file mode 100644 index 0000000..f741194 --- /dev/null +++ b/src/pages/Character.vue @@ -0,0 +1,127 @@ + + + diff --git a/src/pages/Home.vue b/src/pages/Home.vue new file mode 100644 index 0000000..a8e94c4 --- /dev/null +++ b/src/pages/Home.vue @@ -0,0 +1,257 @@ + + + diff --git a/src/pages/Login.vue b/src/pages/Login.vue new file mode 100644 index 0000000..c221a94 --- /dev/null +++ b/src/pages/Login.vue @@ -0,0 +1,88 @@ + + + diff --git a/src/pages/Register.vue b/src/pages/Register.vue new file mode 100644 index 0000000..fae6e38 --- /dev/null +++ b/src/pages/Register.vue @@ -0,0 +1,103 @@ + + + diff --git a/src/router/index.js b/src/router/index.js new file mode 100644 index 0000000..b4acb62 --- /dev/null +++ b/src/router/index.js @@ -0,0 +1,21 @@ +import { createRouter, createWebHistory } from 'vue-router' +import HomePage from '../pages/Home.vue' +import ContentPage from '../pages/Home.vue' +import CharacterPage from '../pages/Character.vue' +import RegistePage from '../pages/Register.vue' +import loginPage from '../pages/Login.vue' + +const routes = [ + { path: '/', name: 'home', component: HomePage }, + { path: '/content', name: 'content', component: ContentPage }, + { path: '/character', name: 'character', component: CharacterPage }, + {path: '/register', name: 'register', component: RegistePage}, + {path: '/login', name:'login', component:loginPage} +] + +const router = createRouter({ + history: createWebHistory(), + routes, +}) + +export default router diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..d1fd553 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,31 @@ +import defaultTheme from "tailwindcss/defaultTheme"; + +/** @type {import('tailwindcss').Config} */ +export default { + content: [ + "./public/index.html", + "./src/**/*.{vue,js,ts,jsx,tsx}", + ], + theme: { + extend: { + colors: { + green: { + 50: "#f0fdf4", + 100: "#dcfce7", + 200: "#bbf7d0", + 300: "#86efac", + 400: "#4ade80", + 500: "#22c55e", + 600: "#16a34a", + 700: "#15803d", + 800: "#166534", + 900: "#14532d", + }, + red: { + 500: "#ef4444", + }, + }, + }, + }, + presets: [defaultTheme], +};