diff --git a/.eslintrc.js b/.eslintrc.js index f948388..3333e1c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -15,6 +15,6 @@ module.exports = { }, rules: { "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", - "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off" + "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", } }; diff --git a/src/App.vue b/src/App.vue index baf60fa..6e9f2c5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -23,8 +23,7 @@ export default defineComponent({ position: relative; .fs-content { margin-top: 70px; - padding-top: 20px; - min-height: calc(100vh - 90px); + min-height: calc(100vh - 70px); } } diff --git a/src/assets/scss/_animations.scss b/src/assets/scss/_animations.scss new file mode 100644 index 0000000..c7ea9b2 --- /dev/null +++ b/src/assets/scss/_animations.scss @@ -0,0 +1,20 @@ +@keyframes fadeInBg { + from { + opacity: 0; + } + to { + opacity: 33%; + } +} + +@keyframes paneBgAround { + 0% { + background-position: -10vw 0%; + } + 50% { + background-position: -20vw 0%; + } + 100% { + background-position: -10vw 0%; + } +} \ No newline at end of file diff --git a/src/assets/scss/_global.scss b/src/assets/scss/_global.scss index ed72531..034d4f3 100644 --- a/src/assets/scss/_global.scss +++ b/src/assets/scss/_global.scss @@ -2,6 +2,7 @@ @import 'fonts'; @import 'variables'; +@import 'animations'; body { font-family: $body-font-family; @@ -11,7 +12,7 @@ body { background: $black; } -h1, h2, h3, h4, h5, h6, .heading { +h1, h2, h3, h4, h5, h6 { margin-top: 0; font-family: $heading-font-family; font-weight: $fw-regular; @@ -21,6 +22,18 @@ h2 { font-size: 25px; } h3 { font-size: 22px; } h4 { font-size: 18px; } +.heading { + &-1 { + margin-bottom: 20px; + font-size: 30px; + font-weight: $fw-semibold; + } + &-2 { + margin-bottom: 20px; + font-size: 25px; + } +} + ul { &.no-style { margin: 0; diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index 56e7a2e..9881be6 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -23,12 +23,16 @@ export default defineComponent({ link: "/" }, { - text: "About", - link: "/about" + text: "Célestes", + link: "/celestes" }, { - text: "Profile", - link: "/profile" + text: "À propos", + link: "/a-propos" + }, + { + text: "Profil", + link: "/profil" } ] }; diff --git a/src/components/celestials/CelestialCard.vue b/src/components/celestials/CelestialCard.vue new file mode 100644 index 0000000..4380923 --- /dev/null +++ b/src/components/celestials/CelestialCard.vue @@ -0,0 +1,16 @@ + + + diff --git a/src/components/celestials/CelestialsList.vue b/src/components/celestials/CelestialsList.vue new file mode 100644 index 0000000..856a649 --- /dev/null +++ b/src/components/celestials/CelestialsList.vue @@ -0,0 +1,31 @@ + + + diff --git a/src/router/index.ts b/src/router/index.ts index 83836d7..d404fab 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -4,6 +4,9 @@ import Home from "../views/Home.vue"; import About from "../views/About.vue"; import Profile from "../views/Profile.vue"; +import Celestials from "../views/celestials/Celestials.vue"; +import Celestial from "../views/celestials/Celestial.vue"; + const routes: Array = [ { path: "/", @@ -11,12 +14,23 @@ const routes: Array = [ component: Home }, { - path: "/about", + path: "/a-propos", name: "About", component: About }, { - path: "/profile", + path: "/celestes", + name: "Célestes", + component: Celestials + }, + { + path: "/celestes/:slug", + name: "Céleste", + component: Celestial, + props: true + }, + { + path: "/profil", name: "Profile", component: Profile } diff --git a/src/views/About.vue b/src/views/About.vue index 6900ede..2af234b 100644 --- a/src/views/About.vue +++ b/src/views/About.vue @@ -1,7 +1,7 @@ diff --git a/src/views/celestials/Celestials.vue b/src/views/celestials/Celestials.vue new file mode 100644 index 0000000..e7bcb1e --- /dev/null +++ b/src/views/celestials/Celestials.vue @@ -0,0 +1,43 @@ + + +