From 60ffee77cf628671dfa48600b8edfca10e7235b2 Mon Sep 17 00:00:00 2001 From: huangjinming Date: Thu, 20 Apr 2023 10:28:48 +0800 Subject: [PATCH] ffi --- src/components/about/IntroductionBanner.vue | 4 +- src/components/home/Banner.vue | 1 + src/components/layout/NavBar.vue | 11 ++--- src/router/index.js | 16 ++++--- src/views/GameEventBookingView.vue | 53 +++++++++------------ tailwind.config.js | 1 - 6 files changed, 40 insertions(+), 46 deletions(-) diff --git a/src/components/about/IntroductionBanner.vue b/src/components/about/IntroductionBanner.vue index 082976f..bec3bc0 100644 --- a/src/components/about/IntroductionBanner.vue +++ b/src/components/about/IntroductionBanner.vue @@ -98,7 +98,9 @@ onUnmounted(() => { .banner-boder { position: absolute; left: 0; - height: 79px; + right: 0; + width: 100%; + // height: 79px; bottom: -1px; } .introduction-bg { diff --git a/src/components/home/Banner.vue b/src/components/home/Banner.vue index a5a1bab..d5072ab 100644 --- a/src/components/home/Banner.vue +++ b/src/components/home/Banner.vue @@ -91,6 +91,7 @@ import Slogan from "./Slogan.vue"; .download-item-andriod { width:207px; height: 62px; + opacity: 0.9; background-color: #161515; cursor: pointer; position: relative; diff --git a/src/components/layout/NavBar.vue b/src/components/layout/NavBar.vue index c846307..057902f 100644 --- a/src/components/layout/NavBar.vue +++ b/src/components/layout/NavBar.vue @@ -122,16 +122,15 @@ const showNavMenu = ref(false); const activeIndex = ref(0); const navList = reactive([ { id: 0, name: "HOME", path: "/home" }, - { id: 1, name: "PRE-ORDER", path: "/pre" }, - { id: 2, name: "ABOUT", path: "/about" }, + { id: 1, name: "ABOUT", path: "/about" }, { - id: 3, + id: 2, name: "MARKETPLACE", path: "/marketpalce", submenu: [{ label: "Coming soon", link: "/products/1" }], }, { - id: 4, + id: 3, name: "COMMUNITY", path: "/contact", submenu: [ @@ -149,12 +148,12 @@ const navList = reactive([ { label: "Discord", link: "https://discord.com/invite/fNSn2NHUvf" }, ], }, - { id: 5, name: "BETA TEST II", path: "/" }, + { id: 4, name: "BETA TEST II", path: "/" }, ]); function handNavCurent(nav) { activeIndex.value = nav.id; - if (nav.id === 0 || nav.id === 1 || nav.id === 2 ||nav.id === 5 ) { + if (nav.id === 0 || nav.id === 1 || nav.id === 4 ) { router.push(nav.path); } } diff --git a/src/router/index.js b/src/router/index.js index 78f506f..ca6f519 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,21 +1,23 @@ import { createRouter, createWebHistory } from 'vue-router'; +import Home from '../views/HomeView.vue'; +import GamePromotionEvent from '../views/GamePromotionEvent.vue'; const routes = [ { path: '/', name: 'game', - component: () => import(/* webpackChunkName "game" */ '../views/GamePromotionEvent.vue'), - }, - { - path: '/pre', - name: 'pre', - component: () => import(/* webpackChunkName "pre" */ '../views/GameEventBookingView.vue'), + component:GamePromotionEvent, }, { path: '/home', name: 'home', - component: () => import(/* webpackChunkName "home" */ '../views/HomeView.vue'), + component: Home, }, + // { + // path: '/pre', + // name: 'pre', + // component: () => import(/* webpackChunkName "pre" */ '../views/GameEventBookingView.vue'), + // }, { path: '/about', name: 'about', diff --git a/src/views/GameEventBookingView.vue b/src/views/GameEventBookingView.vue index c752bd0..a965bba 100644 --- a/src/views/GameEventBookingView.vue +++ b/src/views/GameEventBookingView.vue @@ -1,34 +1,32 @@ - diff --git a/tailwind.config.js b/tailwind.config.js index 4e1bec1..45ce112 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,6 +1,5 @@ /** @type {import('tailwindcss').Config} */ export default { - darkMode: false, // or 'media' or 'class', content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"], theme: { extend: {},