Skip to content

Commit

Permalink
created nav bar
Browse files Browse the repository at this point in the history
  • Loading branch information
harvanchik committed Jul 6, 2024
1 parent 788ec53 commit 004aaf5
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;
Binary file added src/lib/logo.png
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/logo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,18 @@
import '../app.css';
</script>

<header class="fixed inset-x-0 top-0 z-10 border-b border-[#694E41]/25 shadow-sm">
<nav class="mx-auto flex h-16 items-center justify-between bg-[#faeee5] px-32">
<a href="./">
<img src="/src/lib/logo2.png" alt="logo" class="h-24" />
</a>
<!-- about and blog buttons on right side -->
<div class="font-cormorant mr-4 text-lg">
<a href="/about" class="mr-4 text-[#694E41]">about</a>
<a href="/blog" class="mr-4 text-[#694E41]">blog</a>
<a href="/subscribe" class="text-[#694E41]">subscribe</a>
</div>
</nav>
</header>

<slot></slot>
2 changes: 0 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
<h1>Welcome to SvelteKit</h1>
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
6 changes: 5 additions & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ export default {
content: ['./src/**/*.{html,js,svelte,ts}'],

theme: {
extend: {}
extend: {
fontFamily: {
cormorant: ['Cormorant Garamond', 'serif']
}
}
},

plugins: [require('@tailwindcss/typography')]
Expand Down

0 comments on commit 004aaf5

Please sign in to comment.