Skip to content

Commit

Permalink
Footer (kokoaespol#47)
Browse files Browse the repository at this point in the history
* footer

* responsive footer

* Move footer to layout component

* Refactor a bit

* gecko and new responsive design

* Fit image to content

* Apply prettier

---------

Co-authored-by: Adrian Delgado <[email protected]>
  • Loading branch information
2 people authored and alicarpio committed Sep 22, 2024
1 parent 4641d46 commit 9669046
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/assets/icons/facebook.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/lib/assets/icons/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/lib/assets/icons/instagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/lib/assets/icons/x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/lib/assets/logos/mascota.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions src/lib/components/Footer.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<script lang="ts">
import facebook_logo from "$lib/assets/icons/facebook.svg";
import x_logo from "$lib/assets/icons/x.svg";
import instagram_logo from "$lib/assets/icons/instagram.svg";
import github_logo from "$lib/assets/icons/github.svg";
import mascota_imagen from "$lib/assets/logos/mascota.png";
</script>

<footer>
<div class="flex flex-col justify-between gap-6 p-6">
<div class="flex justify-between sm:flex-col md:flex-row md:gap-96">
<img class="hidden size-32 md:block" src={mascota_imagen} alt="Mascota" />
<div class="flex flex-col gap-2 lg:justify-between">
<h2>SUBSCRIBE TO OUR NEWSLETTER</h2>
<p>The latest news, articles, and resources, sent to your inbox weekly.</p>
<div class="flex flex-col items-center gap-3 md:flex-row">
<input
class="form-input h-10 w-full rounded text-gray-900 md:w-3/4"
type="email"
placeholder="Enter your email"
/>
<button class="h-10 w-full truncate rounded-lg bg-lime-600 px-2 md:w-1/4">
Subscribe
</button>
</div>
</div>
</div>

<div
class="flex flex-col-reverse justify-between gap-5 border-t border-t-gray-400 p-4 md:flex-row lg:gap-96"
>
<h6 class="text-xs text-gray-300">© 2024 Kokoa. All rights reserved.</h6>
<div class="flex gap-6 text-gray-300">
<a href="https://www.facebook.com/kokoaecuador">
<img height="16" width="16" src={facebook_logo} alt="Facebook" />
</a>
<a href="https://x.com/kokoa_espol">
<img height="16" width="16" src={x_logo} alt="X" />
</a>
<a href="https://www.instagram.com/kokoa_espol">
<img height="16" width="16" src={instagram_logo} alt="Instagram" />
</a>
<a href="https://github.com/kokoaespol">
<img height="16" width="16" src={github_logo} alt="Github" />
</a>
</div>
</div>
</div>
</footer>
2 changes: 2 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { Toaster } from "svelte-sonner";
import { page } from "$app/stores";
import Navbar from "$lib/components/layout/Navbar.svelte";
import Footer from "$lib/components/Footer.svelte";
let { children } = $props();
</script>
Expand All @@ -14,4 +15,5 @@

<Navbar />
{@render children()}
<Footer />
<Toaster richColors closeButton />

0 comments on commit 9669046

Please sign in to comment.