diff --git a/components/CTA.jsx b/components/CTA.jsx
new file mode 100644
index 0000000..917c8d4
--- /dev/null
+++ b/components/CTA.jsx
@@ -0,0 +1,21 @@
+export default function CTA() {
+ return (
+
+
+
Need more bandwidth?
+
+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus praesentium tenetur pariatur.
+
+
+
+
+
+
+ )
+ }
+
\ No newline at end of file
diff --git a/components/Form.jsx b/components/Form.jsx
new file mode 100644
index 0000000..eb36a85
--- /dev/null
+++ b/components/Form.jsx
@@ -0,0 +1,375 @@
+/*
+ This example requires some changes to your config:
+
+ ```
+ // tailwind.config.js
+ module.exports = {
+ // ...
+ plugins: [
+ // ...
+ require('@tailwindcss/forms'),
+ ],
+ }
+ ```
+*/
+export default function Form() {
+ return (
+
+ )
+ }
+
\ No newline at end of file
diff --git a/components/primitives/Layout.tsx b/components/primitives/Layout.tsx
index deaaa62..adef387 100644
--- a/components/primitives/Layout.tsx
+++ b/components/primitives/Layout.tsx
@@ -39,28 +39,42 @@ const StyledSection = styled("div", {
const StyledContent = styled("div", {
display: "grid",
width: "100%",
- maxWidth: "1280px",
- paddingLeft: "clamp(12px, 12%, 128px)",
- paddingRight: "clamp(12px, 12%, 128px)",
+ maxWidth: "1540px",
+ '@media (min-width: 520px)': {
+ paddingLeft: "2rem",
+ paddingRight: "2rem",
+ },
+ '@media (min-width: 1024px)': {
+ paddingLeft: "8rem",
+ paddingRight: "8rem",
+ },
+ '@media (min-width: 1280px)': {
+ paddingLeft: "12rem",
+ paddingRight: "12rem",
+ },
alignItems: "start",
variants: {
layout: {
['overflow']: {
gridTemplateColumns: "1fr",
- paddingLeft: "12px",
- paddingRight: "12px",
+ paddingLeft: "2rem",
+ paddingRight: "2rem",
},
['full']: {
gridTemplateColumns: "1fr"
},
['60-40']: {
gridTemplateColumns: "0.6fr 0.4fr",
- gap: "max(8%, 64px)",
+ '@media (min-width: 520px)': { gap: "2rem" },
+ '@media (min-width: 1024px)': { gap: "4rem" },
+ '@media (min-width: 1280px)': { gap: "8rem" },
},
['70-30']: {
gridTemplateColumns: "0.7fr 0.3fr",
- gap: "max(4%, 40px)",
+ '@media (min-width: 520px)': { gap: "2rem" },
+ '@media (min-width: 1024px)': { gap: "3rem" },
+ // '@media (min-width: 1280px)': { gap: "6rem" },
},
}
},
diff --git a/package-lock.json b/package-lock.json
index aebd08d..e58fea2 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -8,6 +8,7 @@
"name": "bd-layout-prototype",
"version": "0.1.0",
"dependencies": {
+ "@headlessui/react": "^1.7.3",
"@heroicons/react": "^2.0.12",
"@stitches/react": "^1.2.8",
"next": "12.3.1",
@@ -15,6 +16,7 @@
"react-dom": "18.2.0"
},
"devDependencies": {
+ "@tailwindcss/forms": "^0.5.3",
"@types/node": "18.11.0",
"@types/react": "18.0.21",
"@types/react-dom": "18.0.6",
@@ -74,6 +76,18 @@
"url": "https://opencollective.com/eslint"
}
},
+ "node_modules/@headlessui/react": {
+ "version": "1.7.3",
+ "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.7.3.tgz",
+ "integrity": "sha512-LGp06SrGv7BMaIQlTs8s2G06moqkI0cb0b8stgq7KZ3xcHdH3qMP+cRyV7qe5x4XEW/IGY48BW4fLesD6NQLng==",
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "react": "^16 || ^17 || ^18",
+ "react-dom": "^16 || ^17 || ^18"
+ }
+ },
"node_modules/@heroicons/react": {
"version": "2.0.12",
"resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.0.12.tgz",
@@ -381,6 +395,18 @@
"tslib": "^2.4.0"
}
},
+ "node_modules/@tailwindcss/forms": {
+ "version": "0.5.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.3.tgz",
+ "integrity": "sha512-y5mb86JUoiUgBjY/o6FJSFZSEttfb3Q5gllE4xoKjAAD+vBrnIhE4dViwUuow3va8mpH4s9jyUbUbrRGoRdc2Q==",
+ "dev": true,
+ "dependencies": {
+ "mini-svg-data-uri": "^1.2.3"
+ },
+ "peerDependencies": {
+ "tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1"
+ }
+ },
"node_modules/@types/json5": {
"version": "0.0.29",
"resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
@@ -2445,6 +2471,15 @@
"node": ">=8.6"
}
},
+ "node_modules/mini-svg-data-uri": {
+ "version": "1.4.4",
+ "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz",
+ "integrity": "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==",
+ "dev": true,
+ "bin": {
+ "mini-svg-data-uri": "cli.js"
+ }
+ },
"node_modules/minimatch": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
@@ -3716,6 +3751,12 @@
"strip-json-comments": "^3.1.1"
}
},
+ "@headlessui/react": {
+ "version": "1.7.3",
+ "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.7.3.tgz",
+ "integrity": "sha512-LGp06SrGv7BMaIQlTs8s2G06moqkI0cb0b8stgq7KZ3xcHdH3qMP+cRyV7qe5x4XEW/IGY48BW4fLesD6NQLng==",
+ "requires": {}
+ },
"@heroicons/react": {
"version": "2.0.12",
"resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.0.12.tgz",
@@ -3883,6 +3924,15 @@
"tslib": "^2.4.0"
}
},
+ "@tailwindcss/forms": {
+ "version": "0.5.3",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.3.tgz",
+ "integrity": "sha512-y5mb86JUoiUgBjY/o6FJSFZSEttfb3Q5gllE4xoKjAAD+vBrnIhE4dViwUuow3va8mpH4s9jyUbUbrRGoRdc2Q==",
+ "dev": true,
+ "requires": {
+ "mini-svg-data-uri": "^1.2.3"
+ }
+ },
"@types/json5": {
"version": "0.0.29",
"resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
@@ -5378,6 +5428,12 @@
"picomatch": "^2.3.1"
}
},
+ "mini-svg-data-uri": {
+ "version": "1.4.4",
+ "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz",
+ "integrity": "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==",
+ "dev": true
+ },
"minimatch": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
diff --git a/package.json b/package.json
index 0da7c95..af95b0f 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@
"lint": "next lint"
},
"dependencies": {
+ "@headlessui/react": "^1.7.3",
"@heroicons/react": "^2.0.12",
"@stitches/react": "^1.2.8",
"next": "12.3.1",
@@ -16,6 +17,7 @@
"react-dom": "18.2.0"
},
"devDependencies": {
+ "@tailwindcss/forms": "^0.5.3",
"@types/node": "18.11.0",
"@types/react": "18.0.21",
"@types/react-dom": "18.0.6",
diff --git a/pages/index.tsx b/pages/index.tsx
index 91c5939..33a97d9 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -1,5 +1,7 @@
import Head from 'next/head';
import Cards from '../components/Cards';
+import CTA from '../components/CTA';
+import Form from '../components/Form';
import LinkList from '../components/LinkList';
import Box from '../components/primitives/Box';
import * as Layout from '../components/primitives/Layout';
@@ -36,8 +38,8 @@ export default function Home() {
-
-
+
+
diff --git a/tailwind.config.js b/tailwind.config.js
index aa34798..1b43159 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -8,6 +8,6 @@ module.exports = {
extend: {},
},
plugins: [
- // require('@tailwindcss/forms'),
+ require('@tailwindcss/forms')
],
}