This commit is contained in:
2021-04-11 19:01:14 +02:00
parent d8b0653fda
commit a617edde27
9 changed files with 109 additions and 33 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

BIN
public/gractwo-smol.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>gractwo-smol.png">
<title><%= htmlWebpackPlugin.options.title %></title> <title><%= htmlWebpackPlugin.options.title %></title>
</head> </head>
<body> <body>

View File

@@ -1,30 +1,84 @@
<template> <template>
<div id="nav"> <!-- <div id="nav">
<router-link to="/">Home</router-link> | <router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link> <router-link to="/about">About</router-link>
</div> -->
<nav>
<router-link to="/" class="gractwoRoot">
<img alt="Vue logo" src="./assets/gractwo-smol.png" style="height: 50px">
<h1>Gractwo</h1>
</router-link>
<div>
<router-link to="/">główna</router-link>
<router-link to="/about">o nas</router-link>
<router-link to="/discord">discord</router-link>
<router-link to="/facebook">facebook</router-link>
</div> </div>
</nav>
<main>
</main>
<router-view/> <router-view/>
</template> </template>
<style lang="scss"> <style lang="sass">
#app { @import url('https://fonts.googleapis.com/css2?family=Lexend&display=swap')
font-family: Avenir, Helvetica, Arial, sans-serif; :root
-webkit-font-smoothing: antialiased; --dark-bg: #1a1a1a
-moz-osx-font-smoothing: grayscale; --dark-bg2: #212121
text-align: center; --dark-bg3: #414141
color: #2c3e50; --light: #c0c0c0
} *
margin: 0
#nav { body
padding: 30px; background-color: var(--dark-bg)
font-family: 'Lexend', sans-serif
a { color: var(--light)
font-weight: bold; // overflow-y: scroll
color: #2c3e50; nav
background-color: var(--dark-bg2)
&.router-link-exact-active { display: flex
color: #42b983; flex-direction: row
} padding: .3em 1.5em
} *
} margin: 0 .2em
.gractwoRoot
color: inherit
text-decoration: inherit
display: flex
flex-direction: row
transition-duration: 100ms
&:focus,&:hover
transform: scale(1.05) rotate(2deg)
h1
font-size: 2.3rem
letter-spacing: .05em
div
margin-left: 1rem
display: flex
flex-direction: row
justify-content: center
align-items: center
*
transition-duration: 100ms
text-transform: uppercase
font-size: 1.3rem
color: inherit
text-decoration: none
opacity: 0.7
margin: 0 .7rem
&:focus,&:hover
opacity: 1
text-decoration: underline
transform: translate(0, -.1em)
::-webkit-scrollbar
background-color: var(--dark-bg)
&:hover
background-color: var(--dark-bg2)
::-webkit-scrollbar-thumb
background-color: var(--dark-bg2)
border-radius: 16px
border: 4px solid var(--dark-bg)
&:hover
background-color: var(--dark-bg3)
border: 4px solid var(--dark-bg2)
</style> </style>

BIN
src/assets/gractwo-smol.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
src/assets/gractwo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

View File

@@ -1,4 +1,4 @@
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router' import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Home from '../views/Home.vue' import Home from '../views/Home.vue'
const routes: Array<RouteRecordRaw> = [ const routes: Array<RouteRecordRaw> = [
@@ -10,16 +10,38 @@ const routes: Array<RouteRecordRaw> = [
{ {
path: '/about', path: '/about',
name: 'About', name: 'About',
// redirect: to => {
// window.location.href = 'http://google.com'
// return '/redirecting' // not important since redirecting
// }
// route level code-splitting // route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route // this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited. // which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "about" */ '../views/About.vue') component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
},
{
path: '/discord',
name: 'Discord',
alias: ['/dsc', '/dc'],
redirect: () => {
window.location.replace('https://discord.gg/NBXq95C')
return '/discord'
}
},
{
path: '/facebook',
name: 'Facebook',
alias: '/fb',
redirect: () => {
window.location.replace('https://facebook.com/groups/gractwo')
return '/facebook'
}
} }
] ]
const router = createRouter({ const router = createRouter({
history: createWebHashHistory(), history: createWebHistory(),
routes routes,
}) })
export default router export default router

View File

@@ -1,7 +1,7 @@
<template> <template>
<div class="home"> <div class="home">
<img alt="Vue logo" src="../assets/logo.png"> <!-- <img alt="Vue logo" src="../assets/gractwo.png" style="height: 72px"> -->
<HelloWorld msg="Welcome to Your Vue.js + TypeScript App"/> <HelloWorld msg="Welcum to Your Vue.js + TypeScript App"/>
</div> </div>
</template> </template>
@@ -11,8 +11,8 @@ import HelloWorld from '@/components/HelloWorld.vue'; // @ is an alias to /src
export default defineComponent({ export default defineComponent({
name: 'Home', name: 'Home',
components: { // components: {
HelloWorld, // HelloWorld,
}, // },
}); });
</script> </script>