Skip to content

Commit

Permalink
feat(site): example post
Browse files Browse the repository at this point in the history
  • Loading branch information
cor committed Sep 26, 2023
1 parent 15d2107 commit 68892af
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/src/lib/Header.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<header class="bg-black flex items-center p-4 gap-4">
<img class="h-[32px]" src="logo.svg" alt="Union Logo" />
<a href="/"><img class="h-[32px]" src="logo.svg" alt="Union Logo" /></a>
<nav class="flex flex-1 justify-end">
<ul class="flex gap-4 font-mono">
<li>blog</li>
<li>docs</li>
<li><a href="/blog">blog</a></li>
<li><a href="https://docs.union.build">docs</a></li>
</ul>
</nav>
</header>
14 changes: 14 additions & 0 deletions site/src/routes/blog/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<main class="flex-1 p-4">
<h2 class="text-3xl font-bold mb-4">Blog</h2>
<div class="flex gap-4">
<div class="bg-[#1b1b1c] shadow-xl p-4 rounded">
<h3 class="text-2xl font-bold">The Journey So Far</h3>
<p class="mb-2">
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Quo deserunt eius eligendi cum
neque similique vero molestias doloremque adipisci, placeat, nihil quam quidem fugiat, illum
veritatis inventore voluptatibus...
</p>
<a class="font-mono" href="/blog/the-journey-so-far">READ FULL POST -></a>
</div>
</div>
</main>
21 changes: 21 additions & 0 deletions site/src/routes/blog/the-journey-so-far/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<div class="flex-1 p-4">
<main class="bg-[#1b1b1c] shadow-xl p-4 rounded">
<h2 class="text-3xl font-bold mb-4">The Journey So Far</h2>

<p>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Dolorem sit sapiente facere quisquam
at quibusdam, esse dolor earum dolorum velit officiis, cumque odio consectetur quas, ullam
enim commodi expedita ab.
</p>
<p>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Dolorem sit sapiente facere quisquam
at quibusdam, esse dolor earum dolorum velit officiis, cumque odio consectetur quas, ullam
enim commodi expedita ab.
</p>
<p>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Dolorem sit sapiente facere quisquam
at quibusdam, esse dolor earum dolorum velit officiis, cumque odio consectetur quas, ullam
enim commodi expedita ab.
</p>
</main>
</div>

0 comments on commit 68892af

Please sign in to comment.