From c1872d10c8eaf03b9dffedda23eaec49e63ef7d4 Mon Sep 17 00:00:00 2001 From: Craig Date: Tue, 15 Apr 2025 16:22:29 +0100 Subject: [PATCH] Refactor ContactUs component: update layout and styles for improved responsiveness, enhance typography, and streamline structure for better readability. --- .../components/ContactUs/Contact.module.css | 63 +++++++++++++++++-- .../src/components/ContactUs/Contact.tsx | 43 ++++++++----- .../Testimonial/Testimonial.module.css | 6 +- .../components/Testimonial/Testimonial.tsx | 4 +- 4 files changed, 91 insertions(+), 25 deletions(-) diff --git a/frontend/vite-template-master/src/components/ContactUs/Contact.module.css b/frontend/vite-template-master/src/components/ContactUs/Contact.module.css index d253a2c..136f454 100644 --- a/frontend/vite-template-master/src/components/ContactUs/Contact.module.css +++ b/frontend/vite-template-master/src/components/ContactUs/Contact.module.css @@ -1,12 +1,63 @@ .wrapper { - padding: var(--mantine-spacing-xl); - background-color: light-dark(var(--mantine-color-white), var(--mantine-color-dark-8)); - border-radius: var(--mantine-radius-md); - box-shadow: var(--mantine-shadow-lg); - margin-top: 20px; + position: relative; + box-sizing: border-box; + background-color: light-dark(var(--mantine-color-white), var(--mantine-color-dark-8)); +} + +.inner { + position: relative; + padding-top: 120px; + padding-bottom: 120px; + width: 80%; +} + +/* Small screen styles */ +@media (max-width: 755px) { + .inner { + padding-bottom: 80px; + padding-top: 80px; } - +} + +.title { + font-family: + "Greycliff CF", + var(--mantine-font-family); + font-size: 62px; + font-weight: 900; + line-height: 1.1; + margin: 0; + padding: 0; + color: light-dark(var(--mantine-color-black), var(--mantine-color-white)); +} + +/* Small screen styles */ +@media (max-width: 755px) { .title { + font-size: 42px; line-height: 1.2; } +} + +.description { + margin-top: var(--mantine-spacing-xl); + font-size: 24px; +} + +/* Small screen styles */ +@media (max-width: 755px) { + .description { + font-size: 18px; + } +} + +.link { + text-decoration: none; + font-weight: 500; + transition: color 0.2s ease; +} + +.link:hover { + text-decoration: underline; +} \ No newline at end of file diff --git a/frontend/vite-template-master/src/components/ContactUs/Contact.tsx b/frontend/vite-template-master/src/components/ContactUs/Contact.tsx index e4de1ab..cb2f1ab 100644 --- a/frontend/vite-template-master/src/components/ContactUs/Contact.tsx +++ b/frontend/vite-template-master/src/components/ContactUs/Contact.tsx @@ -1,25 +1,36 @@ -import { Anchor, Container, Stack, Text, Title } from '@mantine/core'; +import { Anchor, Container, Text, Stack } from '@mantine/core'; import classes from './Contact.module.css'; export function Contact() { return ( - - - Get in Touch - +
+ +

+ + Get in Touch + +

+ + If you'd like to collaborate, have any questions, or just want to say hello, feel free to reach out! - - Email: cdmacfadyen@proton.me - - - LinkedIn:{' '} - - linkedin.com/in/craigmacfadyen - - - -
+ + + + Email:{' '} + + cdmacfadyen@proton.me + + + + LinkedIn:{' '} + + linkedin.com/in/craigmacfadyen + + + + +
); } diff --git a/frontend/vite-template-master/src/components/Testimonial/Testimonial.module.css b/frontend/vite-template-master/src/components/Testimonial/Testimonial.module.css index 50c6198..ae27a26 100644 --- a/frontend/vite-template-master/src/components/Testimonial/Testimonial.module.css +++ b/frontend/vite-template-master/src/components/Testimonial/Testimonial.module.css @@ -1,4 +1,8 @@ .card { padding-left: 4rem; /* Add more padding to the left */ padding-right: 4rem; /* Add more padding to the right */ - } \ No newline at end of file + } + +.wrapper { + margin-bottom: 80px; +} \ No newline at end of file diff --git a/frontend/vite-template-master/src/components/Testimonial/Testimonial.tsx b/frontend/vite-template-master/src/components/Testimonial/Testimonial.tsx index 76aaed6..ce096ab 100644 --- a/frontend/vite-template-master/src/components/Testimonial/Testimonial.tsx +++ b/frontend/vite-template-master/src/components/Testimonial/Testimonial.tsx @@ -27,7 +27,7 @@ function TestimonialsCarousel({ testimonials = defaultTestimonials }: Testimonia const autoplay = Autoplay(); return ( - <> +
Testimonials @@ -62,7 +62,7 @@ function TestimonialsCarousel({ testimonials = defaultTestimonials }: Testimonia ))} - +
); }