From 428c9086515ca2bc118de3510d474e4c6e97eea0 Mon Sep 17 00:00:00 2001 From: m-tartari <37861893+m-tartari@users.noreply.github.com> Date: Mon, 16 Jun 2025 13:36:02 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20uniform=20headers=20acros?= =?UTF-8?q?s=20pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/atoms/SectionHeader/index.tsx | 6 + .../atoms/SectionSubheader/index.tsx | 6 + src/components/atoms/index.ts | 3 + .../molecules/CookieConsent/index.tsx | 5 +- .../molecules/CookiePreferences/index.tsx | 9 +- .../molecules/PrivacyPolicy/index.tsx | 30 ++--- .../pages/CurriculumPage/CurriculumPage.tsx | 106 ++++++++---------- 7 files changed, 81 insertions(+), 84 deletions(-) create mode 100644 src/components/atoms/SectionHeader/index.tsx create mode 100644 src/components/atoms/SectionSubheader/index.tsx diff --git a/src/components/atoms/SectionHeader/index.tsx b/src/components/atoms/SectionHeader/index.tsx new file mode 100644 index 0000000..5bfcbc5 --- /dev/null +++ b/src/components/atoms/SectionHeader/index.tsx @@ -0,0 +1,6 @@ +import { Typography, TypographyProps } from '@mui/material' +import { FC } from 'react' + +const Header: FC = props => + +export default Header diff --git a/src/components/atoms/SectionSubheader/index.tsx b/src/components/atoms/SectionSubheader/index.tsx new file mode 100644 index 0000000..4b95754 --- /dev/null +++ b/src/components/atoms/SectionSubheader/index.tsx @@ -0,0 +1,6 @@ +import { Typography, TypographyProps } from '@mui/material' +import { FC } from 'react' + +const Subheader: FC = props => + +export default Subheader diff --git a/src/components/atoms/index.ts b/src/components/atoms/index.ts index 39badb5..7a1d22e 100644 --- a/src/components/atoms/index.ts +++ b/src/components/atoms/index.ts @@ -1,5 +1,8 @@ export { default as Award } from './Award' export { default as Extracurricular } from './Extracurricular' +export { default as ListItemText } from './ListItemText' export { default as Publication } from './Publication' +export { default as SectionHeader } from './SectionHeader' +export { default as SectionSubheader } from './SectionSubheader' export * from './IconLinks' diff --git a/src/components/molecules/CookieConsent/index.tsx b/src/components/molecules/CookieConsent/index.tsx index 1b598ab..331dbed 100644 --- a/src/components/molecules/CookieConsent/index.tsx +++ b/src/components/molecules/CookieConsent/index.tsx @@ -3,6 +3,7 @@ import { Box, Button, Link, Stack, Typography, Unstable_TrapFocus as TrapFocus, import { useAnalytics } from 'use-analytics' import { ANALYTICS_PLUGINS, COOKIE_CONSENT_KEY } from 'components/utils/analytics/index.js' +import { SectionSubheader } from 'components/atoms/index.js' interface Consent { necessary: boolean // Always true, but included for completeness @@ -63,9 +64,9 @@ const CookieConsent = () => { zIndex: 9999, })}> - + Cookie Preferences - + We use cookies to improve your browsing experience and analyze our traffic. By clicking "Accept All", you consent to our use of cookies. diff --git a/src/components/molecules/CookiePreferences/index.tsx b/src/components/molecules/CookiePreferences/index.tsx index 0fe4bec..54fceca 100644 --- a/src/components/molecules/CookiePreferences/index.tsx +++ b/src/components/molecules/CookiePreferences/index.tsx @@ -4,6 +4,7 @@ import { Box, Button, Link, Stack, Switch, Typography, SnackbarCloseReason, Snac import { useAnalytics } from 'use-analytics' import { ANALYTICS_PLUGINS, COOKIE_CONSENT_KEY } from 'components/utils/analytics/index.js' +import { SectionHeader } from 'components/atoms/index.js' interface CookieConsentState { necessary: boolean // Always true, but included for completeness @@ -64,9 +65,9 @@ const CookieConsent: React.FC = ({ consentDisplayDefaultOpen return ( - + Cookie Preferences - + Please set your preferences below. You can change these settings at any time in the future.
@@ -98,7 +99,7 @@ const CookieConsent: React.FC = ({ consentDisplayDefaultOpen - + Necessary Cookies @@ -110,7 +111,7 @@ const CookieConsent: React.FC = ({ consentDisplayDefaultOpen - + Analytics Cookies ({ listStyleType: 'disc', @@ -15,24 +15,20 @@ const List = styled(MuiList)(({ theme }) => ({ const PrivacyPolicy: React.FC = () => { return ( - + Privacy Policy - + Last updated: May 27, 2025 - - Introduction - + Introduction m-tartari ("we", "our", or "us") respects your privacy and is committed to protecting your personal data. This privacy policy will inform you about how we look after your personal data when you visit our website and tell you about your privacy rights and how the law protects you. - - The Data We Collect About You - + The Data We Collect About You We collect and process the following information when you visit our website: @@ -44,9 +40,7 @@ const PrivacyPolicy: React.FC = () => { includes information about how you use our website, products, and services. - - Cookies - + Cookies We use cookies to distinguish you from other users of our website. This helps us to provide you with a good experience when you browse our website and also allows us to improve our site. @@ -66,9 +60,7 @@ const PrivacyPolicy: React.FC = () => { - - Google Analytics - + Google Analytics This website uses Google Analytics 4, a web analytics service provided by Google, Inc. ("Google"). Google Analytics uses cookies to help the website analyze how users use the site. The information generated by the cookie about your use of the website will be transmitted to and @@ -92,9 +84,7 @@ const PrivacyPolicy: React.FC = () => { . - - Your Rights - + Your Rights Under the General Data Protection Regulation (GDPR), you have various rights in relation to your personal data, including: @@ -108,9 +98,7 @@ const PrivacyPolicy: React.FC = () => { The right to object to processing of your personal data - - Contact Us - + Contact Us If you have any questions about this privacy policy or our privacy practices, please contact us at{' '} diff --git a/src/components/pages/CurriculumPage/CurriculumPage.tsx b/src/components/pages/CurriculumPage/CurriculumPage.tsx index dafb63d..d2270cf 100644 --- a/src/components/pages/CurriculumPage/CurriculumPage.tsx +++ b/src/components/pages/CurriculumPage/CurriculumPage.tsx @@ -1,6 +1,6 @@ import { Box, Divider, Link, Stack, Table, TableCell, TableRow, Typography } from '@mui/material' -import { Award, ExternalIconLink, Extracurricular, Publication } from 'components/atoms' +import { Award, ExternalIconLink, Extracurricular, Publication, SectionHeader, SectionSubheader } from 'components/atoms' import { CurriculumItem } from 'components/molecules' import { Page } from 'components/templates' @@ -8,9 +8,7 @@ const Curriculum = () => { return ( - - Work Experience - + Work Experience {/* id="selfemployed-software" */} @@ -128,13 +126,9 @@ const Curriculum = () => { - - Education - + Education - - Certifications - + Certifications {/* id="WUT" */} @@ -143,20 +137,19 @@ const Curriculum = () => { - window.open('https://master-emaro.ec-nantes.fr/', '_blank')} - sx={{ - mt: 2, - cursor: 'pointer', - ':hover': { - backgroundColor: 'transparent', - color: 'primary.main', - }, - }} - gutterBottom> - EMARO+ Program - Master Studies - + + + EMARO+ Program - Master Studies + + {/* id="WUT" */} { - window.open('https://corsi.unibo.it/2cycle/AutomationEngineering/almatong-bachelor-programme', '_blank')} - sx={{ - mt: 2, - cursor: 'pointer', - ':hover': { - backgroundColor: 'transparent', - color: 'primary.main', - }, - }} - gutterBottom> - Almatong Project - Bachelor Studies - + + + Almatong Project - Bachelor Studies + + {/* id="TJ" */} { - + High School Studies - + {/* id="Roiti" */} { - - Skills - + Skills - Languages + + Languages + Italian (Native Speaker), English (Proficient, IELTS 7.5), French (Good), Chinese (Basic, HSK3) - Digital + + Digital + Languages: TypeScript/Javascript (Proficient), Python (Proficient), Bash (Good), C++ (Good), C (Fair) @@ -347,7 +341,9 @@ const Curriculum = () => { - Softskills + + Softskills + Adaptability, Communication, Creativity, Critical Thinking, Problem-Solving, Self-Organization, Teamworking @@ -357,11 +353,9 @@ const Curriculum = () => { {/* Accomplishments */} - - Accomplishments - + Accomplishments - Awards + Awards { - Press Releases + Press Releases { - Publications + Publications { {/* Extacurricoular */} - - Extracurricular - + Extracurricular {/* Volunteering */} - Volunteering + Volunteering @@ -437,7 +429,7 @@ const Curriculum = () => { {/* Other */} {/* Interests */} - Interests + Interests