-
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.
Improve layout on mobile devices and Add footer with socials (PR#6)
- Loading branch information
Showing
8 changed files
with
87 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<script lang="ts"> | ||
import EmailIcon from '$lib/icons/email_icon.svelte'; | ||
import GithubIcon from '$lib/icons/github_icon.svelte'; | ||
import ItchioIcon from '$lib/icons/itchio_icon.svelte'; | ||
import LinkedinIcon from '$lib/icons/linkedin_icon.svelte'; | ||
let socials = [ | ||
{ href: 'mailto:hello@franciscunha.com', label: 'hello@franciscunha.com', icon: EmailIcon }, | ||
{ href: 'https://github.com/franciscunha', label: 'franciscunha', icon: GithubIcon }, | ||
{ | ||
href: 'https://www.linkedin.com/in/francunha/', | ||
label: '/in/francunha', | ||
icon: LinkedinIcon | ||
}, | ||
{ href: 'https://moonsheep.itch.io/', label: 'moonsheep.itch.io', icon: ItchioIcon } | ||
]; | ||
let { horizontal }: { horizontal: boolean } = $props(); | ||
</script> | ||
|
||
<div | ||
class={[ | ||
'flex max-sm:flex-col max-sm:items-start max-sm:gap-2', | ||
!horizontal && 'sm:flex-col sm:items-start sm:gap-2', | ||
horizontal && 'sm:w-full sm:flex-row sm:justify-center sm:gap-12' | ||
]} | ||
> | ||
{#each socials as social} | ||
<a href={social.href} class="flex flex-row items-center gap-2" | ||
><social.icon size={2} />{social.label}</a | ||
> | ||
{/each} | ||
</div> |
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
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