-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Friends-of-Monika/layouts
Add ToolLayout and migrate tool pages to it
- Loading branch information
Showing
10 changed files
with
5,473 additions
and
2,787 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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
yarnPath: .yarn/releases/yarn-4.4.0.cjs | ||
nodeLinker: node-modules |
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,4 +1,5 @@ | ||
{ | ||
"packageManager": "[email protected]", | ||
"name": "mas-web-utils", | ||
"version": "1.0.0", | ||
"private": true, | ||
|
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,9 @@ | ||
<script lang="ts"> | ||
export let href: string; | ||
</script> | ||
|
||
<li class="mt-1 font-medium text-blue-500 first:mt-0"> | ||
<a {href} target="_blank"> | ||
<slot /> | ||
</a> | ||
</li> |
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,3 @@ | ||
<p class="mt-2 text-gray-700 first:mt-0"> | ||
<slot /> | ||
</p> |
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,52 @@ | ||
<script lang="ts"> | ||
import { Icon, ChevronDoubleDown } from "svelte-hero-icons"; | ||
</script> | ||
|
||
<div class="h-auto w-screen lg:h-screen"> | ||
<div | ||
class="flex h-full w-full flex-col place-content-center place-items-center justify-center lg:flex-row lg:place-content-around lg:place-items-center" | ||
> | ||
<div class="flex h-[90vh] w-4/5 flex-col place-content-center gap-2 p-[2%] lg:h-2/3 lg:w-1/2"> | ||
<div class="mb-3 text-center"> | ||
<h1 class="text-2xl font-medium"> | ||
<slot name="title" /> | ||
</h1> | ||
{#if $$slots.subtitle} | ||
<h2 class="text-xl text-gray-500"> | ||
<slot name="subtitle" /> | ||
</h2> | ||
{/if} | ||
</div> | ||
<slot name="tool" /> | ||
</div> | ||
<div class="flex h-[10vh] flex-col place-items-center gap-1 lg:hidden"> | ||
Scroll for more | ||
<Icon src={ChevronDoubleDown} class="h-5 w-5" /> | ||
</div> | ||
<div | ||
class="mb-[3vh] flex min-h-[100vh] w-4/5 flex-col place-content-center gap-[5vh] p-[2%] lg:h-2/3 lg:w-1/4 lg:gap-4" | ||
> | ||
{#if $$slots.links} | ||
<div> | ||
<h1 class="mb-4 text-2xl">Helpful links</h1> | ||
<ul> | ||
<slot name="links" /> | ||
</ul> | ||
</div> | ||
{/if} | ||
<div> | ||
{#if $$slots.about} | ||
<h1 class="mb-3 text-2xl">About this tool</h1> | ||
<slot name="about" /> | ||
{/if} | ||
<p class="mt-[3vh] text-center text-gray-500"> | ||
Made by | ||
<span class="font-medium text-blue-500"> | ||
<a href="https://github.com/Friends-of-Monika" target="_blank"> Friends of Monika </a> | ||
</span> | ||
❤️ | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.