refactor: cleanup home

This commit is contained in:
Maciej Jur 2023-11-28 19:27:54 +01:00
parent d88054b598
commit 3a18af36b3
Signed by: kamov
GPG key ID: 191CBFF5F72ECAFD
3 changed files with 17 additions and 28 deletions

View file

@ -1,9 +1,3 @@
---
layout: ../layouts/Home.astro
title: "Welcome to kamoshi.org!"
date: "20201209"
---
# Welcome to my website! :heart: # Welcome to my website! :heart:
You have found this little floating rock in the middle of the Internet! Congrats 🎉 You have found this little floating rock in the middle of the Internet! Congrats 🎉
@ -63,4 +57,3 @@ Thanks for visiting! :smile:
                    '、_、__>                     '、_、__>
</pre> </pre>
</div> </div>

View file

@ -1,21 +0,0 @@
---
import Base from "./Base.astro";
import Intro from "@components/cards/Intro.astro";
import Photo from "../components/cards/Photo.astro";
---
<Base title={"Home"}>
<main class="l-home">
<article class="l-home__article markdown">
<slot />
</article>
<aside class="l-home__aside">
<!-- -->
<Intro />
<!-- -->
<Photo />
<!-- -->
</aside>
</main>
</Base>

17
src/pages/index.astro Normal file
View file

@ -0,0 +1,17 @@
---
import Base from "@layouts/Base.astro";
import Intro from "@components/cards/Intro.astro";
import Photo from "@components/cards/Photo.astro";
import Text from "@assets/markdown/index.md";
---
<Base title="Home">
<main class="l-home">
<article class="l-home__article markdown">
<Text/>
</article>
<aside class="l-home__aside">
<Intro/>
<Photo/>
</aside>
</main>
</Base>