diff --git a/src/components/NavBar.astro b/src/components/NavBar.astro index 3668b64..fb7b3d7 100644 --- a/src/components/NavBar.astro +++ b/src/components/NavBar.astro @@ -7,16 +7,19 @@ import "../styles/navbar.css"; -
- - -
+
coucou !! diff --git a/src/pages/post-create.astro b/src/pages/post-create.astro deleted file mode 100644 index e8c4ba8..0000000 --- a/src/pages/post-create.astro +++ /dev/null @@ -1,154 +0,0 @@ ---- -import { postService } from "../api/axios"; -import Layout from "../layouts/Layout.astro"; -import { PostOut } from "../models/post"; -import "../styles/post-create.css"; - -export const prerender = false; - -if (Astro.request.method === "POST") { - try { - const data = await Astro.request.formData(); - - const postToSend: PostOut = new PostOut(); - - const mdFile = data.get("markdownInput"); - const illustration = data.get("illustrationInput"); - const documentImages = data - .getAll("documentImagesInput") - .filter((entry) => entry instanceof File); - - if (illustration instanceof File && illustration.size > 0) { - await postService.sendIllustration(illustration).then((res) => { - postToSend.illustration_image = res.data; - }); - } - - await postService.sendDocumentImages(documentImages).then((res) => { - postToSend.document_images = new Map(Object.entries(res.data)); - }); - - if (mdFile instanceof File) { - await mdFile.text().then((txt) => (postToSend.content = txt)); - await postService - .sendPost(postToSend) - .then((res) => console.log(res.data)); - } - } catch (error) { - if (error instanceof Error) { - console.error(error.message); - } - } -} ---- - - -
- Consigne -

le markdown doit contenir cette entête :

-
----
-title: "titre"
-pubDate: YYYY-MM-DD
-description: 'description du post'
-author: "author"
-illustration: "image.png"
-tags: ["Manga", "Anime"]
----
-    
- - - - - - - - - - - -
-
- - diff --git a/src/styles/navbar.css b/src/styles/navbar.css index 0f8d037..d574000 100644 --- a/src/styles/navbar.css +++ b/src/styles/navbar.css @@ -8,11 +8,12 @@ header { flex-direction: column; > nav { + gap: 2rem; width: 100%; display: flex; - flex-direction: row; + flex-direction: column; justify-content: space-between; - align-items: center; + align-items: stretch; > ul { color: light-dark( @@ -145,17 +146,6 @@ header { } } -@media screen and (max-width: 1600px) { - header { - > nav { - flex-direction: column; - justify-content: space-between; - align-items: stretch; - gap: 2rem; - } - } -} - @media screen and (max-width: 770px) { header { > nav {