Improving style
This commit is contained in:
@@ -3,10 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:slnt,wght@-14..14,100..1000&family=PT+Sans&display=swap" rel="stylesheet">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Afacad+Flux">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
<title>Let's meet</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
:root
|
||||
{
|
||||
--primary-color : #fff8ed;
|
||||
--secondary-color : #fff8ed;
|
||||
--tertiary-color : #fff8ed;
|
||||
--radius : 3px;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 601px) {
|
||||
:root {
|
||||
--font-size : 18px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 600px) {
|
||||
:root {
|
||||
--font-size : 15px;
|
||||
}
|
||||
}
|
||||
|
||||
*
|
||||
{
|
||||
transition: 0.3s all;
|
||||
color: #141115;
|
||||
text-decoration: none;
|
||||
font-size: var(--font-size);
|
||||
font-family: 'PT Sans', sans-serif;
|
||||
transition: 0.3s all;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: calc(var(--font-size, 1vw) * 2.15);
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
body
|
||||
{
|
||||
background-color: #fff8ed;
|
||||
background-color: var(--primary-color);
|
||||
}
|
||||
|
||||
footer
|
||||
|
||||
@@ -26,7 +26,7 @@ nav {
|
||||
text-decoration: none;
|
||||
height: 2vw;
|
||||
border: 1px solid;
|
||||
border-radius: 3px;
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
.main {
|
||||
|
||||
@@ -2,6 +2,8 @@ import { createRouter, createWebHistory } from 'vue-router'
|
||||
import HomeView from '../views/HomeView.vue'
|
||||
import AboutView from '../views/AboutView.vue'
|
||||
import ErrorView from '../views/ErrorView.vue'
|
||||
import CreateView from "../views/CreateView.vue";
|
||||
import JoinView from "../views/JoinView.vue";
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
@@ -20,8 +22,18 @@ const router = createRouter({
|
||||
path: '/error',
|
||||
name: 'error',
|
||||
component: ErrorView,
|
||||
},
|
||||
{
|
||||
path: '/create',
|
||||
name: 'create',
|
||||
component: CreateView,
|
||||
},
|
||||
{
|
||||
path: '/join',
|
||||
name: 'join',
|
||||
component: JoinView,
|
||||
}
|
||||
],
|
||||
]
|
||||
})
|
||||
|
||||
export default router
|
||||
|
||||
11
src/views/CreateView.vue
Normal file
11
src/views/CreateView.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<h1>Create an event</h1>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -7,17 +7,12 @@
|
||||
<div class="container">
|
||||
<div class="introduction">
|
||||
<h1>Welcome !</h1>
|
||||
<p>This website is currently under development and might look like ugly as fuck</p>
|
||||
<p>This website is currently under development and might look ugly as fuck</p>
|
||||
</div>
|
||||
|
||||
<div class="actions">
|
||||
<div>
|
||||
Join an event
|
||||
</div>
|
||||
|
||||
<div>
|
||||
Create an event
|
||||
</div>
|
||||
<div class="button"><router-link to="/create">Create an event</router-link></div>
|
||||
<div class="button"><router-link to="/join">Join an event</router-link></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -34,19 +29,36 @@
|
||||
}
|
||||
|
||||
.introduction {
|
||||
justify-items: center;
|
||||
align-content: center;
|
||||
flex-grow: 10;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 70%;
|
||||
height: 100%;
|
||||
border: solid 1px;
|
||||
}
|
||||
|
||||
.actions {
|
||||
justify-items: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-content: center;
|
||||
flex-grow: 4;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 4vh;
|
||||
height: 100%;
|
||||
background-color: rgba(0,0,0,0.1);
|
||||
width: 30%;
|
||||
border: solid 1px;
|
||||
}
|
||||
|
||||
.button {
|
||||
text-align: center;
|
||||
align-content: center;
|
||||
min-width: 10vw;
|
||||
min-height: 5vh;
|
||||
border-radius: var(--radius);
|
||||
background-color: var(--secondary-color);
|
||||
box-shadow: 2px 2px 5px;
|
||||
border: solid 1px;
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
11
src/views/JoinView.vue
Normal file
11
src/views/JoinView.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<h1>Join an event</h1>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user