✨ add quotes-page
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
parent
48d56196bf
commit
be3aae48c9
4 changed files with 107 additions and 0 deletions
|
@ -14,6 +14,8 @@ layout: "../layouts/Layout.astro"
|
|||
|
||||
[⏳ **now**](/now) · what i'm doing right now
|
||||
|
||||
[💬 **quotes**](/quotes) · my favorite quotes
|
||||
|
||||
[✨ **uses**](/uses) · what i use on a daily basis
|
||||
|
||||
[📀 **vinyl collection**](/vinyl) · all my vinyls
|
||||
|
|
22
src/pages/quotes.astro
Normal file
22
src/pages/quotes.astro
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
import SectionContainer from '../components/SectionContainer.astro';
|
||||
import quotes from '../data/quotes.json'
|
||||
const today = new Date();
|
||||
---
|
||||
<SectionContainer>
|
||||
<main class="flex flex-col gap-4 mt-4">
|
||||
<h1 class="text-3xl font-extrabold">💬 quotes</h1>
|
||||
<section>
|
||||
<ul>
|
||||
{
|
||||
quotes.map(quote => (
|
||||
<li class="flex flex-col mb-10 break-words">
|
||||
<p class="italic">{quote.quote}</p>
|
||||
<p class="author">- {quote.author}</p>
|
||||
</li>
|
||||
))
|
||||
}
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
</SectionContainer>
|
Loading…
Add table
Add a link
Reference in a new issue