Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tutors links overflowing on mobile #638

Merged
merged 2 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions app/src/lib/ui/navigators/Links.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<div class="grid grid-cols-1 sm:grid-cols-2 gap-3 my-4">
<div class="mx-auto">
<a class="btn btn-xl bg-primary-500 text-white font-bold hover:scale-105 transition-all w-60" href="/course/reference-course" target="_blank" rel="noreferrer"> Demo </a>
</div>
<div class="mx-auto">
<a class="btn btn-xl bg-surface-100-800-token font-bold hover:scale-105 transition-all w-60" href="/course/tutors-reference-manual" target="_blank" rel="noreferrer"
>Documentation</a
>
</div>
<div class="mx-auto sm:order-4">
<a class="btn btn-xl bg-primary-500 text-white font-bold hover:scale-105 transition-all w-60" href="/gallery" target="_blank" rel="noreferrer">Gallery</a>
</div>
<div class="mx-auto sm:order-3">
<a class="btn btn-xl bg-surface-100-800-token font-bold hover:scale-105 transition-all w-60" href="/live" target="_blank" rel="noreferrer"> Live </a>
</div>
</div>
18 changes: 2 additions & 16 deletions app/src/routes/(auth)/dashboard/Welcome.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import Links from "$lib/ui/navigators/Links.svelte";
export let session: any;
</script>

Expand All @@ -10,22 +11,7 @@
</p>
</div>
<div>
<div class="grid grid-cols-2 gap-3">
<div>
<a class="btn btn-xl bg-primary-500 text-white font-bold hover:scale-105 transition-all w-60" href="/course/reference-course" target="_blank" rel="noreferrer"> Demo </a>
</div>
<div>
<a class="btn btn-xl bg-surface-100-800-token font-bold hover:scale-105 transition-all w-60" href="/course/tutors-reference-manual" target="_blank" rel="noreferrer"
>Documentation</a
>
</div>
<div>
<a class="btn btn-xl bg-surface-100-800-token font-bold hover:scale-105 transition-all w-60" href="/live" target="_blank" rel="noreferrer"> Live </a>
</div>
<div>
<a class="btn btn-xl bg-primary-500 text-white font-bold hover:scale-105 transition-all w-60" href="/gallery" target="_blank" rel="noreferrer">Gallery</a>
</div>
</div>
<Links/>
</div>
</div>
</div>
22 changes: 4 additions & 18 deletions app/src/routes/(home)/TutorsLinks.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { modeCurrent } from "@skeletonlabs/skeleton";
import { modeCurrent } from "@skeletonlabs/skeleton";
import Links from "$lib/ui/navigators/Links.svelte";
</script>

<div class="bg-gradient-to-l from-primary-50 dark:from-primary-900 to-accent-50 dark:to-accent-900">
Expand All @@ -13,25 +14,10 @@
<p class="font-bold !text-lg my-4">
A collection of open source components & services supporting the creation of transformative learning experiences using open web standards.
</p>
<div class="grid grid-cols-2 gap-3">
<div>
<a class="btn btn-xl bg-primary-500 text-white font-bold hover:scale-105 transition-all w-60" href="/course/reference-course" target="_blank" rel="noreferrer"> Demo </a>
</div>
<div>
<a class="btn btn-xl bg-surface-100-800-token font-bold hover:scale-105 transition-all w-60" href="/course/tutors-reference-manual" target="_blank" rel="noreferrer"
>Documentation</a
>
</div>
<div>
<a class="btn btn-xl bg-surface-100-800-token font-bold hover:scale-105 transition-all w-60" href="/live" target="_blank" rel="noreferrer"> Live </a>
</div>
<div>
<a class="btn btn-xl bg-primary-500 text-white font-bold hover:scale-105 transition-all w-60" href="/gallery" target="_blank" rel="noreferrer">Gallery</a>
</div>
</div>
<Links/>
</div>
<div class="w-full lg:w-1/2">
<img src={$modeCurrent ? "/tutors-reader-light.png" : "/tutors-reader-dark.png"} alt="tutors reader screenshot" />
</div>
</div>
</div>
</div>
Loading