@@ -3,32 +3,32 @@ import Link from "next/link";
33export const Header = ( ) => {
44 return (
55 < header >
6+ < Link href = "/" >
7+ < a >
8+ < span className = "logo" >
9+ < span className = "i" > i</ span >
10+ < span className = "js" > JS</ span >
11+ </ span >
12+ </ a >
13+ </ Link >
14+
615 < div >
716 < Link href = "/" >
8- < a className = "ijs-link" >
9- < span className = "ijs" >
10- i< span className = "js-font" > JS</ span >
11- </ span >
12- </ a >
13- </ Link >
14- </ div >
15- < div >
16- < Link href = "/" >
17- < a > Home</ a >
17+ < a className = "menu-item" > Home</ a >
1818 </ Link >
1919 < Link href = "/books" >
20- < a > Books</ a >
20+ < a className = "menu-item" > Books</ a >
2121 </ Link >
2222 < Link href = "/about" >
23- < a > About</ a >
23+ < a className = "menu-item" > About</ a >
2424 </ Link >
2525 </ div >
2626
2727 < style jsx > { `
2828 header {
2929 align-items: center;
30- background: #ff6666 ;
31- border-color: white ;
30+ background: white ;
31+ border-bottom: 2px solid #333644 ;
3232 display: flex;
3333 height: 64px;
3434 justify-content: space-between;
@@ -38,50 +38,52 @@ export const Header = () => {
3838 top: 0;
3939 width: 100%;
4040 }
41+ header * {
42+ text-decoration: none;
43+ }
4144 header div,
42- header a {
45+ .menu-item {
4346 text-transform: uppercase;
4447 font-size: 0.9em;
4548 letter-spacing: 1px;
4649 padding: 2rem;
47- text-decoration: none;
4850 }
49- header a :hover {
51+ .menu-item :hover {
5052 color: #1c2b6d;
51- text-shadow: 1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 10px #fff ,
52- 1px 1px 0 #fff ;
53+ text-shadow: 1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 10px rgba(119, 102, 119, 0.25) ,
54+ 1px 1px 0 orange ;
5355 font-weight: 800;
5456 }
55-
56- .ijs-link {
57- text-decoration: none;
57+
58+ .logo {
59+ background-color: #B838F0;
60+ font-size: 1.25rem;
61+ letter-spacing: 0px;
62+ padding: 0.76rem 0 0 0.75rem;
63+ position: absolute;
64+ top: 16px;
5865 }
59-
60- .js-font {
61- font-family: "Source Sans Pro", sans-serif;
62- color: #776677;
63- font-size: 2rem;
64- margin-right: 4px;
66+ .logo:hover {
67+ background: #333644;
6568 }
66- .js-font :hover {
67- color: white ;
69+ .logo :hover .js {
70+ color: #B838F0 ;
6871 }
69-
70- .ijs {
71- font-weight: 700;
72- font-size: 1.25rem;
73- color: white;
74- background-color: #ff8866;
75- margin: 0.75rem 0;
76- padding: 1.55rem 0 0 0.75rem;
72+ .i {
73+ color: #f7f7f7;
74+ font-weight: bolder;
75+ text-transform: lowercase;
7776 }
78-
79- .ijs:hover .js- font {
77+ .js {
78+ font-family: "Source Sans Pro", sans-serif;
8079 color: white;
80+ font-size: 2rem;
81+ margin-right: 4px;
8182 }
82- .ijs :hover {
83- background- color: #776677 ;
83+ .js :hover {
84+ color: #333644 ;
8485 }
86+
8587 ` } </ style >
8688 </ header >
8789 ) ;
0 commit comments