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

Footer #47

Merged
merged 7 commits into from
Aug 11, 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
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 />
Loading