From 2a701d02915889a17f254bb4ccea59e9631e81fd Mon Sep 17 00:00:00 2001 From: Craig Date: Wed, 16 Apr 2025 12:17:38 +0100 Subject: [PATCH] Refactor components for improved readability: standardize import order, enhance formatting, and ensure consistent newline usage across ColorPalette, Contact, FeatureCards, FooterSocial, HeaderSimple, HeroTitle, and Home.page components. --- .../ColorPalette/ColorPalette.story.tsx | 2 +- .../src/components/ContactUs/Contact.tsx | 8 +++-- .../components/FeatureCards/FeatureCards.tsx | 20 ++++++------- .../components/FooterSocial/FooterSocial.tsx | 29 ++++++++++++++++--- .../components/HeaderSimple/HeaderSimple.tsx | 10 ++++--- .../src/components/HeroTitle/HeroTitle.tsx | 6 ++-- .../src/pages/Home.page.tsx | 4 +-- 7 files changed, 53 insertions(+), 26 deletions(-) diff --git a/frontend/vite-template-master/src/components/ColorPalette/ColorPalette.story.tsx b/frontend/vite-template-master/src/components/ColorPalette/ColorPalette.story.tsx index bf231df..36af051 100644 --- a/frontend/vite-template-master/src/components/ColorPalette/ColorPalette.story.tsx +++ b/frontend/vite-template-master/src/components/ColorPalette/ColorPalette.story.tsx @@ -13,4 +13,4 @@ const meta = { export default meta; type Story = StoryObj; -export const Default: Story = {}; \ No newline at end of file +export const Default: Story = {}; diff --git a/frontend/vite-template-master/src/components/ContactUs/Contact.tsx b/frontend/vite-template-master/src/components/ContactUs/Contact.tsx index cb2f1ab..7aef47b 100644 --- a/frontend/vite-template-master/src/components/ContactUs/Contact.tsx +++ b/frontend/vite-template-master/src/components/ContactUs/Contact.tsx @@ -1,4 +1,4 @@ -import { Anchor, Container, Text, Stack } from '@mantine/core'; +import { Anchor, Container, Stack, Text } from '@mantine/core'; import classes from './Contact.module.css'; export function Contact() { @@ -25,7 +25,11 @@ export function Contact() { LinkedIn:{' '} - + linkedin.com/in/craigmacfadyen diff --git a/frontend/vite-template-master/src/components/FeatureCards/FeatureCards.tsx b/frontend/vite-template-master/src/components/FeatureCards/FeatureCards.tsx index afa75ad..1c0c5c6 100644 --- a/frontend/vite-template-master/src/components/FeatureCards/FeatureCards.tsx +++ b/frontend/vite-template-master/src/components/FeatureCards/FeatureCards.tsx @@ -1,4 +1,4 @@ -import { FaChartLine, FaEye, FaMessage, FaShield, FaCode, FaLightbulb } from 'react-icons/fa6'; +import { FaChartLine, FaCode, FaEye, FaLightbulb, FaMessage, FaShield } from 'react-icons/fa6'; import { Badge, Card, @@ -9,7 +9,7 @@ import { Title, useMantineTheme, } from '@mantine/core'; -import classes from "./FeatureCards.module.css"; +import classes from './FeatureCards.module.css'; const mockdata = [ { @@ -27,25 +27,25 @@ const mockdata = [ { title: 'Data Science', description: - "Sometimes you just need a simple model and some nice graphs. I can help you understand your data and build a model that works for you.", + 'Sometimes you just need a simple model and some nice graphs. I can help you understand your data and build a model that works for you.', icon: FaChartLine, }, { title: 'Privacy Focused', description: - "Your data is valuable and sensitive. All my solutions are built with privacy and security in mind from the ground up, ensuring regulatory compliance and protecting your competitive advantage.", + 'Your data is valuable and sensitive. All my solutions are built with privacy and security in mind from the ground up, ensuring regulatory compliance and protecting your competitive advantage.', icon: FaShield, }, { title: 'Open Source', description: - "Leverage the power and innovation of open source technologies while avoiding vendor lock-in. This approach provides transparency, cost-effectiveness, and ensures your solutions remain maintainable long-term.", + 'Leverage the power and innovation of open source technologies while avoiding vendor lock-in. This approach provides transparency, cost-effectiveness, and ensures your solutions remain maintainable long-term.', icon: FaCode, }, { title: 'Cutting-Edge Research', description: - "I stay continuously updated with the latest advancements in AI research and immediately apply emerging techniques to solve business problems. Your solutions will never be outdated or obsolete.", + 'I stay continuously updated with the latest advancements in AI research and immediately apply emerging techniques to solve business problems. Your solutions will never be outdated or obsolete.', icon: FaLightbulb, }, ]; @@ -77,9 +77,9 @@ export function FeaturesCards() { - I've worked with a range of businesses, from startups to established companies, and I've - learned a lot about what works and what doesn't. I work across the full Machine Learning stack, from - data collection to model deployment. + I've worked with a range of businesses, from startups to established companies, and I've + learned a lot about what works and what doesn't. I work across the full Machine Learning + stack, from data collection to model deployment. @@ -87,4 +87,4 @@ export function FeaturesCards() { ); -} \ No newline at end of file +} diff --git a/frontend/vite-template-master/src/components/FooterSocial/FooterSocial.tsx b/frontend/vite-template-master/src/components/FooterSocial/FooterSocial.tsx index 6b34824..1b5e29d 100644 --- a/frontend/vite-template-master/src/components/FooterSocial/FooterSocial.tsx +++ b/frontend/vite-template-master/src/components/FooterSocial/FooterSocial.tsx @@ -9,17 +9,38 @@ export function FooterSocial() { Craig Macfadyen - + - + - + ); -} \ No newline at end of file +} diff --git a/frontend/vite-template-master/src/components/HeaderSimple/HeaderSimple.tsx b/frontend/vite-template-master/src/components/HeaderSimple/HeaderSimple.tsx index ad49063..8d610fb 100644 --- a/frontend/vite-template-master/src/components/HeaderSimple/HeaderSimple.tsx +++ b/frontend/vite-template-master/src/components/HeaderSimple/HeaderSimple.tsx @@ -1,4 +1,4 @@ -import { Anchor, Burger, Container, Group, Text } from '@mantine/core'; +import { Burger, Container, Group, Text } from '@mantine/core'; import { useDisclosure } from '@mantine/hooks'; import { ColorSchemeToggle } from '../ColorSchemeToggle/ColorSchemeToggle'; import classes from './HeaderSimple.module.css'; @@ -9,14 +9,16 @@ export function HeaderSimple() { return (
- Craig Macfadyen + + Craig Macfadyen + - + {/* CV Blog - + */} diff --git a/frontend/vite-template-master/src/components/HeroTitle/HeroTitle.tsx b/frontend/vite-template-master/src/components/HeroTitle/HeroTitle.tsx index a6dba13..8ae35d0 100644 --- a/frontend/vite-template-master/src/components/HeroTitle/HeroTitle.tsx +++ b/frontend/vite-template-master/src/components/HeroTitle/HeroTitle.tsx @@ -14,9 +14,9 @@ export function HeroTitle() { - Machine Learning Engineer with experience in consulting and research. Expertise in Computer Vision - and Large Language Models. Take a look at what I can do for your business and get in touch - if you have any questions or you'd like to work together! + Machine Learning Engineer with experience in consulting and research. Expertise in + Computer Vision and Large Language Models. Take a look at what I can do for your business + and get in touch if you have any questions or you'd like to work together! diff --git a/frontend/vite-template-master/src/pages/Home.page.tsx b/frontend/vite-template-master/src/pages/Home.page.tsx index 9f6f7c0..85acf66 100644 --- a/frontend/vite-template-master/src/pages/Home.page.tsx +++ b/frontend/vite-template-master/src/pages/Home.page.tsx @@ -1,10 +1,10 @@ import { Container } from '@mantine/core'; import { Contact } from '@/components/ContactUs/Contact'; +import { FeaturesCards } from '@/components/FeatureCards/FeatureCards'; +import { FooterSocial } from '@/components/FooterSocial/FooterSocial'; import { HeaderSimple } from '@/components/HeaderSimple/HeaderSimple'; import { HeroTitle } from '@/components/HeroTitle/HeroTitle'; import Testimonial from '@/components/Testimonial/Testimonial'; -import { FeaturesCards } from '@/components/FeatureCards/FeatureCards'; -import { FooterSocial } from '@/components/FooterSocial/FooterSocial'; export function HomePage() { return (