Skip to content

Commit 6e940b8

Browse files
committed
feat: added marketing banner
1 parent b585224 commit 6e940b8

File tree

4 files changed

+52
-1
lines changed

4 files changed

+52
-1
lines changed

components/Banner.tsx

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import { Center, Flex, Text, chakra } from '@chakra-ui/react'
2+
3+
const Banner = () => {
4+
return (
5+
<Center
6+
py="2"
7+
px="3"
8+
bgGradient="linear(to-r,cyan.700, purple.500)"
9+
color="white"
10+
textAlign="center"
11+
>
12+
<Flex align="center" fontSize="sm">
13+
<Text fontWeight="medium" maxW={{ base: '32ch', md: 'unset' }}>
14+
Join our newsletter for exclusive updates!
15+
</Text>
16+
<chakra.a
17+
flexShrink={0}
18+
href="https://developerdao.substack.com/s/probably-nothing"
19+
target="_blank"
20+
ms="6"
21+
bg="blackAlpha.300"
22+
color="whiteAlpha.900"
23+
fontWeight="semibold"
24+
px="3"
25+
py="1"
26+
rounded="base"
27+
>
28+
Subscribe now!{' '}
29+
</chakra.a>
30+
</Flex>
31+
</Center>
32+
)
33+
}
34+
35+
export default Banner

components/Layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import NavBar from '@components/NavBar'
22
import Footer from '@components/footer/Footer'
33
import { Box } from '@chakra-ui/react'
4+
import Banner from './Banner'
45

56
const Layout = ({ children }: { children: React.ReactNode }) => {
67
return (
78
<>
9+
<Banner />
810
<NavBar />
911
<Box
1012
p="1.25em"

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"@emotion/react": "^11.10.6",
1919
"@emotion/styled": "^11.10.6",
2020
"@fontsource/inter": "^4.5.15",
21+
"@headlessui/react": "^1.7.17",
22+
"@heroicons/react": "^2.0.18",
2123
"@vercel/analytics": "^0.1.10",
2224
"framer-motion": "^10.0.0",
2325
"next": "13.2.1",

yarn.lock

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,18 @@
12701270
resolved "https://registry.yarnpkg.com/@fontsource/inter/-/inter-4.5.15.tgz#eed1873d68755d3b52d6fcfcfa3493118430a512"
12711271
integrity sha512-FzleM9AxZQK2nqsTDtBiY0PMEVWvnKnuu2i09+p6DHvrHsuucoV2j0tmw+kAT3L4hvsLdAIDv6MdGehsPIdT+Q==
12721272

1273+
"@headlessui/react@^1.7.17":
1274+
version "1.7.17"
1275+
resolved "https://registry.yarnpkg.com/@headlessui/react/-/react-1.7.17.tgz#a0ec23af21b527c030967245fd99776aa7352bc6"
1276+
integrity sha512-4am+tzvkqDSSgiwrsEpGWqgGo9dz8qU5M3znCkC4PgkpY4HcCZzEDEvozltGGGHIKl9jbXbZPSH5TWn4sWJdow==
1277+
dependencies:
1278+
client-only "^0.0.1"
1279+
1280+
"@heroicons/react@^2.0.18":
1281+
version "2.0.18"
1282+
resolved "https://registry.yarnpkg.com/@heroicons/react/-/react-2.0.18.tgz#f80301907c243df03c7e9fd76c0286e95361f7c1"
1283+
integrity sha512-7TyMjRrZZMBPa+/5Y8lN0iyvUU/01PeMGX2+RE7cQWpEUIcb4QotzUObFkJDejj/HUH4qjP/eQ0gzzKs2f+6Yw==
1284+
12731285
"@humanwhocodes/config-array@^0.11.8":
12741286
version "0.11.8"
12751287
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.8.tgz#03595ac2075a4dc0f191cc2131de14fbd7d410b9"
@@ -2627,7 +2639,7 @@ cli-truncate@^3.1.0:
26272639
slice-ansi "^5.0.0"
26282640
string-width "^5.0.0"
26292641

2630-
2642+
[email protected], client-only@^0.0.1:
26312643
version "0.0.1"
26322644
resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1"
26332645
integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==

0 commit comments

Comments
 (0)