@@ -24,18 +24,14 @@ const currentPath = `/${trimSlash(new URL(Astro.url).pathname)}`;
24
24
---
25
25
26
26
<header
27
- class:list ={ [
28
- " z-40 flex-none bg-white mx-auto w-full border-b border-gray-50/0 transition-[opacity] ease-in-out" ,
29
- ]}
27
+ class =" z-40 flex-none shadow-[0_1px_1px_rgba(0,0,0,0.05)] shadow-gray-200 bg-white mx-auto w-full border-b border-gray-50/0 transition-[opacity] ease-in-out"
30
28
id =" header"
31
29
>
32
30
<div
33
- class:list ={ [
34
- " relative w-full text-default mx-auto py-2 xl:px-5 flex flex-col lg:justify-between xl:flex-row xl:items-center" ,
35
- ]}
31
+ class =" relative w-full text-default mx-auto py-2 px-3 md:pr-0 lg:px-5 flex flex-col lg:justify-between xl:flex-row xl:items-center"
36
32
>
37
33
<!-- Logo -->
38
- <div class =" flex justify-between md:pl-5 " >
34
+ <div class =" flex justify-between" >
39
35
<a class =" flex items-start" href =`${base }` >
40
36
<span class =" " >
41
37
<img id =" logo" class =" svg" src ={ logo .src } alt ={ " SuperOffice" } />
@@ -46,27 +42,27 @@ const currentPath = `/${trimSlash(new URL(Astro.url).pathname)}`;
46
42
47
43
<!-- Nav -->
48
44
<nav
49
- class =" text-sm lg:text- base items-center md:ml-auto md:mr-3 md:mt -3 w-full md:w-fit"
45
+ class =" text-base items-center md:ml-auto md:mr-3 w-full md:w-fit"
50
46
aria-label =" Main"
51
47
>
52
48
<div class =" hidden md:flex md:justify-self-end md:h-10" id =" primaryNav" >
53
49
<ul
54
- class =" font-medium w-full py-4 md:py-0 text-left flex flex-col md:flex-row md:self-center md:w-auto md:text-base md:text-[0.9375rem] tracking-[0.01rem] md:justify-center"
50
+ class =" font-medium md:text-sm lg:text-base w-full py-4 md:py-0 text-left flex flex-col md:flex-row md:self-center md:w-auto tracking-[0.01rem] md:justify-center"
55
51
>
56
52
{
57
53
links .map (({ text , href , links }, id ) => (
58
54
<li
59
55
class :list = { [
60
56
links ?.length ? " dropdown" : " " ,
61
- " py-1 md:py-0 lg:px-4 md:content-center w-full md:w-fit" ,
57
+ " py-2 px-2 md:py-0 md:px-1 lg:px-4 md:content-center h-fit w-full md:w-fit hover:bg-gray-200 " ,
62
58
id != 5 ? " md:border-r md:border-black" : " " ,
63
59
]}
64
60
>
65
61
{ links ?.length ? (
66
62
<>
67
63
<button
68
64
type = " button"
69
- class = " hover:text-link rounded px-4 py-1 flex items-center text-xs lg:text-base "
65
+ class = " hover:text-link rounded lg: px-4 flex items-center"
70
66
>
71
67
{ text }
72
68
<Icon
@@ -80,7 +76,7 @@ const currentPath = `/${trimSlash(new URL(Astro.url).pathname)}`;
80
76
<li >
81
77
<a
82
78
class :list = { [
83
- " text-xs lg:text-sm md:hover:bg-gray-100 md:hover:border-l-4 md:hover:border-superOfficeGreen hover:text-link py-1.5 md:py-2 px-5 block whitespace-no-wrap " ,
79
+ " md:hover:bg-gray-100 md:hover:border-l-4 md:hover:border-superOfficeGreen hover:text-link py-1 md:py-2 md: px-5 block whitespace-no-wrap " ,
84
80
{ " aw-link-active" : href2 === currentPath },
85
81
]}
86
82
href = { base + href2 }
@@ -94,7 +90,7 @@ const currentPath = `/${trimSlash(new URL(Astro.url).pathname)}`;
94
90
) : (
95
91
<a
96
92
class :list = { [
97
- " hover:text-link text-xs lg:text-base rounded px-2 py -2 md:flex md:items-center text-right md:text-center" ,
93
+ " hover:text-link rounded md:px -2 md:flex md:items-center text-right md:text-center" ,
98
94
{ " aw-link-active" : href === currentPath },
99
95
]}
100
96
href = { base + href }
0 commit comments