From cf1fef80201362d393ac0ba26c049311a14db023 Mon Sep 17 00:00:00 2001 From: Dan Dobos Date: Mon, 20 Oct 2025 18:07:11 +0200 Subject: [PATCH] feat: enhance SEO with meta tags in index.html; improve typography and layout in various components --- public/index.html | 2 + .../blog-accordion/BlogAccordion.jsx | 8 +- .../main-accordion/MainAccordion.jsx | 10 +-- src/components/main-card/MainCard.jsx | 90 +++++++++---------- .../common/darkModeToggle/DarkModeToggle.jsx | 9 +- .../languageSwitcher/LanguageSwitcher.jsx | 7 +- .../landing/components/header/Header.jsx | 83 +++++++++-------- src/layouts/main/components/footer/Footer.jsx | 2 +- src/pages/about/About.jsx | 12 +-- src/pages/landing/Landing.jsx | 28 +++--- 10 files changed, 130 insertions(+), 121 deletions(-) diff --git a/public/index.html b/public/index.html index 00e5b58..8fe43c9 100644 --- a/public/index.html +++ b/public/index.html @@ -9,6 +9,8 @@ /> + + diff --git a/src/components/blog-accordion/BlogAccordion.jsx b/src/components/blog-accordion/BlogAccordion.jsx index 6bbb541..f65e899 100644 --- a/src/components/blog-accordion/BlogAccordion.jsx +++ b/src/components/blog-accordion/BlogAccordion.jsx @@ -31,11 +31,15 @@ const BlogAccordion = ({ blogContent }) => { expandIcon={} aria-controls={`panel-${itemIdx}-content`} id={`panel-${itemIdx}-header`}> - {title} + {title} {lines.map((lineContent, idx) => ( - + {lineContent} ))} diff --git a/src/components/main-accordion/MainAccordion.jsx b/src/components/main-accordion/MainAccordion.jsx index 24af126..4e66b9a 100644 --- a/src/components/main-accordion/MainAccordion.jsx +++ b/src/components/main-accordion/MainAccordion.jsx @@ -18,7 +18,7 @@ const MainAccordion = ({ items, title }) => { expandIcon={} aria-controls="panel1a-content" id="panel1a-header"> - {title} + {title} { justifyContent="baseline" spacing={3}> {items.map((project) => ( - + { - const theme = useTheme(); + const theme = useTheme(); - const options = { - reverse: true, - speed: 1200, - easing: "cubic-bezier(.09,.67,.54,.76)", - }; + const options = { + reverse: true, + speed: 1200, + easing: "cubic-bezier(.09,.67,.54,.76)", + }; - return ( - - + return ( + + - {description} + {description} - - window.open(url, "_blank")} - > - - {title} - - - - - } - /> - ); + + window.open(url, "_blank")}> + + {title} + + + + + } + /> + ); }; export default MainCard; diff --git a/src/layouts/common/darkModeToggle/DarkModeToggle.jsx b/src/layouts/common/darkModeToggle/DarkModeToggle.jsx index ee38aae..c75b538 100644 --- a/src/layouts/common/darkModeToggle/DarkModeToggle.jsx +++ b/src/layouts/common/darkModeToggle/DarkModeToggle.jsx @@ -11,8 +11,15 @@ const DarkModeToggle = () => { return ( + size="large" + sx={{ + alignSelf: "right", + ml: 1, + color: theme.palette.text.secondary, + fontSize: "24px", + }}> {theme.palette.mode === "dark" ? ( ) : ( diff --git a/src/layouts/common/languageSwitcher/LanguageSwitcher.jsx b/src/layouts/common/languageSwitcher/LanguageSwitcher.jsx index 3cfd823..74cbdba 100644 --- a/src/layouts/common/languageSwitcher/LanguageSwitcher.jsx +++ b/src/layouts/common/languageSwitcher/LanguageSwitcher.jsx @@ -10,15 +10,20 @@ const LanguageSwitcher = () => { const appContext = useContext(AppContext); return ( { const setLocale = appContext && appContext.setLocale; if (typeof setLocale === "function") { setLocale(appContext.locale === "en" ? "nl" : "en"); } }} + size="large" sx={{ - color: theme.palette.text.secondary, alignSelf: "right", + mr: 1, + ml: 1, + color: theme.palette.text.secondary, + fontSize: "24px", }}> {} diff --git a/src/layouts/landing/components/header/Header.jsx b/src/layouts/landing/components/header/Header.jsx index 0be1c3a..36aea8b 100644 --- a/src/layouts/landing/components/header/Header.jsx +++ b/src/layouts/landing/components/header/Header.jsx @@ -9,11 +9,11 @@ import { Typography, Breadcrumbs, Link as MaterialLink, - Grid2, IconButton, + Box, } from "@mui/material"; import { useTheme } from "@mui/material/styles"; -import ThreeSixtyOutlinedIcon from "@mui/icons-material/ThreeSixtyOutlined"; +import ThreeSixtyIcon from "@mui/icons-material/ThreeSixtyOutlined"; import LanguageSwitcher from "layouts/common/languageSwitcher"; import DarkModeToggle from "layouts/common/darkModeToggle"; @@ -28,6 +28,7 @@ const Header = () => { { }} elevation={0}> - - - - - Dan Dobos - - {/*href="#about" is used to navigate within the page */} - - About - - - - - - - - - - - - - - - + + + + Dan Dobos + + {/*href="#about" is used to navigate within the page */} + + About + + + + + + + + + + + + + diff --git a/src/layouts/main/components/footer/Footer.jsx b/src/layouts/main/components/footer/Footer.jsx index a809cbb..d14901f 100644 --- a/src/layouts/main/components/footer/Footer.jsx +++ b/src/layouts/main/components/footer/Footer.jsx @@ -15,7 +15,7 @@ const Footer = () => { minHeight: "24px", }} justifyContent="center"> - + { alignItems="flex-end" justifyContent="flex-end" spacing={3}> - - + + Software Developer - + { - - + + Characterized by the desire of understanding and implementing technological innovations. - + Contact diff --git a/src/pages/landing/Landing.jsx b/src/pages/landing/Landing.jsx index 0bc9ce1..043d05c 100644 --- a/src/pages/landing/Landing.jsx +++ b/src/pages/landing/Landing.jsx @@ -10,9 +10,9 @@ const Home = () => { const t = useIntl(); return ( - - - + + + {t.formatMessage({ id: "navigation.projects", defaultMessage: "Projects", @@ -20,14 +20,14 @@ const Home = () => { - + - - - + + + {t.formatMessage({ id: "navigation.best-practices", defaultMessage: "Best Practices", @@ -35,14 +35,14 @@ const Home = () => { - + - - - + + + {t.formatMessage({ id: "navigation.blog", defaultMessage: "Blog", @@ -50,13 +50,13 @@ const Home = () => { - + - - + +