first
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB |
BIN
public/gractwo-smol.png
Normal file
BIN
public/gractwo-smol.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<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>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
100
src/App.vue
100
src/App.vue
@@ -1,30 +1,84 @@
|
||||
<template>
|
||||
<div id="nav">
|
||||
<!-- <div id="nav">
|
||||
<router-link to="/">Home</router-link> |
|
||||
<router-link to="/about">About</router-link>
|
||||
</div>
|
||||
</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>
|
||||
</nav>
|
||||
<main>
|
||||
</main>
|
||||
<router-view/>
|
||||
</template>
|
||||
|
||||
<style lang="scss">
|
||||
#app {
|
||||
font-family: Avenir, Helvetica, Arial, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
text-align: center;
|
||||
color: #2c3e50;
|
||||
}
|
||||
|
||||
#nav {
|
||||
padding: 30px;
|
||||
|
||||
a {
|
||||
font-weight: bold;
|
||||
color: #2c3e50;
|
||||
|
||||
&.router-link-exact-active {
|
||||
color: #42b983;
|
||||
}
|
||||
}
|
||||
}
|
||||
<style lang="sass">
|
||||
@import url('https://fonts.googleapis.com/css2?family=Lexend&display=swap')
|
||||
:root
|
||||
--dark-bg: #1a1a1a
|
||||
--dark-bg2: #212121
|
||||
--dark-bg3: #414141
|
||||
--light: #c0c0c0
|
||||
*
|
||||
margin: 0
|
||||
body
|
||||
background-color: var(--dark-bg)
|
||||
font-family: 'Lexend', sans-serif
|
||||
color: var(--light)
|
||||
// overflow-y: scroll
|
||||
nav
|
||||
background-color: var(--dark-bg2)
|
||||
display: flex
|
||||
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>
|
||||
|
||||
BIN
src/assets/gractwo-smol.png
Normal file
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
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 |
@@ -1,4 +1,4 @@
|
||||
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
|
||||
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
|
||||
import Home from '../views/Home.vue'
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [
|
||||
@@ -10,16 +10,38 @@ const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/about',
|
||||
name: 'About',
|
||||
// redirect: to => {
|
||||
// window.location.href = 'http://google.com'
|
||||
// return '/redirecting' // not important since redirecting
|
||||
// }
|
||||
// route level code-splitting
|
||||
// this generates a separate chunk (about.[hash].js) for this route
|
||||
// which is lazy-loaded when the route is visited.
|
||||
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({
|
||||
history: createWebHashHistory(),
|
||||
routes
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
})
|
||||
|
||||
export default router
|
||||
export default router
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="home">
|
||||
<img alt="Vue logo" src="../assets/logo.png">
|
||||
<HelloWorld msg="Welcome to Your Vue.js + TypeScript App"/>
|
||||
<!-- <img alt="Vue logo" src="../assets/gractwo.png" style="height: 72px"> -->
|
||||
<HelloWorld msg="Welcum to Your Vue.js + TypeScript App"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -11,8 +11,8 @@ import HelloWorld from '@/components/HelloWorld.vue'; // @ is an alias to /src
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Home',
|
||||
components: {
|
||||
HelloWorld,
|
||||
},
|
||||
// components: {
|
||||
// HelloWorld,
|
||||
// },
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user