Skip to content

Commit 5b198b4

Browse files
committed
more boiler content
1 parent 2b47b66 commit 5b198b4

File tree

11 files changed

+374
-340
lines changed

11 files changed

+374
-340
lines changed

pnpm-lock.yaml

Lines changed: 285 additions & 262 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/breadcrumbs.svelte renamed to src/_components/breadcrumbs.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
>
2323
<a
2424
href={crumb.href ?? "?#"}
25-
class="focus:underline focus:outline-none font-serif italic"
25+
class="focus:underline focus:outline-none font-semibold italic font-serif"
2626
aria-label="Return to top of page"
2727
>{crumb.label}</a
2828
>

src/_components/navbar.svelte

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<script>
2+
import Breadcrumbs from "./breadcrumbs.svelte";
3+
let { crumbs = [] } = $props();
4+
</script>
5+
6+
<header class="h-[200px] flex flex-col items-center justify-center">
7+
{#if crumbs.length}
8+
<Breadcrumbs {crumbs} />
9+
{:else}
10+
<div class="relative h-1/2">
11+
<div class="h-full flex items-center justify-center">
12+
<h1 class="font-sm text-zinc-800 font-semibold z-10">
13+
tinytown.studio
14+
</h1>
15+
</div>
16+
</div>
17+
{/if}
18+
</header>

src/_content/what.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"data": "Page still under construction"
3+
}

src/_content/why.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"data": "Page still under construction"
3+
}

src/components/navbar.svelte

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/index.svelte

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<script>
22
import { marked } from "marked";
3-
import Navbar from "./components/navbar.svelte";
3+
import Navbar from "./_components/navbar.svelte";
44
const toolsContent = marked(`
55
### Our Tools
66
- [pub](https://github.com/TinyTownStudio/pub) ↗
77
`);
88
99
const companyContent = marked(`
10-
### Company
11-
- [Who are we?](/who)
12-
- [Team](/team)
10+
### The
11+
- [Who?](/who)
12+
- [Why?](/why)
13+
- [What?](/what)
1314
`);
1415
1516
const appsContent = marked(`
@@ -20,7 +21,7 @@
2021
<Navbar />
2122
<main class="mt-10 max-w-full prose prose-zinc">
2223
<div
23-
class="max-w-4xl mx-auto grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3"
24+
class="max-w-4xl px-10 sm:px-2 mx-auto grid gap-10 grid-cols-1 sm:grid-cols-3"
2425
>
2526
<div class="prose prose-zinc">
2627
{@html companyContent}

src/team.svelte

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/what.svelte

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<script>
2+
import Navbar from "./_components/navbar.svelte";
3+
import content from "./_content/what.json";
4+
import { marked } from "marked";
5+
const parsedContent = marked(content.data);
6+
</script>
7+
8+
<Navbar crumbs={[{ href: "/what", label: "What?" }]} />
9+
<main class="mt-10 max-w-full prose prose-zinc">
10+
<article class="max-w-4xl mx-auto grid grid-cols-1">
11+
{@html parsedContent}
12+
</article>
13+
</main>

src/who.svelte

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,39 @@
11
<script>
2-
import { marked } from "marked";
3-
import Navbar from "./components/navbar.svelte";
4-
const who = marked(`
5-
We build things
6-
`);
2+
import Navbar from "./_components/navbar.svelte";
3+
const team = [
4+
{
5+
name: "reaper",
6+
link: "https://reaper.is",
7+
about: "A dev drowing in code trying out ways to swim out while making it easier to drown and swim out easier the next time.",
8+
from: "In his own words",
9+
},
10+
{
11+
name: "mellow",
12+
link: "https://mellow.dev",
13+
about: 'Plant based minimalist. Interested in altruism, essentialism, intentionalism, and probably some other "isms".',
14+
from: "In his own words",
15+
},
16+
];
717
</script>
818

9-
<Navbar crumbs={[{ href: "", label: "Who are we?" }]} />
19+
<Navbar crumbs={[{ href: "/who", label: "Who?" }]} />
1020
<main class="mt-10 max-w-full prose prose-zinc">
1121
<div class="max-w-4xl mx-auto grid grid-cols-1">
12-
<div class="prose prose-zinc h-[200vh]">
13-
{@html who}
14-
</div>
22+
{#each team as teamMember}
23+
<a
24+
href={teamMember.link}
25+
target="_blank"
26+
rel="noreferrer noopener"
27+
class="hover:underline-offset-4 underline hover:text-black text-zinc-800"
28+
>
29+
{teamMember.name} ↗
30+
</a>
31+
<p class="text-sm text-zinc-600 mb-0">
32+
<span><em>{teamMember.from}</em></span>
33+
</p>
34+
<p class="text-sm text-zinc-600">
35+
{teamMember.about}
36+
</p>
37+
{/each}
1538
</div>
1639
</main>

0 commit comments

Comments
 (0)