Skip to content
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
5 changes: 5 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import { Navbar, NavBrand, NavLi, NavUl, NavHamburger, Button } from 'flowbite-svelte';
import { Footer, FooterCopyright, FooterLinkGroup, FooterLink } from 'flowbite-svelte';
import { DarkMode } from 'flowbite-svelte';
import Header from './components/Header.svelte';
</script>

<svelte:head>
Expand All @@ -18,8 +19,12 @@
<meta name="keywords" content="CodeDrop, code sharing, code snippets, paste code, share code, temporary code sharing, secure code sharing, quick collaborations" />
<meta property="og:image" content="https://example.com/codedrop-thumbnail.jpg" />
<!-- Consider replacing "https://example.com/codedrop-thumbnail.jpg" with the actual URL of your project's thumbnail image -->
<!-- Importing Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&display=swap" rel="stylesheet">
</svelte:head>

<Header/>

<main class="bg-white dark:bg-gray-900" style="min-height: calc(100vh - 145px);">
<slot></slot>
</main>
Expand Down
9 changes: 9 additions & 0 deletions src/routes/components/Header.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<header class="sticky top-0 z-50 bg-gray-800 dark:bg-gray-900 shadow-lg">
<div class="container mx-auto flex justify-between items-center p-4">
<a href="/" class="text-3xl font-extrabold text-white tracking-wide" style="font-family: 'Dancing Script', cursive;">CodeDrop</a>
<nav class="flex space-x-6">
<a href="#create-pastes" class="text-lg font-semibold text-gray-300 hover:text-indigo-400 transition duration-300 ease-in-out">Create Pastes</a>
<a href="#recent-pastes" class="text-lg font-semibold text-gray-300 hover:text-red-400 transition duration-300 ease-in-out">Recent Pastes</a>
</nav>
</div>
</header>