feat(home): page d'accueil étoffée

This commit is contained in:
Emi Boucly 2025-04-01 09:11:19 +02:00
parent 7fe2f1be4e
commit e096f7fd0f
8 changed files with 96 additions and 31 deletions

View file

@ -1,6 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router' import { RouterLink, RouterView } from 'vue-router'
import StarrySky from "@/components/StarrySky.vue"; import StarrySky from "@/components/StarrySky.vue";
import Projects from "@/components/Projects.vue";
</script> </script>
<template> <template>
@ -10,7 +11,7 @@ import StarrySky from "@/components/StarrySky.vue";
<div class="wrapper"> <div class="wrapper">
<nav> <nav>
<RouterLink to="/" class="nav-li">Home</RouterLink> <RouterLink to="/" class="nav-li">Home</RouterLink>
<RouterLink to="/about" class="nav-li">About</RouterLink> <RouterLink to="/about" class="nav-li">About me</RouterLink>
</nav> </nav>
</div> </div>
</header> </header>
@ -25,17 +26,19 @@ import StarrySky from "@/components/StarrySky.vue";
@use "sass:map"; @use "sass:map";
@use "sass:math"; @use "sass:math";
html {
body {
height: 3000px;
background: #000000; background: #000000;
}
body {
height: 100%;
color: map.get(map.get(base.$themes, "dark"), "text");
background: linear-gradient( background: linear-gradient(
to top, to top,
#000000 0%, #000000 0%,
#000000 50%, #000000 50%,
map.get(map.get(base.$themes, "dark"), "background") 100%, map.get(map.get(base.$themes, "dark"), "background") 100%,
); ) no-repeat;
color: map.get(map.get(base.$themes, "dark"), "text");
font-family: Consolas, sans-serif; font-family: Consolas, sans-serif;
} }

View file

@ -13,4 +13,31 @@ $themes: (
secondary: #7f5be1, secondary: #7f5be1,
accent: #9747cd, accent: #9747cd,
), ),
); );
.center {
align-items: center;
text-align: center;
}
.margin {
margin-left: 10%;
margin-right: 10%;
}
.cell {
@extend .margin;
border-radius: 15px;
padding: 30px;
background: rgba(0,0,0,0.2)
}
.flex {
display: flex;
flex-flow: wrap;
}
.font-bigger {
font-size: x-large;
}

View file

@ -3,6 +3,7 @@
</script> </script>
<template> <template>
<h3 class="center">There, have cool old-fashioned 88x31 buttons</h3>
<div class="wrapper flex"> <div class="wrapper flex">
<a href="https://tralala.fr.eu.org" title="tralala.fr.eu.org"><img src="../components/icons/tralala-88x31.gif" alt="tralala.fr.eu.org" height="31" width="88"></a> <a href="https://tralala.fr.eu.org" title="tralala.fr.eu.org"><img src="../components/icons/tralala-88x31.gif" alt="tralala.fr.eu.org" height="31" width="88"></a>
<a href=""><img src="../components/icons/estrogen-88x31.gif" alt="" height="31" width="88"></a> <a href=""><img src="../components/icons/estrogen-88x31.gif" alt="" height="31" width="88"></a>
@ -44,10 +45,6 @@
</template> </template>
<style scoped lang="scss"> <style scoped lang="scss">
.flex {
display: flex;
flex-flow: wrap;
}
.wrapper { .wrapper {
padding: 10px; padding: 10px;
display: flex; display: flex;

View file

@ -0,0 +1,24 @@
<script setup lang="ts">
</script>
<template>
<h3 class="center">Projects</h3>
<div class="center flex">
<a href="https://github.com/Akomry/makeyourownapp-jam">
<img class="rounded" src="../components/icons/Illustration3.png" alt="makeyourownapp-jam" width="300">
<br><span>Make your own app! game jam</span>
</a>
<a href="https://github.com/Akomry/sae302-chat"><img class="rounded" src="" alt="sae302-chat" width="300"></a>
<a href="https://github.com/Akomry/website"><img class="rounded" src="" alt="website" width="300"></a>
</div>
</template>
<style lang="scss" scoped>
a {
padding: 10px;
}
.rounded {
border-radius: 15px;
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

View file

@ -1,6 +1,7 @@
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue' import HomeView from '../views/HomeView.vue'
import AboutView from '../views/AboutView.vue' import AboutView from '../views/AboutView.vue'
import DashboardView from '../views/DashboardView.vue'
const router = createRouter({ const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL), history: createWebHistory(import.meta.env.BASE_URL),
@ -14,6 +15,11 @@ const router = createRouter({
path: '/about', path: '/about',
name: 'about', name: 'about',
component: AboutView, component: AboutView,
},
{
path: '/dashboard',
name: 'dashboard',
component: DashboardView,
} }
], ],
}) })

View file

@ -0,0 +1,3 @@
<template>
</template>

View file

@ -1,31 +1,36 @@
<script setup lang="ts"> <script setup lang="ts">
import buttons from "@/components/88x31.vue"; import buttons from "@/components/88x31.vue";
import Projects from "@/components/Projects.vue";
import StarrySky from "@/components/StarrySky.vue";
function scrollToProjects() {
const projectsRect = document.querySelector('#section-projects > .section-title')!.getBoundingClientRect();
window.scrollTo({ behavior: 'smooth', top: projectsRect.top - projectsRect.height });
}
</script> </script>
<template> <template>
<div class="centerdown"> <div class="centerdown">
<div class="center">Welcome on my website !</div>
<hr class="margin">
<!-- Welcome text -->
<br style="margin-top: 8%">
<pre class="center font-bigger">
_ _ __
___ _ __ ___ (_)| | __ ___ / _| _ __
/ _ \| '_ ` _ \ | || |/ // _ \ | |_ | '__|
| __/| | | | | || || <| (_) |_ | _|| |
\___||_| |_| |_||_||_|\_\\___/(_)|_| |_|
</pre>
<div class="center"><h1>Welcome to my website !</h1></div>
<hr class="margin" style="margin-top: 24%">
<!-- 88x31 buttons -->
<div class="cell" id="projects"><projects /></div>
<br>
<div class="cell"><buttons /></div> <div class="cell"><buttons /></div>
</div> </div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.center {
align-items: center;
text-align: center;
}
.margin {
margin-left: 10%;
margin-right: 10%;
}
.cell {
@extend .margin;
border-radius: 15px;
padding: 10px;
background: rgba(0,0,0,0.2)
}
</style> </style>