Add some style again again

This commit is contained in:
Laurent
2025-02-28 19:55:01 +01:00
parent 99e740b494
commit 1c1d8da51d
6 changed files with 106 additions and 56 deletions

View File

@@ -3,7 +3,7 @@ import LayoutDefault from "@/layouts/LayoutDefault.vue";
</script> </script>
<template> <template>
<layout-default class="layout"> <layout-default>
<router-view /> <router-view />
</layout-default> </layout-default>
</template> </template>

View File

@@ -1,19 +1,15 @@
/*
fff8ed-1b2021-51513d-63c132
*/
:root :root
{ {
--primary-color : #fff8ed; --primary-color : #1b2021;
--secondary-color : #63c132; --secondary-color : #9BC53D;
--tertiary-color : #51513d; --header-color : #FCFCFC;
--bruh-color : #1b2021; --background-color : #FCFCFC;
--radius : 3px; --radius : 3px;
} }
@media screen and (min-width: 601px) { @media screen and (min-width: 601px) {
:root { :root {
--font-size : 1rem; --font-size : 1.5rem;
} }
} }
@@ -25,9 +21,9 @@ fff8ed-1b2021-51513d-63c132
* *
{ {
color: #141115; color: var(--primary-color);
text-decoration: none; text-decoration: none;
font-family: 'PT Sans', sans-serif; font-family: 'Afacad Flux', sans-serif;
transition: 0.3s all; transition: 0.3s all;
}
}

View File

@@ -1,24 +1,20 @@
@import './base.css'; @import './base.css';
html, body { html, body, #app, .layout {
margin: 0; margin: 0;
height: 100%; height: 100vh;
width: 100vw;
} }
body body
{ {
background: var(--primary-color); background-color: white;
font-size: var(--font-size); font-size: var(--font-size);
} }
#app
{
height: 100%;
}
.layout .layout
{ {
height: 100%; background: var(--background-color);
} }
footer footer

View File

@@ -0,0 +1,24 @@
<script setup lang="ts">
</script>
<template>
<router-link to="/create"><div class="button">Create an event</div></router-link>
</template>
<style scoped>
.button {
color: var(--primary-color);
text-align: center;
align-content: center;
min-width: 15vw;
min-height: 7vh;
border-radius: var(--radius);
background-color: var(--secondary-color);
}
.button:hover
{
background-color: rgba(255, 255, 255, 0.8);
}
</style>

View File

@@ -3,13 +3,12 @@
</script> </script>
<template> <template>
<div class="layoutDefault"> <div class="layout">
<!--<nav class="nav"> <nav class="nav">
<router-link to="/">Home</router-link> | <p>Let's<br>Meet</p>
<router-link to="/about">About</router-link> | <router-link to="/about"><div>About</div></router-link>
<router-link to="/error">Error</router-link> </nav>
</nav>-->
<main class="main"> <main class="main">
<slot/> <slot/>
@@ -22,11 +21,27 @@
<style scoped> <style scoped>
.layout
{
display: flex;
flex-direction: column;
}
nav { nav {
text-decoration: none; display: flex;
height: 2vw; flex-direction: row;
justify-content: space-between;
min-height: 4vw;
border: 1px solid; border: 1px solid;
border-radius: var(--radius); border-radius: var(--radius);
background-color: var(--header-color);
filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
padding: 0 1vw 0 1vw;
}
nav p {
font-size: calc(var(--font-size) * 1.1);
margin: 4px 0 4px 0;
} }
.main { .main {
@@ -34,7 +49,7 @@ nav {
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 100%; flex-grow: 1;
} }
</style> </style>

View File

@@ -7,12 +7,12 @@
<div class="container"> <div class="container">
<div class="introduction"> <div class="introduction">
<h1>Welcome !</h1> <h1>Welcome !</h1>
<p>This website is currently under development and might look ugly as fuck</p> <p>This website is currently under <span class="colored-text">development</span> and might look ugly as fuck</p>
</div> </div>
<div class="actions"> <div class="actions">
<router-link to="/create"><div class="button">Create an event</div></router-link> <router-link to="/create"><div class="button">Create</div></router-link>
<router-link to="/join"><div class="button">Join an event</div></router-link> <router-link to="/join"><div class="button">Join</div></router-link>
</div> </div>
</div> </div>
@@ -20,48 +20,67 @@
<style scoped> <style scoped>
.container { .container, .introduction, .actions {
display: flex; display: flex;
flex-direction: row; justify-content: center;
align-items: center; align-items: center;
width: 100%;
height: 100%; height: 100%;
padding: 0 1vw 0 1vw;
}
.container {
flex-direction: row;
width: 80%;
}
.introduction, .actions {
flex-direction: column;
} }
.introduction { .introduction {
display: flex; word-break: break-word;
flex-direction: column; width: 50%;
justify-content: center; }
align-items: center;
width: 75%; .introduction h1
height: 100%; {
font-size: 4rem;
}
.introduction p
{
width: 80%;
text-align: center;
}
.colored-text
{
color: var(--secondary-color);
} }
.actions { .actions {
display: flex; width: 50%;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 4vh; gap: 4vh;
height: 100%;
width: 25%;
border-left: var(--radius);
background-color: var(--bruh-color);
box-shadow: -3px 0 3px var(--tertiary-color);
} }
.button { .button {
color: var(--primary-color);
text-align: center; text-align: center;
align-content: center; align-content: center;
min-width: 10vw; width: 15vw;
min-height: 5vh; height: 7vh;
min-width: 15vw;
min-height: 7vh;
border-radius: var(--radius); border-radius: var(--radius);
background-color: var(--secondary-color); background-color: var(--secondary-color);
} }
.button:hover .button:hover
{ {
background-color: rgba(255, 255, 255, 0.8); transform: scale(1.1);
background-color: var(--header-color);
filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
} }
</style> </style>