From eed242d5bd5245f9933bac31433fe24417b0ef26 Mon Sep 17 00:00:00 2001 From: jamesratcliffe101 Date: Wed, 27 May 2026 19:43:53 +0100 Subject: [PATCH] added content cards and picture with text section. also added hero section --- app/page.tsx | 23 +++++++++++--- components/hero-section.css | 54 +++++++++++++++++++++++++-------- components/hero-section.tsx | 8 ++--- components/pic-with-text.tsx | 27 +++++++++++++++++ components/ui/content-cards.tsx | 25 ++++++++++----- components/ui/hr-with-text.tsx | 11 +++++++ 6 files changed, 119 insertions(+), 29 deletions(-) create mode 100644 components/pic-with-text.tsx create mode 100644 components/ui/hr-with-text.tsx diff --git a/app/page.tsx b/app/page.tsx index 22251d6..8f489e0 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,13 +1,26 @@ import Image from "next/image"; -import HeroSection from "@/components/hero-section"; +import HeroSection from "@/components/hero-section"; +import ContentCard from "@/components/ui/content-cards"; +import PicWithText from "@/components/pic-with-text"; + +import pictureOne from "../assets/hero-picture-1.png" +import pictureTwo from "../assets/hero-picture-2.png" +import pictureThree from "../assets/hero-picture-3.png" export default function Home() { return (
-
- - +
+ + +
+ + + + +
+
- ); + ) } diff --git a/components/hero-section.css b/components/hero-section.css index 7b18094..0fba710 100644 --- a/components/hero-section.css +++ b/components/hero-section.css @@ -1,28 +1,56 @@ .hero-main { - width: 100%; - height: 400px; + width: 100%; + min-height: 400px; } -.hero-left { - width: 50%; +.hero-picture-stack { + position: relative; + width: 50%; + min-height: 320px; + flex-shrink: 0; } .hero-right { - width: 50%; - padding-left: 20px; + width: 50%; + padding-left: 20px; } .hero-picture { - border-radius: 20px; - position: absolute; - width: 20%; + position: absolute; + left: 50%; + top: 50%; + width: 70%; + max-width: 280px; + height: auto; + border-radius: 20px; + object-fit: cover; + transform: translate(-50%, -50%); +} + +.hero-picture--tilt-20 { + transform: translate(-50%, -50%) rotate(20deg); +} + +.hero-picture--tilt-40 { + transform: translate(-50%, -50%) rotate(40deg); } @media (max-width: 750px) { - .hero-right { - width: 100%; - padding-top: 20px; - } + .hero-picture-stack { + width: 100%; + min-height: 260px; + } + + .hero-picture { + width: 75%; + max-width: 240px; + } + + .hero-right { + width: 100%; + padding-left: 0; + padding-top: 60px; + } } diff --git a/components/hero-section.tsx b/components/hero-section.tsx index c21a9d2..f637430 100644 --- a/components/hero-section.tsx +++ b/components/hero-section.tsx @@ -8,10 +8,10 @@ export default function HeroSection() { return( <>
-
- - - +
+ + +

Sculpted Arc
Web Solutions

diff --git a/components/pic-with-text.tsx b/components/pic-with-text.tsx new file mode 100644 index 0000000..de1ab06 --- /dev/null +++ b/components/pic-with-text.tsx @@ -0,0 +1,27 @@ +import picOne from "../assets/hero-picture-1.png"; + +export default function PicWithText(){ + return ( +
+
+ +
+
+

Title of this section

+

This is the paragraph for this section. This is also just random filler text to see how things look. here are some extra words htat make no sence!

+
+
+
+ +
+
+
+

This is more text, however, this is actually a quote, yes, a quote indeed!

+
+
+ ) +} \ No newline at end of file diff --git a/components/ui/content-cards.tsx b/components/ui/content-cards.tsx index 443f258..99a697d 100644 --- a/components/ui/content-cards.tsx +++ b/components/ui/content-cards.tsx @@ -2,16 +2,27 @@ interface cardProps { src?: string button_link?: string + heading?: string button_text?: string + card_text?: string } -export default function ContentCard(buttonProps: cardProps) { +export default function ContentCard(CardProps: cardProps) { return ( - <> - - - + <> + + ) } \ No newline at end of file diff --git a/components/ui/hr-with-text.tsx b/components/ui/hr-with-text.tsx new file mode 100644 index 0000000..1456e6b --- /dev/null +++ b/components/ui/hr-with-text.tsx @@ -0,0 +1,11 @@ +export default function hrWithText() { + return ( + <> +
+
+ scroll down +
+
+ + ) +} \ No newline at end of file