Migrate from previous project with updated dependencies ready for March 2025
This commit is contained in:
7
src/components/Button.svelte
Normal file
7
src/components/Button.svelte
Normal file
@@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import { Button } from "bits-ui";
|
||||
</script>
|
||||
|
||||
<Button.Root class="bg-ecsess-600 text-ecsess-200 px-4 py-2 m-1 rounded-lg border-none">
|
||||
<slot />
|
||||
</Button.Root>
|
||||
12
src/components/Footer.svelte
Normal file
12
src/components/Footer.svelte
Normal file
@@ -0,0 +1,12 @@
|
||||
<script>
|
||||
const year = new Date().getFullYear();
|
||||
</script>
|
||||
|
||||
<footer class="border-ecsess-black m-12 flex h-fit flex-col items-center justify-between border-t-2">
|
||||
<div>
|
||||
<p class="text-content py-3 text-center">
|
||||
Created by ECSESS with love {'<3'}. <br />
|
||||
© {year} under GNU General Public License v3.0.
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
7
src/components/Link.svelte
Normal file
7
src/components/Link.svelte
Normal file
@@ -0,0 +1,7 @@
|
||||
<script>
|
||||
let { href = "https://www.example.com", children } = $props();
|
||||
</script>
|
||||
|
||||
<a {href} target="_blank" rel="noopener noreferrer" class="underline">
|
||||
{@render children()}
|
||||
</a>
|
||||
15
src/components/NavBar.svelte
Normal file
15
src/components/NavBar.svelte
Normal file
@@ -0,0 +1,15 @@
|
||||
<script>
|
||||
import NavButton from './NavButton.svelte';
|
||||
|
||||
</script>
|
||||
|
||||
<nav class="bg-ecsess-black text-ecsess-200 mx-auto flex min-w-fit flex-wrap items-center justify-center px-4 pt-4">
|
||||
<NavButton href="/">Home</NavButton>
|
||||
<NavButton href="/council">Meet the council</NavButton>
|
||||
<NavButton href="/events">Events</NavButton>
|
||||
<NavButton href="/resources">Resources</NavButton>
|
||||
<NavButton href="/join">Join ECSESS</NavButton>
|
||||
{#if import.meta.env.DEV}
|
||||
<NavButton href="/components">Componenets</NavButton>
|
||||
{/if}
|
||||
</nav>
|
||||
13
src/components/NavButton.svelte
Normal file
13
src/components/NavButton.svelte
Normal file
@@ -0,0 +1,13 @@
|
||||
<script>
|
||||
import { Button } from 'bits-ui';
|
||||
let { href, children } = $props();
|
||||
</script>
|
||||
|
||||
<a {href}>
|
||||
<Button.Root
|
||||
class="border-ecsess-black hover:border-ecsess-200 active:border-ecsess-400 border-b-4 px-6 py-2
|
||||
font-semibold transition-all"
|
||||
>
|
||||
{@render children()}
|
||||
</Button.Root>
|
||||
</a>
|
||||
7
src/components/Section.svelte
Normal file
7
src/components/Section.svelte
Normal file
@@ -0,0 +1,7 @@
|
||||
<script>
|
||||
let { children = () => "Section placeholder" } = $props();
|
||||
</script>
|
||||
|
||||
<div class="container mx-auto px-4 py-6 flex flex-col items-center justify-center gap-4 text-center">
|
||||
{@render children()}
|
||||
</div>
|
||||
Reference in New Issue
Block a user