-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wesenbergg
committed
Nov 21, 2023
1 parent
78aaf3b
commit 07a56ac
Showing
18 changed files
with
155 additions
and
89 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script> | ||
export let label; | ||
export let href; | ||
export let current = false; | ||
</script> | ||
|
||
{#if current} | ||
<li> | ||
<a | ||
href={`/${href}`} | ||
class="block py-2 px-3 md:p-0 text-white bg-purple-600 rounded md:bg-transparent md:text-purple-700" | ||
aria-current="page">{label}</a | ||
> | ||
</li> | ||
{:else} | ||
<li> | ||
<a | ||
href={`/${href}`} | ||
class="block py-2 px-3 md:p-0 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:hover:text-purple-700" | ||
>{label}</a | ||
> | ||
</li> | ||
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<button> | ||
<slot /> | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
export type Props = { | ||
href: string; | ||
}; | ||
const { href } = Astro.props; | ||
--- | ||
|
||
<a | ||
{href} | ||
class="text-purple-600 hover:underline pl-2 border-purple-500 hover:border-l-2" | ||
> | ||
<slot /></a | ||
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<h1 class="font-bold text-4xl py-8"> | ||
<slot /> | ||
</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<h2 class="font-bold text-2xl py-8"> | ||
<slot /> | ||
</h2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
import Layout from "../../layouts/Layout.astro"; | ||
import Heading1 from "@components/headings/Heading1.astro"; | ||
import Layout from "@layouts/Layout.astro"; | ||
--- | ||
|
||
<Layout> | ||
<h1>Blogi</h1> | ||
<Heading1>Blogi</Heading1> | ||
</Layout> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
--- | ||
import Heading1 from "@components/headings/Heading1.astro"; | ||
import Layout from "../layouts/Layout.astro"; | ||
import Link from "@components/common/Link.astro"; | ||
--- | ||
|
||
<Layout title="Welcome to Astro."> | ||
<main> | ||
<a href={`/blogi`}>first post</a> | ||
</main> | ||
<Heading1>Home</Heading1> | ||
<Link href={`/kurssit`}>Katso kurssit</Link> | ||
</Layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
--- | ||
import Layout from "../../../layouts/Layout.astro"; | ||
import Heading1 from "@components/headings/Heading1.astro"; | ||
import Layout from "@layouts/Layout.astro"; | ||
import { getCollection } from "astro:content"; | ||
import Link from "@components/common/Link.astro"; | ||
const posts = await getCollection("101-git"); | ||
--- | ||
|
||
<Layout title="Tervetuloa 101 Git kurssille!"> | ||
<main> | ||
<h1>Git Perusteet</h1> | ||
<ul> | ||
{ | ||
posts.map((p) => ( | ||
<li> | ||
<a href={`${p.slug}`}>{p.data.title}</a> | ||
</li> | ||
)) | ||
} | ||
</ul> | ||
</main> | ||
<Heading1>Git Perusteet</Heading1> | ||
<ul> | ||
{ | ||
posts.map((p) => ( | ||
<li> | ||
<Link href={`${p.slug}`}>{p.data.title}</Link> | ||
</li> | ||
)) | ||
} | ||
</ul> | ||
</Layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
--- | ||
import Layout from "../../../layouts/Layout.astro"; | ||
import Layout from "@layouts/Layout.astro"; | ||
import Heading1 from "@components/headings/Heading1.astro"; | ||
import { getCollection } from "astro:content"; | ||
import Link from "@components/common/Link.astro"; | ||
const posts = await getCollection("101-web"); | ||
--- | ||
|
||
<Layout title="Tervetuloa 101 Web kurssille!"> | ||
<main> | ||
<h1>Web Perusteet</h1> | ||
<ul> | ||
{ | ||
posts.map((p) => ( | ||
<li> | ||
<a href={`${p.slug}`}>{p.data.title}</a> | ||
</li> | ||
)) | ||
} | ||
</ul> | ||
</main> | ||
<Heading1>Web Perusteet</Heading1> | ||
<ul> | ||
{ | ||
posts.map((p) => ( | ||
<li> | ||
<Link href={`/kurssit/101-web/${p.slug}`}>{p.data.title}</Link> | ||
</li> | ||
)) | ||
} | ||
</ul> | ||
</Layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
--- | ||
import Layout from "../../layouts/Layout.astro"; | ||
import Heading1 from "@components/headings/Heading1.astro"; | ||
import Layout from "@layouts/Layout.astro"; | ||
--- | ||
|
||
<Layout title="Meistä"> | ||
<h1>Hötöpöllön tarina</h1> | ||
<Heading1>koodin tarina</Heading1> | ||
</Layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters