-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update type * feat: add optional course ui * chore: add filter list * fix: review
- Loading branch information
Showing
4 changed files
with
66 additions
and
42 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
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,38 @@ | ||
<script lang="ts"> | ||
import type { Teaching, TeachingYear } from '$lib/teachings'; | ||
import { base } from '$app/paths'; | ||
export let years: TeachingYear[] | ||
export let activeYears: Teaching[] | ||
export let title: string | ||
</script> | ||
|
||
<ul class="menu p-2"> | ||
{#each years as year} | ||
{#if year.teachings.length > 0} | ||
<li class="menu-title"> | ||
<span class="text-2xl mt-5 italic">{year.year} anno {title}</span> | ||
</li> | ||
<div class="divider mt-0"></div> | ||
<div class="flex flex-row flex-wrap"> | ||
{#each year.teachings as teaching} | ||
{@const disabled = !activeYears.includes(teaching)} | ||
{@const href = base + '/' + teaching.url} | ||
<a href={disabled ? null : href} class="text-center text-lg"> | ||
{#if teaching.name} | ||
<li class="flex flex-row xs:flex-1 justify-center border-base-content items-center m-2 border-2 rounded-md join"> | ||
<a href={disabled ? null : href} class="text-center text-lg join-item"> | ||
{teaching.name ? teaching.name : teaching.url} | ||
</a> | ||
{#if teaching.telegram != null} | ||
<a href="https://t.me/{teaching.telegram}" class="text-center text-lg join-item border-l-2">👥</a> | ||
{/if} | ||
</li> | ||
{/if} | ||
</a> | ||
{/each} | ||
</div> | ||
{/if} | ||
|
||
{/each} | ||
</ul> |
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
a177223
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
dynamik – ./
dynamik.vercel.app
dynamik-csunibo.vercel.app
dynamik-git-main-csunibo.vercel.app