-
Notifications
You must be signed in to change notification settings - Fork 1k
/
Copy pathSuperHeader.js
50 lines (42 loc) · 1.02 KB
/
SuperHeader.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import React from "react";
import styled from "styled-components";
import { COLORS } from "../../constants";
import SearchInput from "../SearchInput";
import UnstyledButton from "../UnstyledButton";
import Icon from "../Icon";
const SuperHeader = () => {
return (
<Wrapper>
<MarketingMessage>
Free shipping on domestic orders over $75!
</MarketingMessage>
<SearchInput />
<HelpLink href="/help">Help</HelpLink>
<UnstyledButton>
<Icon id="shopping-bag" strokeWidth={1} />
</UnstyledButton>
</Wrapper>
);
};
const Wrapper = styled.div`
font-size: 0.875rem;
color: ${COLORS.gray[300]};
background-color: ${COLORS.gray[900]};
display: flex;
padding: 12px 32px;
align-items: center;
gap: 20px;
`;
const MarketingMessage = styled.span`
color: ${COLORS.white};
margin-right: auto;
`;
const HelpLink = styled.a`
color: inherit;
text-decoration: none;
outline-offset: 2px;
&:not(:focus-visible) {
outline: none;
}
`;
export default SuperHeader;