Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
8 changed files
with
100 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<script> | ||
export let comment; | ||
</script> | ||
|
||
|
||
<div class="flex items-start space-x-4 p-4 rounded-xl bg-background"> | ||
<img src="/emptyProfilePicture.png" alt="Profilbild" class="w-12 h-12 rounded-full" /> | ||
|
||
<div class="flex-1"> | ||
<div class="flex items-center space-x-2"> | ||
<p class="font-semibold text-gray-400">Username</p> | ||
<p class="text-gray-600">{comment.dateTime}</p> | ||
</div> | ||
<p class="text-gray-400">{comment.content}</p> | ||
</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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script> | ||
import Comment from "./Comment.svelte"; | ||
let comments = [ | ||
{ id: 1, authorId: 1, content: "I still can't explain how this was possible... ^^", dateTime: new Date().toLocaleString("de-DE"), eventId: 1 }, | ||
{ id: 2, authorId: 1, content: "Crazyyyyyyyyyyyyyy", dateTime: new Date().toLocaleString("de-DE"), eventId: 1 }, | ||
{ id: 3, authorId: 1, content: "Anyone forgot their jacket? Found one...", dateTime: new Date().toLocaleString("de-DE"), eventId: 1 } | ||
] | ||
</script> | ||
<div class="space-y-4 bg-background"> | ||
{#each comments as comment (comment.id)} | ||
<div class="flex items-start space-x-4 p-1 bg-background shadow-md rounded-lg"> | ||
<Comment {comment}/> | ||
</div> | ||
{/each} | ||
</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
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,6 @@ | ||
<script> | ||
import { page } from '$app/stores'; | ||
</script> | ||
<main> | ||
<p class="text-white">{$page.params.eventId}</p> | ||
</main> |
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,52 @@ | ||
<script lang="ts"> | ||
import { getUser, setUser } from '$lib/user-service'; | ||
import { onMount } from 'svelte'; | ||
import Step1 from './Step1.svelte'; | ||
import Step2 from './Step2.svelte'; | ||
const register = () => { | ||
} | ||
let name = ""; | ||
// const nextStep = () => { | ||
// step++; | ||
// }; | ||
// let step = 1; | ||
</script> | ||
|
||
<main | ||
class="flex-grow bg-background text-center flex flex-col justify-between items-center text-white px-16 py-8 relative" | ||
> | ||
<a | ||
href="/" | ||
class="bg-accent h-14 w-14 rounded-full absolute bottom-10 mb-4 right-8 flex justify-center items-center" | ||
> | ||
<i class="fa fa-arrow-right" /> | ||
</a> | ||
<!-- <h1 class="text-4xl">Name</h1> --> | ||
<div /> | ||
|
||
<div class="flex flex-col gap-10"> | ||
<h2 class="text-accent text-3xl">What should we call you?</h2> | ||
<input | ||
class="bg-background w-full border-b-2 border-accent text-2xl placeholder:text-accent" | ||
placeholder="Your Name..." | ||
minlength="2" | ||
bind:value={name} | ||
/> | ||
</div> | ||
|
||
<div /> | ||
|
||
<!-- {#if step === 1} | ||
<Step1 /> | ||
{:else if step === 2} | ||
<Step2 /> | ||
{/if} --> | ||
|
||
<!-- <div class="w-full h-1 flex justify-between gap-3"> | ||
<div class="w-full bg-accent" class:bg-purple-500={step == 1} /> | ||
<div class="w-full bg-accent" class:bg-purple-500={step == 1} /> | ||
</div> --> | ||
</main> |
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