Skip to content

Commit

Permalink
fix closing navbar on md
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjam committed May 21, 2024
1 parent 8b36a4e commit 825902c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
10 changes: 7 additions & 3 deletions docs/todo3.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ add all components to styleguide
hero image full width
hashnode PostItem card with details
header in layout, ListLayout, PostLayout, PageLayout, FullWidthLayout
fix active navbar item
fix active navbar item
baseline for layout, w-screen, min-h-screen, tagovi, prouci
breadcrumb for navigation
breadcrumb for navigation, categories
responsive fonts
<main /> full height screen - header - footer
asChild for Container and Prose
Expand Down Expand Up @@ -140,7 +140,11 @@ style tags
procitaj transition docs
navbar buttons to links
add astro and fastapi in resume
close mobile header on md
-----
close mobile header on md
// group-[.menu-open]: increases specificity everywhere
// group-[.menu-open]:flex-col md:!flex-row, both on flex-direction
-----
prose vec ima sve stilove kako treba, samo h1 ogranici na 48px jer je prose-xl
umotaj sve u prose u Base layout, pa samo nekoliko slotova no-prose
add colors and gradients to h1 maybe
Expand Down
7 changes: 5 additions & 2 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ import { NAVIGATION_ITEMS } from '@/constants/navigation';
import { CONFIG } from '@/config';
import Avatar from '@/assets/images/avatar.jpg';
// group-[.menu-open]: increases specificity everywhere
// group-[.menu-open]:flex-col md:!flex-row, both on flex-direction
---

<header id="main-header" class="group">
<div
class={clsx(
'flex gap-2',
'group-[.menu-open]:flex-col md:flex-row md:justify-between md:items-center',
'group-[.menu-open]:flex-col md:!flex-row md:justify-between md:items-center',
'max-w-7xl py-4 px-4 md:mx-auto'
)}
>
Expand Down Expand Up @@ -54,7 +57,7 @@ import Avatar from '@/assets/images/avatar.jpg';

{/* nav items */}
<nav class="select-none hidden md:block group-[.menu-open]:block" aria-label="Site navigation">
<ul class="flex gap-1 group-[.menu-open]:flex-col md:flex-row">
<ul class="flex gap-1 group-[.menu-open]:flex-col md:!flex-row">
{
NAVIGATION_ITEMS.map(({ title, path }) => (
<li>
Expand Down
2 changes: 1 addition & 1 deletion src/content/project/2024-02-13-example-project-1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import { Image } from 'astro:assets';

import FlowersImage from '../../content/project/_images/2024-02-13-example-project-1/flowers-store.jpg';

# Love you Julia ❤️
# This is the first project

<Image src={FlowersImage} width={1024} alt="" />

0 comments on commit 825902c

Please sign in to comment.