-
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.
fix: remove recursion for optional courses + throw error for non exis…
…tant dashes
- Loading branch information
Showing
6 changed files
with
77 additions
and
65 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,13 +1,22 @@ | ||
<script lang="ts"> | ||
import { page } from '$app/stores'; | ||
$: error = $page.error; | ||
</script> | ||
|
||
<div class="flex justify-center"> | ||
<div class="flex justify-center h-screen items-center"> | ||
<div class="text-center"> | ||
<h1 class="text-5xl my-12">404</h1> | ||
<p class="text-xl my-8">Pagina non trovata</p> | ||
<h1 class="text-5xl mb-6 font-mono">{$page.status}</h1> | ||
|
||
<button class="btn btn-ghost" on:click|preventDefault={() => history.back()}> | ||
Torna indietro | ||
<p class="text-xl font-mono text-base-content"> | ||
{#if error == null} | ||
Unknown error! | ||
{:else} | ||
{error.message} | ||
{/if} | ||
</p> | ||
|
||
<button class="btn btn-ghost mt-10" on:click|preventDefault={() => history.back()}> | ||
Go back to previous page | ||
</button> | ||
</div> | ||
</div> |
This file was deleted.
Oops, something went wrong.
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,41 @@ | ||
<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"> | ||
<li | ||
class:disabled | ||
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 && teaching.telegram !== ''} | ||
<a | ||
href="https://t.me/{teaching.telegram}" | ||
class="text-center text-lg join-item border-l-2">👥</a | ||
> | ||
{/if} | ||
</li> | ||
</a> | ||
{/each} | ||
</div> | ||
{/if} | ||
{/each} | ||
</ul> |
e685cee
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-csunibo.vercel.app
dynamik-git-main-csunibo.vercel.app
dynamik.vercel.app