Resources page, ResourceBlock, schemas
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
let { children, onclick } = $props();
|
||||
let { children, onclick = null } = $props();
|
||||
</script>
|
||||
|
||||
<button
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
<script>
|
||||
import { slide } from 'svelte/transition';
|
||||
import Button from './Button.svelte';
|
||||
import Link from './Link.svelte';
|
||||
let { title = '_Resource Title_', children = () => {}, link = "https://example.com"} = $props();
|
||||
import Link from './Link.svelte';
|
||||
let { title = '_Resource Title_', children, link = 'https://example.com' } = $props();
|
||||
</script>
|
||||
|
||||
<div class="bg-ecsess-200 w-96 rounded-lg px-8 py-4">
|
||||
<p class="text-ecsess-black text-xl font-semibold pb-2">
|
||||
{title}
|
||||
</p>
|
||||
<div class="bg-ecsess-200 ring-6 ring-ecsess-600 hover:ring-ecsess-200/60 hover:shadow-3xl max-w-sm rounded-lg w-full transition-all" transition:slide>
|
||||
<Link href={link}>
|
||||
<div class="px-8 py-4">
|
||||
<p class="text-ecsess-800 px-2 text-xl font-semibold lg:text-2xl">
|
||||
{title}
|
||||
</p>
|
||||
|
||||
<p class="text-ecsess-black text-base font-normal py-2">{@render children()}</p>
|
||||
|
||||
<Link href={link}>
|
||||
<Button>Access</Button>
|
||||
</Link>
|
||||
<p class="text-ecsess-black pt-3 text-base font-normal lg:text-lg">{@render children()}</p>
|
||||
</div>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user