-
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
Showing
16 changed files
with
170 additions
and
69 deletions.
There are no files selected for viewing
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 @@ | ||
ADMIN_PASSWORD= | ||
|
||
PUBLIC_FAUNA_GQL_ENDPOINT= | ||
PUBLIC_FAUNA_SECRET= | ||
FAUNA_SECRET= | ||
|
||
PUBLIC_TELEMETRYDECK_APP_ID= | ||
|
||
PUBLIC_CF_IMAGES_ENDPOINT= | ||
PUBLIC_STORYBLOK_TOKEN= | ||
PUBLIC_NODE_ENV= | ||
PUBLIC_POSTHOG_TOKEN= | ||
PUBLIC_VERSION_DATE= |
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,3 @@ | ||
{ | ||
"title": "Erinnerungen" | ||
} |
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,3 @@ | ||
{ | ||
"title": "Memories" | ||
} |
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 lang="ts"> | ||
import { t } from "$lib/_i18n"; | ||
import type { Content, MemoriesSettingsContent, MemoryContent } from "$lib/storyblok/schema"; | ||
import { StoryblokComponent } from "@storyblok/svelte"; | ||
export let settings: Content<MemoriesSettingsContent>; | ||
export let content: Content<MemoryContent>[]; | ||
$: rows = settings.content.rows || 1; | ||
$: columns = settings.content.columns || 1; | ||
</script> | ||
|
||
<h2 class="text-2xl font-semibold text-center mb-10">{$t("memories.title")}</h2> | ||
<div class="grid gap-4" style="grid-template-columns: repeat({columns}, 1fr); grid-template-rows: repeat({rows}, 1fr);"> | ||
{#each content as memory} | ||
<StoryblokComponent blok="{memory.content}" /> | ||
{/each} | ||
</div> | ||
<div class="flex justify-center mt-4"> | ||
<button class="p-2 bg-white-600 rounded-[100%] w-14 h-14 text-lg"> | ||
<i class="fa-solid fa-plus"></i> | ||
</button> | ||
</div> |
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,25 @@ | ||
<script lang="ts"> | ||
import { storyblokEditable } from "@storyblok/svelte"; | ||
import type { MemoryContent } from "$lib/storyblok/schema"; | ||
export let blok: MemoryContent; | ||
</script> | ||
|
||
<div | ||
use:storyblokEditable="{blok}" | ||
class="rounded-xl overflow-hidden relative h-[25rem]" | ||
style="grid-column: span {blok.col_span} / span {blok.col_span}; grid-row: span {blok.row_span} / span {blok.row_span};"> | ||
{#if blok.img} | ||
<img class="object-cover h-[100%] w-[100%] hover:scale-y-105 transition-transform duration-1000" src="{blok.img.filename}/75" alt="{blok.img.alt}" class:-scale-x-100={blok.flip} class:hover:-scale-x-105={blok.flip} class:hover:scale-x-105={!blok.flip}/> | ||
{/if} | ||
<div class="absolute z-10 pointer-events-none bottom-4 right-4 text-white-500 text-lg backdrop-blur-sm px-2 py-1 rounded-xl border border-[rgba(255,255,255,0.3)] flex gap-2 items-center"> | ||
<div>{blok.title}</div> | ||
{#if blok.flag} | ||
{@const flag = blok.flag} | ||
<div class="relative"> | ||
<img class="h-[1.2em]" src="{flag.filename}" alt="{flag.alt}"/> | ||
<!-- <div class="absolute -bottom-2 -right-1 text-md font-handwriting text-white-500">{new Date(blok.date).getFullYear().toString().substring(2)}</div>--> | ||
</div> | ||
{/if} | ||
</div> | ||
</div> | ||
|
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,6 +1,8 @@ | ||
<script lang="ts"> | ||
import { t } from "$lib/_i18n"; | ||
import { sendClientEvent } from "$lib/posthog"; | ||
export let blok; | ||
</script> | ||
|
||
<h1 class="text-4xl text-center font-semibold mb-4 font-sans">Valentin Rogg</h1> | ||
|
@@ -123,8 +125,8 @@ | |
alt="🇺🇸" | ||
src="https://cdn.jsdelivr.net/gh/twitter/[email protected]/assets/72x72/1f1fa-1f1f8.png" /> | ||
</p> | ||
<p class="text-center font-serif text-md-lg whitespace-pre-wrap max-sm:mx-10 max-w-2xl mx-auto"> | ||
{@html $t("bio.description")} | ||
<p class="text-center font-serif text-md-lg whitespace-pre-wrap max-sm:mx-10 max-w-xl mx-auto"> | ||
{@html blok.content.short_bio} | ||
</p> | ||
|
||
<div class="w-max mt-16 mb-6 mx-auto text-2xl"> | ||
|
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
Oops, something went wrong.