diff --git a/components/ImageAndText.js b/components/ImageAndText.js new file mode 100644 index 0000000..8e0416e --- /dev/null +++ b/components/ImageAndText.js @@ -0,0 +1,57 @@ +function Button({ text, ...props }) { + return ( + + {text} + + ); +} + +export default function ImageAndText({ + buttonText, + children, + imageUrl, + title, + ...props +}) { + return ( + <> +
+ {/* Themes: blue, purple, teal */} +

Featured case study

+
+
+
+
+
+
+ "" +
+
+
+
+ +
+
+

{title}

+
{children}
+

+

+
+
+
+
+ + ); +} diff --git a/package.json b/package.json index b5321f1..41bc28d 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ }, "dependencies": { "next": "12.3.0", + "postcss-nested": "^5.0.6", "react": "18.2.0", "react-dom": "18.2.0" }, diff --git a/pages/index.js b/pages/index.js index 57b69c4..577bdd5 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,58 +1,29 @@ +import ImageAndText from "../components/ImageAndText"; + export default function Home() { return (
- {/* Themes: blue, purple, teal */} -
-

Featured case study

-
-
-
-
-
-
- "" -
-
-
-
-
-
-

- CXcon: Experience Transformation -

-

- Our second CXcon in October was dedicated to experience - transformation. The free one-day virtual event brought - together 230+ heads of digital, thought leaders, and UX - practitioners to discuss all aspects of experience design.. -

-

- In a jam-packed day filled with keynote sessions, panels, - and virtual networking we explored topics including design - leadership, UX ethics, designing for emotion and innovation - at scale. -

-

- - Explore this event - -

-
-
-
-
-
+ +

+ Our second CXcon in October was dedicated to experience + transformation. The free one-day virtual event brought together + 230+ heads of digital, thought leaders, and UX practitioners to + discuss all aspects of experience design.. +

+ +

+ In a jam-packed day filled with keynote sessions, panels, and + virtual networking we explored topics including design leadership, + UX ethics, designing for emotion and innovation at scale. +

+
); diff --git a/postcss.config.js b/postcss.config.js index 33ad091..ab92d07 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,5 +1,6 @@ module.exports = { plugins: { + 'postcss-nested': {}, tailwindcss: {}, autoprefixer: {}, }, diff --git a/styles/globals.css b/styles/globals.css index 878fcbb..e1d9960 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -3,6 +3,12 @@ @tailwind utilities; @layer components { + .markup { + * + * { + @apply mt-4; + } + } + .fancy-corners { position: relative; background-color: #fff; @@ -14,7 +20,7 @@ position: absolute; width: 8em; height: 8em; - background-color: theme('colors.primary'); + background-color: theme("colors.primary"); background-size: 100% 100%; background-position: 0 0; transform: translateZ(-1px);