-
+
+
{`Professional +

- Hi, I'm {name}! + {greeting ?? `Hi, I'm ${name}!`}

{bio.map((paragraph) => ( -

{paragraph}

+

{paragraph}

))}
diff --git a/src/components/sections/ContactSection.tsx b/src/components/sections/ContactSection.tsx index e0f2d42..69c36d1 100644 --- a/src/components/sections/ContactSection.tsx +++ b/src/components/sections/ContactSection.tsx @@ -1,6 +1,8 @@ -import { Mail, ExternalLink, Send } from 'lucide-react'; -import { personalConfig, getObfuscatedEmail } from '../../config/personal'; +// eslint-disable-next-line @typescript-eslint/no-deprecated +import { Mail, Send, Globe, Linkedin, CalendarClock } from 'lucide-react'; +import { personalConfig } from '../../config/personal'; import { useLanguage } from '../../contexts/LanguageContext'; +import { useScreenReaderAnnouncements } from '../../hooks/useScreenReaderAnnouncements'; interface ContactSectionProps { title?: string; @@ -21,6 +23,7 @@ interface ContactSectionProps { export default function ContactSection(props: ContactSectionProps = {}) { const { texts: allTexts } = useLanguage(); const texts = allTexts.contact; + const { announce } = useScreenReaderAnnouncements(); const { title = texts.title, @@ -44,18 +47,9 @@ export default function ContactSection(props: ContactSectionProps = {}) { const subject = encodeURIComponent(texts.emailSubject); const body = encodeURIComponent(texts.emailBody); - // Announce action to screen readers - const announcement = document.createElement('div'); - announcement.setAttribute('aria-live', 'polite'); - announcement.setAttribute('class', 'sr-only'); - announcement.textContent = texts.emailAnnouncement; - document.body.appendChild(announcement); + announce(texts.emailAnnouncement); globalThis.location.href = `mailto:${email}?subject=${subject}&body=${body}`; - - setTimeout(() => { - announcement.remove(); - }, 1000); }; const getEmailAddress = () => { @@ -63,21 +57,6 @@ export default function ContactSection(props: ContactSectionProps = {}) { return parts[0] + '@' + parts[1] + '.' + parts[2]; }; - // Enhanced social link handler with announcements - const handleSocialClick = (platform: string, url: string) => { - const announcement = document.createElement('div'); - announcement.setAttribute('aria-live', 'polite'); - announcement.setAttribute('class', 'sr-only'); - announcement.textContent = texts.socialAnnouncement.replace('{platform}', platform); - document.body.appendChild(announcement); - - globalThis.open(url, '_blank', 'noopener,noreferrer'); - - setTimeout(() => { - announcement.remove(); - }, 1000); - }; - return (
@@ -91,15 +70,8 @@ export default function ContactSection(props: ContactSectionProps = {}) {

- {/* Skip link for keyboard navigation */} - - {/* Contact Content Grid */} -
+
{/* Let's Connect Card */}
@@ -117,6 +89,20 @@ export default function ContactSection(props: ContactSectionProps = {}) {
+
+
+ - - {getObfuscatedEmail()} - + {texts.codebergLinkText} +
  • - - - {personalConfig.social.github.username} - -
  • - -
  • - - - {personalConfig.social.linkedin.username} - + {texts.linkedinLinkText} +
  • diff --git a/src/components/sections/HeroSection.tsx b/src/components/sections/HeroSection.tsx index e794ea5..b039a97 100644 --- a/src/components/sections/HeroSection.tsx +++ b/src/components/sections/HeroSection.tsx @@ -1,8 +1,10 @@ +import { useState, useEffect } from 'react'; import { Download } from 'lucide-react'; import { useLocation, useNavigate } from 'react-router-dom'; import type { StatItem } from '../../data/StatItem'; -import { scrollToProjects } from '../../utils/scrollUtils'; +import { scrollToProjects, scrollToSection } from '../../utils/scrollUtils'; import { useLanguage } from '../../contexts/LanguageContext'; +import { useScreenReaderAnnouncements } from '../../hooks/useScreenReaderAnnouncements'; import resumePDF from '../../assets/CV_Sascha_Bach.pdf'; interface HeroSectionProps { @@ -12,6 +14,10 @@ interface HeroSectionProps { secondaryButtonText?: string; tertiaryButtonText?: string; statItems?: StatItem[]; + hideStats?: boolean; + showPrimaryButton?: boolean; + showSecondaryButton?: boolean; + showTertiaryButton?: boolean; } export default function HeroSection(props: HeroSectionProps = {}) { @@ -27,75 +33,58 @@ export default function HeroSection(props: HeroSectionProps = {}) { secondaryButtonText = texts.secondaryButtonText, tertiaryButtonText = texts.tertiaryButtonText, statItems = texts.statItems, + hideStats = false, + showPrimaryButton = true, + showSecondaryButton = true, + showTertiaryButton = true, } = props; const location = useLocation(); const navigate = useNavigate(); + const { announce } = useScreenReaderAnnouncements(); - // Enhanced announcement function for screen readers - const announceToScreenReader = (message: string) => { - const announcement = document.createElement('div'); - announcement.setAttribute('aria-live', 'polite'); - announcement.setAttribute('aria-atomic', 'true'); - announcement.setAttribute('class', 'sr-only'); - announcement.textContent = message; - - document.body.appendChild(announcement); - setTimeout(() => { - announcement.remove(); - }, 1000); - }; + const [loaded, setLoaded] = useState(false); + useEffect(() => { + if (document.readyState === 'complete') { + setLoaded(true); + } else { + const onLoad = () => setLoaded(true); + window.addEventListener('load', onLoad); + return () => window.removeEventListener('load', onLoad); + } + }, []); const handleViewWork = () => { - announceToScreenReader('Navigating to projects section'); + announce('Navigating to projects section'); scrollToProjects(location.pathname, navigate); }; const handleDownloadResume = () => { try { - announceToScreenReader('Starting resume download'); + announce('Starting resume download'); - // Create a temporary anchor element const link = document.createElement('a'); link.href = resumePDF; - link.download = 'CV_Sascha_Bach.pdf'; // Specify the filename for download - link.target = '_blank'; // Optional: open in new tab as fallback + link.download = 'CV_Sascha_Bach.pdf'; + link.target = '_blank'; - // Temporarily add to DOM and trigger click document.body.appendChild(link); link.click(); - - // Clean up link.remove(); - console.log('✅ Resume download initiated'); - announceToScreenReader('Resume download started successfully'); - } catch (error) { - console.error('❌ Error downloading resume:', error); - announceToScreenReader('Resume download failed, opening in new tab'); - - // Fallback: open in new tab if download fails - try { - window.open(resumePDF, '_blank'); - } catch (fallbackError) { - console.error('❌ Fallback method also failed:', fallbackError); - announceToScreenReader('Unable to access resume file'); - } + announce('Resume download started successfully'); + } catch { + announce('Resume download failed, opening in new tab'); + window.open(resumePDF, '_blank'); } }; const handleGetInTouch = () => { - announceToScreenReader('Navigating to contact section'); - const contactSection = document.querySelector('.contact-section'); - if (contactSection) { - contactSection.scrollIntoView({ - behavior: 'smooth', - block: 'start' - }); - } + announce('Navigating to contact section'); + scrollToSection('contact', location.pathname, navigate); }; return ( -
    +
    {/* Skip link for keyboard navigation */}
    @@ -112,32 +101,38 @@ export default function HeroSection(props: HeroSectionProps = {}) { {/* Hidden descriptions for screen readers */} @@ -145,29 +140,31 @@ export default function HeroSection(props: HeroSectionProps = {}) { {accessibilityTexts.screenReader.downloadResumeDescription}
    - + + {item.value} + + + {item.label} + +
    + ))} + + )}
    ); diff --git a/src/components/sections/ProjectsSection.tsx b/src/components/sections/ProjectsSection.tsx index 243d8fe..4a0f84a 100644 --- a/src/components/sections/ProjectsSection.tsx +++ b/src/components/sections/ProjectsSection.tsx @@ -1,8 +1,9 @@ import { GitBranch, ExternalLink } from 'lucide-react'; -import { useState, useRef, useEffect, type KeyboardEvent } from 'react'; import { useLanguage } from '../../contexts/LanguageContext'; import { projectsData } from '../../config/projects-config'; import type { Project } from '../../data/Project'; +import { useScreenReaderAnnouncements } from '../../hooks/useScreenReaderAnnouncements'; +import { useProjectKeyboardNavigation } from '../../hooks/useProjectKeyboardNavigation'; interface ProjectsSectionProps { @@ -15,10 +16,6 @@ export default function ProjectsSection(props: ProjectsSectionProps = {}) { const { texts: allTexts } = useLanguage(); const texts = allTexts.projects; const accessibilityTexts = allTexts.accessibility; - const [activeCardIndex, setActiveCardIndex] = useState(null); - const [focusedActionIndex, setFocusedActionIndex] = useState(0); - const cardRefs = useRef<(HTMLElement | null)[]>([]); - const actionRefs = useRef<(HTMLAnchorElement | null)[]>([]); // Use centralized texts as defaults, allow props to override const { @@ -31,129 +28,21 @@ export default function ProjectsSection(props: ProjectsSectionProps = {}) { }) } = props; - // Get available actions for a project - const getProjectActions = (project: Project) => { - const actions = []; - if (project.github) actions.push({ type: 'github', url: project.github }); - if (project.live) actions.push({ type: 'live', url: project.live }); - return actions; - }; - - // Handle card selection - const handleCardSelect = (index: number) => { - setActiveCardIndex(index); - setFocusedActionIndex(0); - - // Announce to screen readers - const project = projects[index]; - const actions = getProjectActions(project); - const announcement = `${project.title} card selected. ${actions.length} actions available. ${accessibilityTexts.navigation.useTabToNavigate}, Escape to close.`; - announceToScreenReader(announcement); - }; - - // Handle keyboard navigation within cards - const handleCardKeyDown = (event: KeyboardEvent, cardIndex: number) => { - const project = projects[cardIndex]; - const actions = getProjectActions(project); - - switch (event.key) { - case 'Enter': - case ' ': - event.preventDefault(); - handleCardSelect(cardIndex); - break; - case 'Escape': - if (activeCardIndex === cardIndex) { - event.preventDefault(); - setActiveCardIndex(null); - setFocusedActionIndex(0); - cardRefs.current[cardIndex]?.focus(); - announceToScreenReader(`${project.title} card closed.`); - } - break; - case 'Tab': - if (activeCardIndex === cardIndex && actions.length > 0) { - event.preventDefault(); - const nextActionIndex = event.shiftKey - ? (focusedActionIndex - 1 + actions.length) % actions.length - : (focusedActionIndex + 1) % actions.length; - setFocusedActionIndex(nextActionIndex); - - // Focus the action button - const actionButton = actionRefs.current[cardIndex * 2 + nextActionIndex]; - actionButton?.focus(); - } - break; - case 'ArrowDown': - case 'ArrowUp': - if (activeCardIndex !== null) { - event.preventDefault(); - const direction = event.key === 'ArrowDown' ? 1 : -1; - const nextCardIndex = (cardIndex + direction + projects.length) % projects.length; - - // Close current card and move to next - setActiveCardIndex(null); - setFocusedActionIndex(0); - cardRefs.current[nextCardIndex]?.focus(); - announceToScreenReader(`Moved to ${projects[nextCardIndex].title} card.`); - } - break; - } - }; - - // Handle action button keyboard navigation - const handleActionKeyDown = (event: KeyboardEvent, cardIndex: number, actionIndex: number) => { - const actions = getProjectActions(projects[cardIndex]); - - switch (event.key) { - case 'Escape': - event.preventDefault(); - setActiveCardIndex(null); - setFocusedActionIndex(0); - cardRefs.current[cardIndex]?.focus(); - announceToScreenReader(`${projects[cardIndex].title} card closed.`); - break; - case 'Tab': - if (event.shiftKey && actionIndex === 0) { - // Tab back to card - event.preventDefault(); - cardRefs.current[cardIndex]?.focus(); - } else if (!event.shiftKey && actionIndex === actions.length - 1) { - // Tab forward to next card - event.preventDefault(); - const nextCardIndex = (cardIndex + 1) % projects.length; - setActiveCardIndex(null); - setFocusedActionIndex(0); - cardRefs.current[nextCardIndex]?.focus(); - announceToScreenReader(`Moved to ${projects[nextCardIndex].title} card.`); - } - break; - } - }; - - // Announce to screen readers - const announceToScreenReader = (message: string) => { - const announcement = document.createElement('div'); - announcement.setAttribute('aria-live', 'polite'); - announcement.setAttribute('aria-atomic', 'true'); - announcement.setAttribute('class', 'sr-only'); - announcement.textContent = message; - - document.body.appendChild(announcement); - setTimeout(() => { - announcement.remove(); - }, 1000); - }; - - // Focus management effect - useEffect(() => { - if (activeCardIndex !== null) { - const firstActionRef = actionRefs.current[activeCardIndex * 2]; - if (firstActionRef) { - firstActionRef.focus(); - } - } - }, [activeCardIndex]); + // Custom hooks for accessibility and keyboard navigation + const { announce } = useScreenReaderAnnouncements(); + const { + activeCardIndex, + cardRefs, + actionRefs, + handleCardSelect, + handleCardKeyDown, + handleActionKeyDown, + getProjectActions, + } = useProjectKeyboardNavigation({ + projects, + announce, + useTabToNavigateText: accessibilityTexts.navigation.useTabToNavigate, + }); return (
    @@ -214,7 +103,7 @@ export default function ProjectsSection(props: ProjectsSectionProps = {}) {
    {`Screenshot @@ -224,12 +113,12 @@ export default function ProjectsSection(props: ProjectsSectionProps = {}) { {/* Conditionally visible action buttons */}
    + {`Actions for ${project.title}`} {project.github && ( { actionRefs.current[cardIndex * 2] = el }} + ref={(el) => { actionRefs.current[cardIndex * 2] = el; }} href={project.github} target="_blank" rel="noopener noreferrer" @@ -244,7 +133,7 @@ export default function ProjectsSection(props: ProjectsSectionProps = {}) { )} {project.live && ( { actionRefs.current[cardIndex * 2 + 1] = el }} + ref={(el) => { actionRefs.current[cardIndex * 2 + 1] = el; }} href={project.live} target="_blank" rel="noopener noreferrer" @@ -272,7 +161,7 @@ export default function ProjectsSection(props: ProjectsSectionProps = {}) {

    {/* Add project metadata for screen readers */} -
    +
    Project {cardIndex + 1} of {projects.length}. {actions.length > 0 ? `${actions.length} actions available.` : 'No actions available.'} {project.year && `Created in ${project.year}.`} diff --git a/src/components/sections/SkillsSection.tsx b/src/components/sections/SkillsSection.tsx index 2006c51..215f6d1 100644 --- a/src/components/sections/SkillsSection.tsx +++ b/src/components/sections/SkillsSection.tsx @@ -70,8 +70,8 @@ export default function SkillsSection(props: SkillsSectionProps = {}) {
    + {category.title}

    - ) + ); })} diff --git a/src/config/api.ts b/src/config/api.ts deleted file mode 100644 index f1b4867..0000000 --- a/src/config/api.ts +++ /dev/null @@ -1,20 +0,0 @@ -// Note: API configuration no longer needed since we're using direct mailto links -// This file is kept for reference but can be removed - -export const API_CONFIG = { - BASE_URL: '', // No longer used - ENDPOINTS: { - CONTACT: '/api/contact', // No longer used - }, -}; - -// Export individual items for backward compatibility -export const ENDPOINTS = API_CONFIG.ENDPOINTS; - -// Helper function to get full API URL -export const getApiUrl = (endpoint: string): string => { - return `${API_CONFIG.BASE_URL}${endpoint}`; -}; - -// Default export -export default API_CONFIG; diff --git a/src/config/certifications-config.ts b/src/config/certifications-config.ts index a375dae..4878f2c 100644 --- a/src/config/certifications-config.ts +++ b/src/config/certifications-config.ts @@ -1,4 +1,4 @@ -import { certifications } from './locales/en/certifications'; +import { certifications } from './locales/en/technical/certifications'; import type { Certification } from '../data/Certification'; export const certificationsData: Certification[] = certifications.certificationItems diff --git a/src/config/locales/de/contact.ts b/src/config/locales/de/contact.ts index 8c811fb..664684d 100644 --- a/src/config/locales/de/contact.ts +++ b/src/config/locales/de/contact.ts @@ -1,7 +1,7 @@ export const contact = { title: 'Kontakt aufnehmen', - subtitle: 'Lassen Sie uns Ihr Projekt besprechen und Ihre Ideen zum Leben erwecken', - connectTitle: 'Lassen Sie uns verbinden', + subtitle: 'Besprechen Sie Ihr Projekt mit mir und wir erwecken Ihre Ideen zum Leben.', + connectTitle: 'Verbindung schaffen', connectDescription: 'Ich bin immer an neuen Möglichkeiten und spannenden Projekten interessiert. Ob Sie eine Frage haben oder einfach nur Hallo sagen möchten, zögern Sie nicht, mich zu kontaktieren!', buttonText: 'Per E-Mail kontaktieren', @@ -18,4 +18,8 @@ export const contact = { 'Hallo Sascha,\n\nIch habe Ihr Portfolio besucht und würde gerne ein potenzielles Projekt oder eine Zusammenarbeit besprechen.\n\nMit freundlichen Grüßen,', emailAnnouncement: 'E-Mail-Client wird mit vorausgefüllter Nachricht geöffnet', socialAnnouncement: '{platform}-Profil wird in neuem Tab geöffnet', + codebergLinkText: 'Sascha Bach auf Codeberg', + linkedinLinkText: 'Sascha Bach auf LinkedIn', + appointmentHintText: 'Lieber einen Termin buchen?', + appointmentLinkText: 'Jetzt Termin vereinbaren', }; diff --git a/src/config/locales/de/footer.ts b/src/config/locales/de/footer.ts index 690900f..4b2b309 100644 --- a/src/config/locales/de/footer.ts +++ b/src/config/locales/de/footer.ts @@ -1,7 +1,9 @@ export const footer = { imprintText: 'Impressum und Datenschutz', copyrightText: 'Alle Rechte vorbehalten.', - githubAriaLabel: 'GitHub-Profil', + technicalLinkText: 'Technisches Portfolio', + landingLinkText: 'Landing Page', + codebergAriaLabel: 'Codeberg-Profil', linkedinAriaLabel: 'LinkedIn-Profil', emailAriaLabel: 'E-Mail senden', }; diff --git a/src/config/locales/de/imprint.ts b/src/config/locales/de/imprint.ts index b8dba3f..900304e 100644 --- a/src/config/locales/de/imprint.ts +++ b/src/config/locales/de/imprint.ts @@ -2,6 +2,15 @@ export const imprint = { title: 'Impressum und Datenschutz', subtitle: 'Rechtliche Informationen', companyInfoTitle: 'Angaben gemäß § 5 DDG', + umsatzsteuerID: 'Umsatzsteuer-ID: DE316934637', + vatID: 'VAT ID: DE316934637', + businessRegistrationTitle: 'Gewerbeanmeldung', + businessRegistration: { + title: 'Gewerbeerlaubnis nach § 34c GewO', + dateIssued: '18.03.2026', + issuedBy: 'Bezirksamt Tempelhof-Schöneberg von Berlin', + authority: 'Ordnungsamt', + }, contactTitle: 'Kontakt', responsibilityTitle: 'Vertretungsberechtigt', disclaimerTitle: 'Haftungsausschluss', @@ -116,10 +125,17 @@ export const imprint = { name: 'Bitpalast GmbH', address: 'Postfach 19 15 64, D-14005 Berlin, Deutschland', website: 'https://preiswerter-webserver-de.bitpalast.net/', + privacyPolicyLabel: 'Datenschutzerklärung:', }, contactTitle: 'Kontaktaufnahme', contactText: 'Soweit Sie uns über E-Mail, Soziale Medien, Telefon, Fax, Post, unser Kontaktformular oder sonstwie ansprechen und uns hierbei personenbezogene Daten wie Ihren Namen, Ihre Telefonnummer oder Ihre E-Mail-Adresse zur Verfügung stellen oder weitere Angaben zur Ihrer Person oder Ihrem Anliegen machen, verarbeiten wir diese Daten zur Beantwortung Ihrer Anfrage im Rahmen des zwischen uns bestehenden vorvertraglichen oder vertraglichen Beziehungen.', + contactDataLabels: { + affectedData: 'Betroffene Daten:', + affectedPersons: 'Betroffene Personen:', + processingPurpose: 'Verarbeitungszweck:', + legalBasis: 'Rechtsgrundlage:', + }, contactDataCategories: { affectedData: [ 'Bestandsdaten (bspw. Namen, Adressen)', @@ -134,12 +150,36 @@ export const imprint = { legalBasis: 'Vertragserfüllung und vorvertragliche Anfragen, Art. 6 Abs. 1 lit. b DSGVO, berechtigtes Interesse, Art. 6 Abs. 1 lit. f DSGVO', }, + onlineAppointmentTitle: 'Online-Terminbuchung (Nextcloud)', + onlineAppointmentIntro: + 'Auf unserer Website bieten wir die Möglichkeit, über einen externen Link Termine für Beratungsgespräche oder Meetings zu buchen. Dafür nutzen wir den Terminplaner-Dienst der Open-Source-Software Nextcloud, die auf unseren Servern bei unserem Webhosting-Provider betrieben wird.', + onlineAppointmentProvider: + 'Anbieter der Infrastruktur: Die Server, auf denen die Nextcloud-Instanz läuft, werden bereitgestellt von der Bitpalast GmbH, Postfach 19 15 64, D-14005 Berlin, Deutschland. Verantwortlich für die Datenverarbeitung im Rahmen der Terminbuchung bleibt jedoch allein Sascha Bach (siehe Abschnitt „Wer bei uns für die Datenverarbeitung verantwortlich ist").', + onlineAppointmentDataTitle: + 'Erhobene Daten: Bei der Buchung eines Termins werden folgende personenbezogene Daten von Ihnen eingegeben und verarbeitet:', + onlineAppointmentData: [ + 'Name (Vor- und Nachname)', + 'E-Mail-Adresse', + 'Ggf. Telefonnummer (sofern im Buchungsformular als optionales Feld hinterlegt)', + 'Ggf. Kommentare oder Anmerkungen zum Termininhalt', + 'Der gewählte Terminzeitraum', + ], + onlineAppointmentPurpose: + 'Zweck der Verarbeitung: Die Daten werden ausschließlich zum Zweck der Terminvereinbarung, der automatischen Terminbestätigung per E-Mail und der Erinnerung an den vereinbarten Termin verarbeitet. Ohne Bereitstellung dieser Daten ist die Nutzung der Buchungsfunktion nicht möglich.', + onlineAppointmentLegalBasis: + 'Rechtsgrundlage: Die Verarbeitung der Daten erfolgt auf Grundlage von Art. 6 Abs. 1 lit. b DSGVO (Erfüllung vorvertraglicher Maßnahmen). Die Buchung eines Termins stellt eine konkrete Anfrage zur Anbahnung oder Durchführung eines Vertragsverhältnisses dar.', + onlineAppointmentRetention: + 'Speicherdauer: Die Daten werden nach Durchführung des Termins und Ablauf etwaiger gesetzlicher Aufbewahrungsfristen (z. B. aus dem Steuerrecht: 6 Jahre für Geschäftskorrespondenz, 10 Jahre für Buchungsbelege) gelöscht. Sofern kein Vertragsverhältnis zustande kommt, werden die Daten spätestens nach Ablauf von 3 Monaten gelöscht, es sei denn, Sie haben in eine längere Speicherung eingewilligt.', + onlineAppointmentThirdParty: + 'Weitergabe: Eine Weitergabe der Daten an Dritte erfolgt nicht, außer dies ist zur Erfüllung des Termins gesetzlich erforderlich oder Sie haben hierzu ausdrücklich eingewilligt. Die Daten verbleiben auf Servern innerhalb der Europäischen Union (Deutschland).', + onlineAppointmentServerLocation: + 'Serverstandort: Die Daten werden auf Servern in Deutschland gespeichert.', securityTitle: 'Sicherheitsmaßnahmen', securityText: 'Wir treffen im Übrigen technische und organisatorische Sicherheitsmaßnahmen nach dem Stand der Technik, um die Vorschriften der Datenschutzgesetze einzuhalten und Ihre Daten gegen zufällige oder vorsätzliche Manipulationen, teilweisen oder vollständigen Verlust, Zerstörung oder gegen den unbefugten Zugriff Dritter zu schützen.', changesTitle: 'Aktualität und Änderung dieser Datenschutzerklärung', changesText: - 'Diese Datenschutzerklärung ist aktuell gültig und hat den Stand September 2025. Aufgrund geänderter gesetzlicher bzw. behördlicher Vorgaben kann es notwendig werden, diese Datenschutzerklärung anzupassen.', + 'Diese Datenschutzerklärung ist aktuell gültig und hat den Stand Mai 2026. Aufgrund geänderter gesetzlicher bzw. behördlicher Vorgaben kann es notwendig werden, diese Datenschutzerklärung anzupassen.', disclaimer: 'Diese Datenschutzerklärung wurde mit Hilfe des Datenschutz-Generators von SOS Recht erstellt. SOS Recht ist ein Angebot der Mueller.legal Rechtsanwälte Partnerschaft mit Sitz in Berlin.', }, diff --git a/src/config/locales/de/index.ts b/src/config/locales/de/index.ts index 4e5a997..e13fd64 100644 --- a/src/config/locales/de/index.ts +++ b/src/config/locales/de/index.ts @@ -1,12 +1,19 @@ import { navigation } from './navigation'; import { themeToggle } from '../../theme-toggle'; import { footer } from './footer'; -import { hero } from './hero'; -import { about } from './about'; -import { services } from './services'; -import { skills } from './skills'; +import { hero } from './technical/hero'; +import { about } from './technical/about'; +import { landingAboutMe } from './landing/landing-aboutme'; +import { landingHero } from './landing/landing-hero'; +import { landingReasons } from './landing/landing-reasons'; +import { landingExperience } from './landing/landing-experience'; +import { landingWinnings } from './landing/landing-winnings'; +import { landingProcesses } from './landing/landing-processes'; +import { landingReferences } from './landing/landing-references'; +import { services } from './technical/services'; +import { skills } from './technical/skills'; import { projects } from './projects'; -import { certifications } from './certifications'; +import { certifications } from './technical/certifications'; import { contact } from './contact'; import { imprint } from './imprint'; import { privacyPolicy } from './privacy-policy'; @@ -18,6 +25,13 @@ export const de = { footer, hero, about, + landingAboutMe, + landingHero, + landingReasons, + landingExperience, + landingWinnings, + landingProcesses, + landingReferences, services, skills, projects, diff --git a/src/config/locales/de/landing/landing-aboutme.ts b/src/config/locales/de/landing/landing-aboutme.ts new file mode 100644 index 0000000..ec8e426 --- /dev/null +++ b/src/config/locales/de/landing/landing-aboutme.ts @@ -0,0 +1,17 @@ +export const landingAboutMe = { + title: 'Über mich', + subtitle: '', + greeting: 'Hi, ich bin Sascha.', + name: 'Sascha', + bio: [ + `Seit ich zum ersten Mal mit dem Thema Barrierefreiheit in Berührung gekommen bin, habe ich + für mich einen Mehrwert in der Webentwicklung entdeckt, der mich seitdem nicht mehr loslässt. + Barrierefreiheit ist für mich nicht nur ein technisches Thema, sondern eine Angelegenheit, die mit meinen persönlichen Werten + von Inklusion und Gleichberechtigung übereinstimmt. + Ich helfe Webagenturen und Unternehmen bei der Entwicklung und Umsetzung von Apps und Webseiten mit und ohne Barrierefreiheit.`, + `In meiner Freizeit tanze ich Brasilianischen Zouk und West Coast Swing. Ich beschäftige mich mit alternativen + Beziehungsformen und bin ein großer Fan von Science-Fiction-Filmen. Außerdem interessiere ich mich für Persönlichkeitsentwicklung und + Ethik in der Technologie. Ich bin immer offen für neue Kontakte und spannende Projekte, also zögert nicht, mich zu kontaktieren!`, + ], + featureCards: [] as Array<{ title: string; description: string; }>, +}; diff --git a/src/config/locales/de/landing/landing-experience.ts b/src/config/locales/de/landing/landing-experience.ts new file mode 100644 index 0000000..6d31a7a --- /dev/null +++ b/src/config/locales/de/landing/landing-experience.ts @@ -0,0 +1,9 @@ +export const landingExperience = { + title: 'Meine Erfahrung', + paragraphs: [ + 'Ich habe Unternehmen wie deins geholfen – von kleinen Läden bis hin zu Dienstleistern – ihre Webseiten barrierefrei zu machen.', + 'Bei ORWO habe ich einen Fotobuch-Designer entwickelt, der für tausende Kunden funktionierte, auch für Menschen mit Sehbeeinträchtigungen. Ich habe ihn nicht nur gut aussehen lassen, ich habe ihn für alle zum Laufen gebracht.', + 'Diese Sorgfalt bringe ich jetzt zu deiner Webseite, egal ob Bäckerei, Therapeut, Handwerker oder Online-Shop.', + 'Barrierefreiheit bedeutet Respekt und mehr Reichweite für dich und deine Produkte.', + ], +}; diff --git a/src/config/locales/de/landing/landing-hero.ts b/src/config/locales/de/landing/landing-hero.ts new file mode 100644 index 0000000..136a2a0 --- /dev/null +++ b/src/config/locales/de/landing/landing-hero.ts @@ -0,0 +1,5 @@ +export const landingHero = { + title: 'Barrierefreiheit: 20\u00A0% mehr Reichweite, 100\u00A0% mehr Zugang.', + description: 'Das BFSG gilt seit Juni 2025. Ich mache deine Website barrierefrei und rechtssicher – bevor Haftungsrisiken entstehen.', + tertiaryButtonText: 'Kontakt aufnehmen', +}; diff --git a/src/config/locales/de/landing/landing-processes.ts b/src/config/locales/de/landing/landing-processes.ts new file mode 100644 index 0000000..5a6a275 --- /dev/null +++ b/src/config/locales/de/landing/landing-processes.ts @@ -0,0 +1,11 @@ +export const landingProcesses = { + title: 'Wie ich arbeite', + intro: 'Ich bin dein Partner.', + items: [ + { text: 'Ich arbeite meist remote - weniger Meetings, weniger Pendelzeit, weniger Aufwand.' }, + { text: 'Wir vereinbaren einen Zeitplan - ich liefere.' }, + { text: 'Ich nutze meine eigenen Tools - kein Setup auf deiner Seite nötig.' }, + { text: 'Ich bin flexibel - egal ob du eine schnelle Lösung oder ein komplettes Redesign brauchst.' }, + ], + outro: 'Du bekommst meine volle Aufmerksamkeit.', +}; diff --git a/src/config/locales/de/landing/landing-reasons.ts b/src/config/locales/de/landing/landing-reasons.ts new file mode 100644 index 0000000..c146816 --- /dev/null +++ b/src/config/locales/de/landing/landing-reasons.ts @@ -0,0 +1,28 @@ +export const landingReasons = { + title: 'Warum es wichtig ist:', + + reasons: [ + { + stat: '20\u00A0%', + text: 'aller Menschen in Deutschland haben eine Beeinträchtigung. Das sind 16 Millionen potenzielle Kunden.', + }, + { + stat: '80\u00A0%', + text: 'dieser Menschen verlassen Webseiten, die nicht für sie funktionieren.', + }, + { + stat: 'BFSG', + text: 'Seit Juni 2025 sind viele Unternehmen gesetzlich verpflichtet. Wer nicht handelt, riskiert Abmahnungen und Haftung.', + }, + { + stat: 'SEO', + text: 'Google belohnt barrierefreie Webseiten mit besseren Rankings, mehr Traffic und mehr Umsatz.', + }, + { + stat: 'Vertrauen', + text: 'Kunden vertrauen barrierefreien Webseiten mehr. Sie fühlen sich respektiert, nicht ignoriert.', + }, + ], + outro: + 'Du tust nicht nur das Richtige. Du machst den Unterschied.', +}; diff --git a/src/config/locales/de/landing/landing-references.ts b/src/config/locales/de/landing/landing-references.ts new file mode 100644 index 0000000..cefc127 --- /dev/null +++ b/src/config/locales/de/landing/landing-references.ts @@ -0,0 +1,17 @@ +export const landingReferences = { + title: 'Was Kunden und Kollegen sagen', + items: [ + { + referenceText: + 'Das Audit zur digitalen Barrierefreiheit war äußerst aufschlussreich und praxisnah. Die identifizierten Schwachstellen wurden klar und verständlich erklärt, sodass konkrete Verbesserungsmaßnahmen abgeleitet werden konnten. Besonders positiv ist der ganzheitliche Blick auf Nutzerfreundlichkeit und Inklusion. Die Zusammenarbeit ist sehr empfehlenswert für alle, die ihre Website nachhaltig barrierefrei gestalten möchten.', + name: 'Florian Adragna', + position: 'Freiberufler, Florian Lucas Adragna', + }, + { + referenceText: + 'Ich habe die Zusammenarbeit mit dir immer sehr geschätzt. Bei der Fehlersuche und -behebung warst du besonders schnell und zuverlässig. Auch in neue Themen hast du dich problemlos und zügig eingearbeitet. Mit dir zu arbeiten war fachlich wie menschlich jederzeit angenehm – ich empfehle dich sehr gerne weiter.', + name: 'Kollege', + position: 'Teamlead, ORWO Net GmbH', + }, + ], +}; diff --git a/src/config/locales/de/landing/landing-winnings.ts b/src/config/locales/de/landing/landing-winnings.ts new file mode 100644 index 0000000..29fdc39 --- /dev/null +++ b/src/config/locales/de/landing/landing-winnings.ts @@ -0,0 +1,14 @@ +export const landingWinnings = { + title: 'Was du bekommst', + intro: 'Wenn du mit mir arbeitest, bekommst du:', + items: [ + { text: 'Eine Webseite, die für alle funktioniert, egal wie sie surfen.' }, + { text: 'Mehr Besucher, denn Google liebt barrierefreie Seiten.' }, + { text: 'Mehr Umsatz, denn Menschen kaufen, wenn sie sich einbezogen fühlen.' }, + { text: 'Mehr Vertrauen, denn deine Kunden fühlen sich respektiert.' }, + { text: 'Rechtssicherheit, denn ich stelle sicher, dass deine Webseite die BFSG-Anforderungen erfüllt.' }, + { text: 'Entspannung, denn ich kümmere mich um alles, vom Testen bis zur Konformitätsprüfung.' }, + { text: 'Kein Tech-Stress, denn ich erkläre alles in einfacher Sprache, ohne Fachjargon.' }, + ], + outro: 'Ich stelle sicher, dass ich dein Problem verstehe und meine Lösung passt.', +}; diff --git a/src/config/locales/de/navigation.ts b/src/config/locales/de/navigation.ts index ba1ab75..6fdb667 100644 --- a/src/config/locales/de/navigation.ts +++ b/src/config/locales/de/navigation.ts @@ -1,11 +1,21 @@ export const navigation = { menuItems: [ - 'Über mich', - 'Leistungen', - 'Fähigkeiten', - 'Zertifikate', - 'Projekte', - 'Kontakt', + { section: 'About', label: 'Über mich' }, + { section: 'Services', label: 'Leistungen' }, + { section: 'Skills', label: 'Fähigkeiten' }, + { section: 'Certifications', label: 'Zertifikate' }, + { section: 'Projects', label: 'Projekte' }, + { section: 'Contact', label: 'Kontakt' }, + ], + landingMenuItems: [ + { section: 'About', label: 'Über mich' }, + { section: 'Winnings', label: 'Vorteile' }, + { section: 'Experience', label: 'Erfahrung' }, + { section: 'Processes', label: 'Wie ich arbeite' }, + { section: 'Projects', label: 'Projekte' }, + { section: 'References', label: 'Referenzen' }, + { section: 'Contact', label: 'Kontakt' }, ], mobileMenuAriaLabel: 'Menü öffnen', + logoAlt: 'Sascha Bach – Barrierefreie Webentwicklung', }; diff --git a/src/config/locales/de/about.ts b/src/config/locales/de/technical/about.ts similarity index 97% rename from src/config/locales/de/about.ts rename to src/config/locales/de/technical/about.ts index 855d031..bd8f023 100644 --- a/src/config/locales/de/about.ts +++ b/src/config/locales/de/technical/about.ts @@ -6,7 +6,7 @@ export const about = { bio: [ 'Ich habe Informatik an der TU Darmstadt studiert und 2016 meinen Bachelor mit einer Arbeit über Motion Sickness in Virtual Reality abgeschlossen. Seitdem arbeite ich als Software- und Webentwickler mit Schwerpunkt auf Angular und React.', 'In meiner Arbeit habe ich gesehen, dass jedes Unternehmen anders ist, aber viele stehen vor der gleichen Herausforderung: ihre digitale Präsenz zugänglich, modern und zukunftssicher zu halten. Vielen Unternehmen ist bereits bewusst, dass Barrierefreiheit gesetzlich vorgeschrieben ist, aber in der Praxis kommt es vor allem darauf an, dass eine Website für alle Nutzer einfach und angenehm funktioniert.', - 'Meine Spezialisierung liegt in Web Accessibility (WCAG 2.1, BFSG, European Accessibility Act). Ich helfe Unternehmen dabei, ihre Websites und Anwendungen zu aktualisieren, sodass sie konform und gleichzeitig für jeden einfach zu bedienen sind. Was meine Kunden schätzen, ist, dass ich technisches Fachwissen in Angular, React und TypeScript mit einem menschenzentrierten Ansatz verbinde. Denn Barrierefreiheit geht nicht nur um Code, sondern um Menschen.', + 'Meine Spezialisierung liegt in Web Accessibility (WCAG 2.2, BFSG, European Accessibility Act). Ich helfe Unternehmen dabei, ihre Websites und Anwendungen zu aktualisieren, sodass sie konform und gleichzeitig für jeden einfach zu bedienen sind. Was meine Kunden schätzen, ist, dass ich technisches Fachwissen in Angular, React und TypeScript mit einem menschenzentrierten Ansatz verbinde. Denn Barrierefreiheit geht nicht nur um Code, sondern um Menschen.', 'Wenn Sie sich fragen, ob Ihre Website bereits den Standards für Barrierefreiheit entspricht, oder wenn Sie das Gefühl haben, dass es Zeit ist, Ihre Online-Präsenz inklusiver und rechtssicher zu gestalten, würde ich Sie gerne unterstützen. Oft können bereits wenige klare Schritte einen großen Unterschied machen und Ihrer Website helfen, mehr Menschen zu erreichen und sich von der Konkurrenz abzuheben.', 'Lassen Sie uns verbinden und schauen, wie wir Ihre Website barrierefrei, modern und zukunftssicher machen können.', ], diff --git a/src/config/locales/de/certifications.ts b/src/config/locales/de/technical/certifications.ts similarity index 72% rename from src/config/locales/de/certifications.ts rename to src/config/locales/de/technical/certifications.ts index ef95eb3..1e35ce8 100644 --- a/src/config/locales/de/certifications.ts +++ b/src/config/locales/de/technical/certifications.ts @@ -1,4 +1,4 @@ -import { certificationItems } from '../../certifications-data'; +import { certificationItems } from '../../../certifications-data'; export const certifications = { title: 'Zertifizierungen & Erfolge', diff --git a/src/config/locales/de/hero.ts b/src/config/locales/de/technical/hero.ts similarity index 89% rename from src/config/locales/de/hero.ts rename to src/config/locales/de/technical/hero.ts index 1968d7b..4db7850 100644 --- a/src/config/locales/de/hero.ts +++ b/src/config/locales/de/technical/hero.ts @@ -1,5 +1,5 @@ export const hero = { - title: 'Jeder verdient ein reibungsloses Online-Erlebnis', + title: 'Barrierefreie Webentwicklung für alle', description: 'Ich helfe Ihnen, barrierefreie Websites zu erstellen, die jeden Besucher einbeziehen, im Einklang mit dem Barrierefreiheitsstärkungsgesetz.', primaryButtonText: 'Projekte ansehen', diff --git a/src/config/locales/de/services.ts b/src/config/locales/de/technical/services.ts similarity index 100% rename from src/config/locales/de/services.ts rename to src/config/locales/de/technical/services.ts diff --git a/src/config/locales/de/skills.ts b/src/config/locales/de/technical/skills.ts similarity index 100% rename from src/config/locales/de/skills.ts rename to src/config/locales/de/technical/skills.ts diff --git a/src/config/locales/en/TextConfig.ts b/src/config/locales/en/TextConfig.ts new file mode 100644 index 0000000..de84c09 --- /dev/null +++ b/src/config/locales/en/TextConfig.ts @@ -0,0 +1,359 @@ +import type { MenuItem } from '../../../data/types'; + +export interface TextConfig { + // Navigation + navigation: { + menuItems: MenuItem[]; + landingMenuItems: MenuItem[]; + mobileMenuAriaLabel: string; + logoAlt: string; + }; + + // Theme Toggle + themeToggle: { + lightIcon: string; + darkIcon: string; + lightModeText: string; + darkModeText: string; + }; + + // Footer + footer: { + imprintText: string; + copyrightText: string; + technicalLinkText: string; + landingLinkText: string; + codebergAriaLabel: string; + linkedinAriaLabel: string; + emailAriaLabel: string; + }; + + // Hero Section + hero: { + title: string; + description: string; + primaryButtonText: string; + secondaryButtonText: string; + tertiaryButtonText: string; + statItems: Array<{ + label: string; + value: string; + }>; + }; + + // About Section + about: { + title: string; + subtitle: string; + name: string; + bio: string[]; + featureCards: Array<{ + title: string; + description: string; + }>; + }; + + // Landing Hero Section + landingHero: { + title: string; + description: string; + tertiaryButtonText: string; + }; + + // Landing About Me Section + landingAboutMe: { + title: string; + subtitle: string; + greeting: string; + name: string; + bio: string[]; + featureCards: Array<{ + title: string; + description: string; + }>; + }; + + // Landing Reasons Section + landingReasons: { + title: string; + reasons: Array<{ + stat: string; + text: string; + }>; + outro: string; + }; + + // Landing Experience Section + landingExperience: { + title: string; + paragraphs: string[]; + }; + + // Landing Winnings Section + landingWinnings: { + title: string; + intro: string; + items: Array<{ text: string; }>; + outro: string; + }; + + // Landing Processes Section + landingProcesses: { + title: string; + intro: string; + items: Array<{ text: string; }>; + outro: string; + }; + + // Landing References Section + landingReferences: { + title: string; + items: Array<{ + referenceText: string; + name: string; + position: string; + }>; + }; + + // Services Section + services: { + title: string; + subtitle: string; + serviceItems: Array<{ + title: string; + description: string; + }>; + }; + + // Skills Section + skills: { + title: string; + subtitle: string; + skillCategories: Array<{ + title: string; + skills: Array<{ + skill: string; + value: number; + }>; + }>; + }; + + // Projects Section + projects: { + title: string; + subtitle: string; + codeButtonText: string; + liveButtonText: string; + projectItems: Array<{ + id: number; + title: string; + description: string; + }>; + }; + + // Certifications Section + certifications: { + title: string; + subtitle: string; + certificationItems: Array<{ + name: string; + issuer: string; + }>; + }; + + // Contact Section + contact: { + title: string; + subtitle: string; + connectTitle: string; + connectDescription: string; + buttonText: string; + socialTitle: string; + availabilityText: string; + responseTimeLabel: string; + responseTimeValue: string; + preferredContactLabel: string; + preferredContactValue: string; + locationLabel: string; + locationValue: string; + emailSubject: string; + emailBody: string; + emailAnnouncement: string; + socialAnnouncement: string; + codebergLinkText: string; + linkedinLinkText: string; + appointmentHintText: string; + appointmentLinkText: string; + }; + + // Imprint Page + imprint: { + umsatzsteuerID: string; + vatID: string; + title: string; + subtitle: string; + companyInfoTitle: string; + businessRegistrationTitle: string; + businessRegistration: { + title: string; + dateIssued: string; + issuedBy: string; + authority: string; + }; + contactTitle: string; + responsibilityTitle: string; + disclaimerTitle: string; + contentLiabilityTitle: string; + contentLiabilityText: string[]; + copyrightTitle: string; + copyrightText: string[]; + privacyTitle: string; + privacyText: string; + detailedPrivacyPolicy: { + title: string; + introduction: string; + responsibleTitle: string; + responsibleText: string; + responsibleContact: string; + dataProtectionOfficerTitle: string; + dataProtectionOfficerText: string; + rightsTitle: string; + rightsIntro: string; + rights: Array<{ title: string; text: string; }>; + revocationTitle: string; + revocationText: string; + objectionTitle: string; + objectionText: string; + objectionHighlight: string; + objectionContact: string; + dataDeletionTitle: string; + dataDeletionIntro: string; + dataDeletionReasons: string[]; + retentionText: string; + webhostingTitle: string; + webhostingText: string; + webhostingDataTypes: string[]; + webhostingPurpose: string; + webhostingDataCategories: { + affectedData: string; + affectedDataList: string[]; + affectedPersons: string; + processingPurpose: string; + legalBasis: string; + provider: string; + }; + hostingProvider: { + name: string; + address: string; + website: string; + privacyPolicyLabel: string; + }; + contactTitle: string; + contactText: string; + contactDataLabels: { + affectedData: string; + affectedPersons: string; + processingPurpose: string; + legalBasis: string; + }; + contactDataCategories: { + affectedData: string[]; + affectedPersons: string; + processingPurpose: string; + legalBasis: string; + }; + onlineAppointmentTitle: string; + onlineAppointmentIntro: string; + onlineAppointmentProvider: string; + onlineAppointmentDataTitle: string; + onlineAppointmentData: string[]; + onlineAppointmentPurpose: string; + onlineAppointmentLegalBasis: string; + onlineAppointmentRetention: string; + onlineAppointmentThirdParty: string; + onlineAppointmentServerLocation: string; + securityTitle: string; + securityText: string; + changesTitle: string; + changesText: string; + disclaimer: string; + }; + address: { + street: string; + city: string; + country: string; + }; + contact: { + phone: string; + }; + }; + + // Privacy Policy Page + privacyPolicy: { + title: string; + lastUpdated: string; + introTitle: string; + introText: string; + dataCollectionTitle: string; + dataCollectionText: string; + dataCollectionList: string[]; + webhostingTitle: string; + webhostingText: string; + webhostingProvider: string; + webhostingProviderName: string; + webhostingProviderAddress: string; + webhostingProviderWebsite: string; + rightsTitle: string; + rightsText: string; + rightsList: string[]; + contactTitle: string; + contactText: string; + contactEmail: string; + }; + + // Accessibility and Navigation + accessibility: { + skipLinks: { + skipToHero: string; + skipToAbout: string; + skipToServices: string; + skipToSkills: string; + skipToProjects: string; + skipToCertifications: string; + skipToContact: string; + }; + navigation: { + keyboardHelp: string; + keyboardHelpExpanded: string[]; + useTabToNavigate: string; + useTabToNavigateCards: string; + useTabToNavigateOptions: string; + closeKeyboardHelp: string; + }; + screenReader: { + professionalStatistics: string; + projectCard: string; + viewSourceCode: string; + viewLiveDemo: string; + downloadResume: string; + downloadResumeDescription: string; + keyboardNavigationHelp: string; + themeSwitchButton: string; + switchToTheme: string; + certificationCard: string; + serviceCard: string; + skillBadge: string; + }; + ariaLabels: { + mainNavigation: string; + socialLinks: string; + themeToggle: string; + mobileMenuToggle: string; + contactForm: string; + projectsGrid: string; + skillsGrid: string; + certificationsGrid: string; + servicesGrid: string; + }; + }; +} diff --git a/src/config/locales/en/contact.ts b/src/config/locales/en/contact.ts index cc9e6ad..0031581 100644 --- a/src/config/locales/en/contact.ts +++ b/src/config/locales/en/contact.ts @@ -18,4 +18,8 @@ export const contact = { 'Hello Sascha,\n\nI visited your portfolio and would like to discuss a potential project or collaboration.\n\nBest regards,', emailAnnouncement: 'Opening email client with pre-filled message', socialAnnouncement: 'Opening {platform} profile in new tab', + codebergLinkText: 'Sascha Bach on Codeberg', + linkedinLinkText: 'Sascha Bach on LinkedIn', + appointmentHintText: 'Prefer to schedule a call?', + appointmentLinkText: 'Book an appointment', }; diff --git a/src/config/locales/en/footer.ts b/src/config/locales/en/footer.ts index 551d800..3ee6c34 100644 --- a/src/config/locales/en/footer.ts +++ b/src/config/locales/en/footer.ts @@ -1,7 +1,9 @@ export const footer = { imprintText: 'Impressum und Datenschutz', copyrightText: 'All rights reserved.', - githubAriaLabel: 'GitHub Profile', + technicalLinkText: 'Technical Portfolio', + landingLinkText: 'Landing Page', + codebergAriaLabel: 'Codeberg Profile', linkedinAriaLabel: 'LinkedIn Profile', emailAriaLabel: 'Send Email', }; diff --git a/src/config/locales/en/imprint.ts b/src/config/locales/en/imprint.ts index 7709cde..5b4d396 100644 --- a/src/config/locales/en/imprint.ts +++ b/src/config/locales/en/imprint.ts @@ -1,152 +1,192 @@ export const imprint = { - title: 'Impressum und Datenschutz', + title: 'Imprint and Privacy Policy', subtitle: 'Legal Information', - companyInfoTitle: 'Angaben gemäß § 5 DDG', - contactTitle: 'Kontakt', - responsibilityTitle: 'Vertretungsberechtigt', - disclaimerTitle: 'Haftungsausschluss', - contentLiabilityTitle: 'Haftung für Inhalte', + companyInfoTitle: 'Information pursuant to § 5 DDG', + umsatzsteuerID: 'Umsatzsteuer-ID: DE316934637', + vatID: 'VAT ID: DE316934637', + businessRegistrationTitle: 'Business Registration', + businessRegistration: { + title: 'Business License pursuant to § 34c GewO', + dateIssued: '18.03.2026', + issuedBy: 'District Office Tempelhof-Schöneberg of Berlin', + authority: 'Regulatory Authority', + }, + contactTitle: 'Contact', + responsibilityTitle: 'Authorized Representative', + disclaimerTitle: 'Disclaimer', + contentLiabilityTitle: 'Liability for Content', contentLiabilityText: [ - 'Als Diensteanbieter sind wir gemäß § 7 Abs.1 DDG für eigene Inhalte auf diesen Seiten nach den allgemeinen Gesetzen verantwortlich. Nach §§ 8 bis 10 TMG sind wir als Diensteanbieter jedoch nicht unter der Verpflichtung, übermittelte oder gespeicherte fremde Informationen zu überwachen oder nach Umständen zu forschen, die auf eine rechtswidrige Tätigkeit hinweisen.', - 'Verpflichtungen zur Entfernung oder Sperrung der Nutzung von Informationen nach den allgemeinen Gesetzen bleiben hiervon unberührt. Eine diesbezügliche Haftung ist jedoch erst ab dem Zeitpunkt der Kenntnis einer konkreten Rechtsverletzung möglich. Bei Bekanntwerden von entsprechenden Rechtsverletzungen werden wir diese Inhalte umgehend entfernen.', + 'As a service provider, we are responsible for our own content on these pages in accordance with general laws pursuant to § 7 para. 1 DDG. According to §§ 8 to 10 TMG, however, we as a service provider are not obligated to monitor transmitted or stored third-party information or to investigate circumstances that indicate illegal activity.', + 'Obligations to remove or block the use of information under general laws remain unaffected. However, liability in this regard only arises from the moment of knowledge of a specific legal violation. Upon becoming aware of such infringements, we will remove this content immediately.', ], - copyrightTitle: 'Urheberrecht', + copyrightTitle: 'Copyright', copyrightText: [ - 'Die durch die Seitenbetreiber erstellten Inhalte und Werke auf diesen Seiten unterliegen dem deutschen Urheberrecht. Die Vervielfältigung, Bearbeitung, Verbreitung und jede Art der Verwertung außerhalb der Grenzen des Urheberrechtes bedürfen der schriftlichen Zustimmung des jeweiligen Autors bzw. Erstellers.', - 'Downloads und Kopien dieser Seite sind nur für den privaten, nicht kommerziellen Gebrauch gestattet. Soweit die Inhalte auf dieser Seite nicht vom Betreiber erstellt wurden, werden die Urheberrechte Dritter beachtet. Insbesondere werden Inhalte Dritter als solche gekennzeichnet. Sollten Sie trotzdem auf eine Urheberrechtsverletzung aufmerksam werden, bitten wir um einen entsprechenden Hinweis. Bei Bekanntwerden von Rechtsverletzungen werden wir derartige Inhalte umgehend entfernen.', + 'The content and works created by the website operators on these pages are subject to German copyright law. The reproduction, editing, distribution, and any kind of exploitation outside the limits of copyright law require the written consent of the respective author or creator.', + 'Downloads and copies of this website are only permitted for private and non-commercial use. Where the content on this website was not created by the operator, the copyrights of third parties are respected. Third-party content is identified as such. Should you nevertheless notice a copyright infringement, please notify us accordingly. Upon becoming aware of infringements, we will remove such content immediately.', ], - privacyTitle: 'Datenschutz', + privacyTitle: 'Privacy', privacyText: - 'Die Nutzung unserer Webseite ist in der Regel ohne Angabe personenbezogener Daten möglich. Soweit auf unseren Seiten personenbezogene Daten (beispielsweise Name, Anschrift oder E-Mail-Adressen) erhoben werden, erfolgt dies, soweit möglich, stets auf freiwilliger Basis. Diese Daten werden ohne Ihre ausdrückliche Zustimmung nicht an Dritte weitergegeben.', + 'The use of our website is generally possible without providing personal data. To the extent that personal data (such as name, address, or email addresses) is collected on our website, this is done, wherever possible, on a voluntary basis. This data will not be passed on to third parties without your explicit consent.', detailedPrivacyPolicy: { - title: 'Datenschutzerklärung', + title: 'Privacy Policy', introduction: - 'Mit dieser Datenschutzerklärung möchten wir Sie über Art, Umfang und Zweck der Verarbeitung von personenbezogenen Daten (im Folgenden auch nur als "Daten" bezeichnet) aufklären. Personenbezogene Daten sind alle Daten, die einen persönlichen Bezug zu Ihnen aufweisen, z. B. Name, Adresse, E-Mail-Adresse oder Ihr Nutzerverhalten. Die Datenschutzerklärung gilt für alle von uns vorgenommene Daten-Verarbeitungsvorgänge sowohl im Rahmen unserer Kerntätigkeit als auch für die von uns vorgehaltenen Online-Medien.', + 'With this privacy policy, we would like to inform you about the nature, scope, and purpose of the processing of personal data (hereinafter simply referred to as "data"). Personal data is all data that has a personal reference to you, such as name, address, email address, or your user behavior. This privacy policy applies to all data processing operations carried out by us, both within the scope of our core activities and for the online media we maintain.', responsibleTitle: - 'Wer bei uns für die Datenverarbeitung verantwortlich ist', - responsibleText: 'Verantwortlich für die Datenverarbeitung ist:', + 'Who is responsible for data processing at our company', + responsibleText: 'Responsible for data processing is:', responsibleContact: 'Sascha Bach\nAlt-Tempelhof 15\n12099 Berlin\nDE\n01799364867\ninfo@sascha-bach.de', dataProtectionOfficerTitle: - 'Kontaktdaten unseres Datenschutzbeauftragten', + 'Contact details of our data protection officer', dataProtectionOfficerText: - 'Unseren Datenschutzbeauftragten können Sie per E-Mail unter info [at] sascha-bach.de oder unter unserer Postadresse mit dem Zusatz „an den Datenschutzbeauftragten" erreichen.', - rightsTitle: 'Ihre Rechte nach der DSGVO', + 'You can contact our data protection officer by email at info [at] sascha-bach.de or at our postal address with the addition "to the Data Protection Officer".', + rightsTitle: 'Your rights under the GDPR', rightsIntro: - 'Nach der DSGVO stehen Ihnen die nachfolgend aufgeführten Rechte zu, die Sie jederzeit bei dem in Ziffer 1. dieser Datenschutzerklärung genannten Verantwortlichen geltend machen können:', + 'Under the GDPR, you have the following rights, which you may assert at any time against the controller named in section 1 of this privacy policy:', rights: [ { - title: 'Recht auf Auskunft', - text: 'Sie haben das Recht, von uns Auskunft darüber zu verlangen, ob und welche Daten wir von Ihnen verarbeiten.', + title: 'Right to information', + text: 'You have the right to request information from us about whether and what data we process about you.', }, { - title: 'Recht auf Berichtigung', - text: 'Sie haben das Recht, die Berichtigung unrichtiger oder Vervollständigung unvollständiger Daten zu verlangen.', + title: 'Right to rectification', + text: 'You have the right to request the correction of inaccurate data or the completion of incomplete data.', }, { - title: 'Recht auf Löschung', - text: 'Sie haben das Recht, die Löschung Ihrer Daten zu verlangen.', + title: 'Right to erasure', + text: 'You have the right to request the deletion of your data.', }, { - title: 'Recht auf Einschränkung', - text: 'Sie haben in bestimmten Fällen das Recht zu verlangen, dass wir Ihre Daten nur noch eingeschränkt bearbeiten.', + title: 'Right to restriction', + text: 'In certain cases, you have the right to request that we only process your data in a restricted manner.', }, { - title: 'Recht auf Datenübertragbarkeit', - text: 'Sie haben das Recht zu verlangen, dass wir Ihnen oder einem anderen Verantwortlichen Ihre Daten in einem strukturierten, gängigen und maschinenlesebaren Format übermitteln.', + title: 'Right to data portability', + text: 'You have the right to request that we transmit your data to you or to another controller in a structured, commonly used, and machine-readable format.', }, { - title: 'Beschwerderecht', - text: 'Sie haben das Recht, sich bei einer Aufsichtsbehörde zu beschweren. Zuständig ist die Aufsichtsbehörde Ihres üblichen Aufenthaltsortes, Ihres Arbeitsplatzes oder unseres Firmensitzes.', + title: 'Right to lodge a complaint', + text: 'You have the right to lodge a complaint with a supervisory authority. The supervisory authority of your usual place of residence, your place of work, or our company\'s registered office is responsible.', }, ], - revocationTitle: 'Widerrufsrecht', + revocationTitle: 'Right of withdrawal', revocationText: - 'Sie haben das Recht, die von Ihnen erteilte Einwilligung zur Datenverarbeitung jederzeit zu widerrufen.', - objectionTitle: 'Widerspruchsrecht', + 'You have the right to withdraw the consent you have given for data processing at any time.', + objectionTitle: 'Right to object', objectionText: - 'Sie haben das Recht, jederzeit gegen die Verarbeitung Ihrer Daten, die wir auf unser berechtigtes Interesse nach Art. 6 Abs. 1 lit. f DSGVO stützen, Widerspruch einzulegen. Sofern Sie von Ihrem Widerspruchsrecht Gebrauch machen, bitten wir Sie um die Darlegung der Gründe. Wir werden Ihre personenbezogenen Daten dann nicht mehr verarbeiten, es sei denn, wir können Ihnen gegenüber nachweisen, dass zwingende schutzwürdige Gründe an der Datenverarbeitung Ihre Interessen und Rechte überwiegen.', + 'You have the right to object at any time to the processing of your data that we base on our legitimate interest pursuant to Art. 6(1)(f) GDPR. If you exercise your right to object, please provide your reasons. We will then no longer process your personal data unless we can demonstrate compelling legitimate grounds for the processing that override your interests and rights.', objectionHighlight: - 'Unabhängig vom vorstehend Gesagten, haben Sie das jederzeitige Recht, der Verarbeitung Ihrer personenbezogenen Daten für Zwecke der Werbung und Datenanalyse zu widersprechen.', + 'Regardless of the foregoing, you have the right at any time to object to the processing of your personal data for the purposes of advertising and data analysis.', objectionContact: - 'Ihren Widerspruch richten Sie bitte an die oben angegebene Kontaktadresse des Verantwortlichen.', - dataDeletionTitle: 'Wann löschen wir Ihre Daten?', + 'Please direct your objection to the contact address of the controller provided above.', + dataDeletionTitle: 'When do we delete your data?', dataDeletionIntro: - 'Wir löschen Ihre Daten dann, wenn wir diese nicht mehr brauchen oder Sie uns dies vorgeben. Das bedeutet, dass - sofern sich aus den einzelnen Datenschutzhinweisen dieser Datenschutzerklärung nichts anderes ergibt - wir Ihre Daten löschen,', + 'We delete your data when we no longer need it or when you instruct us to do so. This means that – unless otherwise stated in the individual privacy notices in this privacy policy – we will delete your data,', dataDeletionReasons: [ - 'wenn der Zweck der Datenverarbeitung weggefallen ist und damit die jeweilige in den einzelnen Datenschutzhinweisen genannte Rechtsgrundlage nicht mehr besteht, also bspw.', - 'nach Beendigung der zwischen uns bestehenden vertraglichen oder mitgliedschaftlichen Beziehungen (Art. 6 Abs. 1 lit. a DSGVO) oder', - 'nach Wegfall unseres berechtigten Interesses an der weiteren Verarbeitung oder Speicherung Ihrer Daten (Art. 6 Abs. 1 lit. f DSGVO),', - 'wenn Sie von Ihrem Widerrufsrecht Gebrauch machen und keine anderweitige gesetzliche Rechtsgrundlage für die Verarbeitung im Sinne von Art. 6 Abs. 1 lit. b-f DSGVO eingreift,', - 'wenn Sie vom Ihrem Widerspruchsrecht Gebrauch machen und der Löschung keine zwingenden schutzwürdigen Gründe entgegenstehen.', + 'when the purpose of data processing has ceased to exist and thus the respective legal basis mentioned in the individual privacy notices no longer applies, e.g.', + 'after termination of the contractual or membership relationships existing between us (Art. 6(1)(a) GDPR), or', + 'after the cessation of our legitimate interest in further processing or storage of your data (Art. 6(1)(f) GDPR),', + 'when you exercise your right of withdrawal and no other statutory legal basis for the processing pursuant to Art. 6(1)(b)–(f) GDPR applies,', + 'when you exercise your right to object and no compelling legitimate grounds for deletion can be opposed.', ], retentionText: - 'Sofern wir (bestimmte Teile) Ihre(r) Daten jedoch noch für andere Zwecke vorhalten müssen, weil dies etwa steuerliche Aufbewahrungsfristen (in der Regel 6 Jahre für Geschäftskorrespondenz bzw. 10 Jahre für Buchungsbelege) oder die Geltendmachung, Ausübung oder Verteidigung von Rechtsansprüchen aus vertraglichen Beziehungen (bis zu vier Jahren) erforderlich machen oder die Daten zum Schutz der Rechte einer anderen natürlichen oder juristischen Person gebraucht werden, löschen wir (den Teil) Ihre(r) Daten erst nach Ablauf dieser Fristen. Bis zum Ablauf dieser Fristen beschränken wir die Verarbeitung dieser Daten jedoch auf diese Zwecke (Erfüllung der Aufbewahrungspflichten).', - webhostingTitle: 'Webhosting', + 'However, if we (certain parts of) your data still need to be retained for other purposes, such as statutory retention periods (generally 6 years for business correspondence or 10 years for accounting records), the assertion, exercise, or defense of legal claims arising from contractual relationships (up to four years), or if the data is needed to protect the rights of another natural or legal person, we will only delete (the respective part of) your data after the expiry of these periods. Until these periods expire, we will restrict the processing of this data to these purposes (fulfillment of retention obligations).', + webhostingTitle: 'Web Hosting', webhostingText: - 'Wir bedienen uns zum Vorhalten unserer Internetseiten eines Anbieters, auf dessen Server unsere Internetseiten gespeichert und für den Abruf im Internet verfügbar gemacht werden (Hosting). Hierbei können von dem Anbieter all diejenigen über den von Ihnen genutzten Browser übertragenen Daten verarbeitet werden, die bei der Nutzung unserer Internetseiten anfallen. Hierzu gehören insbesondere Ihre IP-Adresse, die der Anbieter benötigt, um unser Online-Angebot an den von Ihnen genutzten Browser ausliefern zu können sowie sämtliche von Ihnen über unsere Internetseite getätigten Eingaben. Daneben kann der von uns genutzte Anbieter', + 'We use a provider to host our websites, on whose servers our websites are stored and made available for retrieval on the internet (hosting). In doing so, the provider may process all data transmitted by you via the browser during use of our websites. This includes in particular your IP address, which the provider needs to deliver our online offering to the browser you are using, as well as all inputs made by you on our website. In addition, the provider we use may collect', webhostingDataTypes: [ - 'das Datum und die Uhrzeit des Zugriffs auf unsere Internetseite', - 'Zeitzonendifferenz zur Greenwich Mean Time (GMT)', - 'Zugriffsstatus (HTTP-Status)', - 'die übertragene Datenmenge', - 'der Internet-Service-Provider des zugreifenden Systems', - 'der von Ihnen verwendete Browsertyp und dessen Version', - 'das von Ihnen verwendete Betriebssystem', - 'die Internetseite, von welcher Sie gegebenenfalls auf unsere Internetseite gelangt sind', - 'die Seiten bzw. Unterseiten, welche Sie auf unserer Internetseite besuchen.', + 'the date and time of access to our website', + 'time zone difference from Greenwich Mean Time (GMT)', + 'access status (HTTP status)', + 'the amount of data transferred', + 'the internet service provider of the accessing system', + 'the browser type and version you are using', + 'the operating system you are using', + 'the website from which you may have reached our website', + 'the pages or sub-pages you visit on our website.', ], webhostingPurpose: - 'erheben. Die vorgenannten Daten werden als Logfiles auf den Servern unseres Anbieters gespeichert. Dies ist erforderlich, um die Stabilität und Sicherheit des Betriebs unserer Internetseite zu gewährleisten.', + 'The aforementioned data is stored as log files on our provider\'s servers. This is necessary to ensure the stability and security of our website\'s operation.', webhostingDataCategories: { - affectedData: 'Betroffene Daten:', + affectedData: 'Data affected:', affectedDataList: [ - 'Inhaltsdaten (bspw. Posts, Fotos, Videos)', - 'Nutzungsdaten (bspw. Zugriffszeiten, angeklickte Webseiten)', - 'Kommunikationsdaten (bspw. Informationen über das genutzte Gerät, IP-Adresse)', + 'Content data (e.g. posts, photos, videos)', + 'Usage data (e.g. access times, visited websites)', + 'Communication data (e.g. information about the device used, IP address)', ], - affectedPersons: 'Betroffene Personen: Nutzer unserer Internetpräsenz', + affectedPersons: 'Affected persons: Users of our online presence', processingPurpose: - 'Verarbeitungszweck: Ausspielen unserer Internetseiten, Gewährleistung des Betriebs unserer Internetseiten', + 'Processing purpose: Provision of our website, ensuring the operation of our website', legalBasis: - 'Rechtsgrundlage: Berechtigtes Interesse, Art. 6 Abs. 1 lit. f DSGVO', - provider: 'Von uns beauftragte(r) Webhoster:', + 'Legal basis: Legitimate interest, Art. 6(1)(f) GDPR', + provider: 'Web host commissioned by us:', }, hostingProvider: { name: 'Bitpalast GmbH', - address: 'Postfach 19 15 64, D-14005 Berlin, Deutschland', + address: 'Postfach 19 15 64, D-14005 Berlin, Germany', website: 'https://preiswerter-webserver-de.bitpalast.net/', + privacyPolicyLabel: 'Privacy Policy:', }, - contactTitle: 'Kontaktaufnahme', + contactTitle: 'Contact', contactText: - 'Soweit Sie uns über E-Mail, Soziale Medien, Telefon, Fax, Post, unser Kontaktformular oder sonstwie ansprechen und uns hierbei personenbezogene Daten wie Ihren Namen, Ihre Telefonnummer oder Ihre E-Mail-Adresse zur Verfügung stellen oder weitere Angaben zur Ihrer Person oder Ihrem Anliegen machen, verarbeiten wir diese Daten zur Beantwortung Ihrer Anfrage im Rahmen des zwischen uns bestehenden vorvertraglichen oder vertraglichen Beziehungen.', + 'To the extent that you contact us via email, social media, telephone, fax, post, our contact form, or otherwise, and in doing so provide us with personal data such as your name, phone number, or email address, or make further statements about yourself or your request, we will process this data to respond to your inquiry within the scope of the pre-contractual or contractual relationship existing between us.', + contactDataLabels: { + affectedData: 'Data affected:', + affectedPersons: 'Persons affected:', + processingPurpose: 'Processing purpose:', + legalBasis: 'Legal basis:', + }, contactDataCategories: { affectedData: [ - 'Bestandsdaten (bspw. Namen, Adressen)', - 'Kontakdaten (bspw. E-Mail-Adresse, Telefonnummer, Postanschrift)', - 'Inhaltsdaten (Texte, Fotos, Videos)', - 'Vertragsdaten (bspw. Vertragsgegenstand, Vertragsdauer)', + 'Master data (e.g. names, addresses)', + 'Contact data (e.g. email address, phone number, postal address)', + 'Content data (texts, photos, videos)', + 'Contract data (e.g. subject matter of contract, duration of contract)', ], affectedPersons: - 'Interessenten, Kunden, Geschäfts- und Vertragspartner', + 'Prospective customers, clients, business and contractual partners', processingPurpose: - 'Kommunikation sowie Beantwortung von Kontaktanfragen, Büro und Organisationsverfahren', + 'Communication and responding to contact requests, office and organizational procedures', legalBasis: - 'Vertragserfüllung und vorvertragliche Anfragen, Art. 6 Abs. 1 lit. b DSGVO, berechtigtes Interesse, Art. 6 Abs. 1 lit. f DSGVO', + 'Contract fulfillment and pre-contractual inquiries, Art. 6(1)(b) GDPR, legitimate interest, Art. 6(1)(f) GDPR', }, - securityTitle: 'Sicherheitsmaßnahmen', + onlineAppointmentTitle: 'Online Appointment Booking (Nextcloud)', + onlineAppointmentIntro: + 'On our website, we offer the option to book appointments for consultations or meetings via an external link. For this purpose, we use the appointment scheduler service of the open-source software Nextcloud, which is operated on our servers at our web hosting provider.', + onlineAppointmentProvider: + 'Infrastructure provider: The servers on which the Nextcloud instance runs are provided by Bitpalast GmbH, Postfach 19 15 64, D-14005 Berlin, Germany. However, the sole responsibility for data processing in connection with appointment booking remains with Sascha Bach (see section "Who is responsible for data processing at our company").', + onlineAppointmentDataTitle: + 'Data collected: When booking an appointment, the following personal data is entered and processed by you:', + onlineAppointmentData: [ + 'Name (first and last name)', + 'Email address', + 'Phone number if applicable (if included as an optional field in the booking form)', + 'Comments or notes about the appointment content if applicable', + 'The selected appointment time slot', + ], + onlineAppointmentPurpose: + 'Purpose of processing: The data is processed exclusively for the purpose of scheduling the appointment, sending automatic appointment confirmations by email, and reminding you of the scheduled appointment. Without providing this data, it is not possible to use the booking function.', + onlineAppointmentLegalBasis: + 'Legal basis: The processing of data is based on Art. 6(1)(b) GDPR (performance of pre-contractual measures). Booking an appointment constitutes a specific request to initiate or carry out a contractual relationship.', + onlineAppointmentRetention: + 'Retention period: Data will be deleted after the appointment has taken place and any applicable statutory retention periods have expired (e.g., under tax law: 6 years for business correspondence, 10 years for accounting records). If no contractual relationship is established, the data will be deleted no later than 3 months after the appointment, unless you have consented to longer storage.', + onlineAppointmentThirdParty: + 'Disclosure: Data will not be disclosed to third parties unless this is legally required for the fulfillment of the appointment or you have explicitly consented to such disclosure. The data remains on servers within the European Union (Germany).', + onlineAppointmentServerLocation: + 'Server location: The data is stored on servers in Germany.', + securityTitle: 'Security measures', securityText: - 'Wir treffen im Übrigen technische und organisatorische Sicherheitsmaßnahmen nach dem Stand der Technik, um die Vorschriften der Datenschutzgesetze einzuhalten und Ihre Daten gegen zufällige oder vorsätzliche Manipulationen, teilweisen oder vollständigen Verlust, Zerstörung oder gegen den unbefugten Zugriff Dritter zu schützen.', - changesTitle: 'Aktualität und Änderung dieser Datenschutzerklärung', + 'We also take technical and organizational security measures in accordance with the state of the art to comply with data protection laws and to protect your data against accidental or intentional manipulation, partial or complete loss, destruction, or unauthorized access by third parties.', + changesTitle: 'Currency and amendments to this privacy policy', changesText: - 'Diese Datenschutzerklärung ist aktuell gültig und hat den Stand September 2025. Aufgrund geänderter gesetzlicher bzw. behördlicher Vorgaben kann es notwendig werden, diese Datenschutzerklärung anzupassen.', + 'This privacy policy is currently valid and was last updated in May 2026. Due to changes in legislation or official requirements, it may become necessary to amend this privacy policy.', disclaimer: - 'Diese Datenschutzerklärung wurde mit Hilfe des Datenschutz-Generators von SOS Recht erstellt. SOS Recht ist ein Angebot der Mueller.legal Rechtsanwälte Partnerschaft mit Sitz in Berlin.', + 'This privacy policy was created with the help of the data protection generator by SOS Recht. SOS Recht is an offering of Mueller.legal Attorneys at Law, based in Berlin.', }, address: { street: 'Alt-Tempelhof 15', city: '12099 Berlin', - country: 'Deutschland', + country: 'Germany', }, contact: { phone: '+49 (0) 179 9364867', diff --git a/src/config/locales/en/index.ts b/src/config/locales/en/index.ts index a18654c..e516834 100644 --- a/src/config/locales/en/index.ts +++ b/src/config/locales/en/index.ts @@ -1,279 +1,26 @@ import { navigation } from './navigation'; import { themeToggle } from '../../theme-toggle'; import { footer } from './footer'; -import { hero } from './hero'; -import { about } from './about'; -import { services } from './services'; -import { skills } from './skills'; +import { hero } from './technical/hero'; +import { about } from './technical/about'; +import { landingAboutMe } from './landing/landing-aboutme'; +import { landingHero } from './landing/landing-hero'; +import { landingReasons } from './landing/landing-reasons'; +import { landingExperience } from './landing/landing-experience'; +import { landingWinnings } from './landing/landing-winnings'; +import { landingProcesses } from './landing/landing-processes'; +import { landingReferences } from './landing/landing-references'; +import { services } from './technical/services'; +import { skills } from './technical/skills'; import { projects } from './projects'; -import { certifications } from './certifications'; +import { certifications } from './technical/certifications'; import { contact } from './contact'; import { imprint } from './imprint'; import { privacyPolicy } from './privacy-policy'; import { accessibility } from './accessibility'; +import type { TextConfig } from './TextConfig'; -// TypeScript interfaces for type safety -export interface TextConfig { - // Navigation - navigation: { - menuItems: string[]; - mobileMenuAriaLabel: string; - }; - - // Theme Toggle - themeToggle: { - lightIcon: string; - darkIcon: string; - lightModeText: string; - darkModeText: string; - }; - - // Footer - footer: { - imprintText: string; - copyrightText: string; - githubAriaLabel: string; - linkedinAriaLabel: string; - emailAriaLabel: string; - }; - - // Hero Section - hero: { - title: string; - description: string; - primaryButtonText: string; - secondaryButtonText: string; - tertiaryButtonText: string; - statItems: Array<{ - label: string; - value: string; - }>; - }; - - // About Section - about: { - title: string; - subtitle: string; - name: string; - bio: string[]; - featureCards: Array<{ - title: string; - description: string; - }>; - }; - - // Services Section - services: { - title: string; - subtitle: string; - serviceItems: Array<{ - title: string; - description: string; - }>; - }; - - // Skills Section - skills: { - title: string; - subtitle: string; - skillCategories: Array<{ - title: string; - skills: Array<{ - skill: string; - value: number; - }>; - }>; - }; - - // Projects Section - projects: { - title: string; - subtitle: string; - codeButtonText: string; - liveButtonText: string; - projectItems: Array<{ - id: number; - title: string; - description: string; - }>; - }; - - // Certifications Section - certifications: { - title: string; - subtitle: string; - certificationItems: Array<{ - name: string; - issuer: string; - }>; - }; - - // Contact Section - contact: { - title: string; - subtitle: string; - connectTitle: string; - connectDescription: string; - buttonText: string; - socialTitle: string; - availabilityText: string; - responseTimeLabel: string; - responseTimeValue: string; - preferredContactLabel: string; - preferredContactValue: string; - locationLabel: string; - locationValue: string; - emailSubject: string; - emailBody: string; - emailAnnouncement: string; - socialAnnouncement: string; - }; - - // Imprint Page - imprint: { - title: string; - subtitle: string; - companyInfoTitle: string; - contactTitle: string; - responsibilityTitle: string; - disclaimerTitle: string; - contentLiabilityTitle: string; - contentLiabilityText: string[]; - copyrightTitle: string; - copyrightText: string[]; - privacyTitle: string; - privacyText: string; - detailedPrivacyPolicy: { - title: string; - introduction: string; - responsibleTitle: string; - responsibleText: string; - responsibleContact: string; - dataProtectionOfficerTitle: string; - dataProtectionOfficerText: string; - rightsTitle: string; - rightsIntro: string; - rights: Array<{ title: string; text: string }>; - revocationTitle: string; - revocationText: string; - objectionTitle: string; - objectionText: string; - objectionHighlight: string; - objectionContact: string; - dataDeletionTitle: string; - dataDeletionIntro: string; - dataDeletionReasons: string[]; - retentionText: string; - webhostingTitle: string; - webhostingText: string; - webhostingDataTypes: string[]; - webhostingPurpose: string; - webhostingDataCategories: { - affectedData: string; - affectedDataList: string[]; - affectedPersons: string; - processingPurpose: string; - legalBasis: string; - provider: string; - }; - hostingProvider: { - name: string; - address: string; - website: string; - }; - contactTitle: string; - contactText: string; - contactDataCategories: { - affectedData: string[]; - affectedPersons: string; - processingPurpose: string; - legalBasis: string; - }; - securityTitle: string; - securityText: string; - changesTitle: string; - changesText: string; - disclaimer: string; - }; - address: { - street: string; - city: string; - country: string; - }; - contact: { - phone: string; - }; - }; - - // Privacy Policy Page - privacyPolicy: { - title: string; - lastUpdated: string; - introTitle: string; - introText: string; - dataCollectionTitle: string; - dataCollectionText: string; - dataCollectionList: string[]; - webhostingTitle: string; - webhostingText: string; - webhostingProvider: string; - webhostingProviderName: string; - webhostingProviderAddress: string; - webhostingProviderWebsite: string; - rightsTitle: string; - rightsText: string; - rightsList: string[]; - contactTitle: string; - contactText: string; - contactEmail: string; - }; - - // Accessibility and Navigation - accessibility: { - skipLinks: { - skipToHero: string; - skipToAbout: string; - skipToServices: string; - skipToSkills: string; - skipToProjects: string; - skipToCertifications: string; - skipToContact: string; - }; - navigation: { - keyboardHelp: string; - keyboardHelpExpanded: string[]; - useTabToNavigate: string; - useTabToNavigateCards: string; - useTabToNavigateOptions: string; - closeKeyboardHelp: string; - }; - screenReader: { - professionalStatistics: string; - projectCard: string; - viewSourceCode: string; - viewLiveDemo: string; - downloadResume: string; - downloadResumeDescription: string; - keyboardNavigationHelp: string; - themeSwitchButton: string; - switchToTheme: string; - certificationCard: string; - serviceCard: string; - skillBadge: string; - }; - ariaLabels: { - mainNavigation: string; - socialLinks: string; - themeToggle: string; - mobileMenuToggle: string; - contactForm: string; - projectsGrid: string; - skillsGrid: string; - certificationsGrid: string; - servicesGrid: string; - }; - }; -} +export type { TextConfig } from './TextConfig'; // English text configuration export const en: TextConfig = { @@ -282,6 +29,13 @@ export const en: TextConfig = { footer, hero, about, + landingAboutMe, + landingHero, + landingReasons, + landingExperience, + landingWinnings, + landingProcesses, + landingReferences, services, skills, projects, diff --git a/src/config/locales/en/landing/landing-aboutme.ts b/src/config/locales/en/landing/landing-aboutme.ts new file mode 100644 index 0000000..6f03174 --- /dev/null +++ b/src/config/locales/en/landing/landing-aboutme.ts @@ -0,0 +1,10 @@ +export const landingAboutMe = { + title: 'More Clients Through Accessibility', + subtitle: '', + greeting: 'Hi, I\'m Sascha.', + name: 'Sascha', + bio: [ + 'I help businesses build websites that can be used by everyone. A website that works for all reaches all.', + ], + featureCards: [] as Array<{ title: string; description: string; }>, +}; diff --git a/src/config/locales/en/landing/landing-experience.ts b/src/config/locales/en/landing/landing-experience.ts new file mode 100644 index 0000000..d0c5fd3 --- /dev/null +++ b/src/config/locales/en/landing/landing-experience.ts @@ -0,0 +1,9 @@ +export const landingExperience = { + title: 'My Experience', + paragraphs: [ + "I've helped businesses like yours — from small shops to service providers — make their websites accessible.", + "At ORWO, I built a photo book designer that worked for thousands of customers, even those with visual impairments.", + 'Now, I bring that same care to your website, whether you are a bakery, a therapist, a craftsman, or a local shop.', + 'Accessibility means respect and more reach for you and your products.', + ], +}; diff --git a/src/config/locales/en/landing/landing-hero.ts b/src/config/locales/en/landing/landing-hero.ts new file mode 100644 index 0000000..c040dad --- /dev/null +++ b/src/config/locales/en/landing/landing-hero.ts @@ -0,0 +1,5 @@ +export const landingHero = { + title: 'Accessible websites that reach more customers and ensure legal compliance', + description: 'I help you make your website accessible to everyone – compliant with accessibility laws.', + tertiaryButtonText: 'Get in Touch', +}; diff --git a/src/config/locales/en/landing/landing-processes.ts b/src/config/locales/en/landing/landing-processes.ts new file mode 100644 index 0000000..ab9fa34 --- /dev/null +++ b/src/config/locales/en/landing/landing-processes.ts @@ -0,0 +1,11 @@ +export const landingProcesses = { + title: 'How I Work', + intro: "I'm your partner.", + items: [ + { text: 'I work mostly remotely - less meetings, less commute, less overhead.' }, + { text: 'We agree on a schedule - I deliver.' }, + { text: 'I use my own tools - no setup required on your side.' }, + { text: "I'm flexible - whether you need a quick fix or a full redesign." }, + ], + outro: 'You get my full focus.', +}; diff --git a/src/config/locales/en/landing/landing-reasons.ts b/src/config/locales/en/landing/landing-reasons.ts new file mode 100644 index 0000000..6610587 --- /dev/null +++ b/src/config/locales/en/landing/landing-reasons.ts @@ -0,0 +1,23 @@ +export const landingReasons = { + title: 'Why it is important', + reasons: [ + { + stat: '15 %', + text: 'of all people in Germany have a disability. That is 12 million potential customers.', + }, + { + stat: '80 %', + text: 'of those people leave websites that do not work for them.', + }, + { + stat: 'SEO', + text: 'Google rewards accessible websites with better rankings, more traffic, and more sales.', + }, + { + stat: 'Trust', + text: 'Customers trust accessible websites more. They feel respected, not ignored.', + }, + ], + outro: + 'You are not just doing the right thing. You are making a difference.', +}; diff --git a/src/config/locales/en/landing/landing-references.ts b/src/config/locales/en/landing/landing-references.ts new file mode 100644 index 0000000..7635929 --- /dev/null +++ b/src/config/locales/en/landing/landing-references.ts @@ -0,0 +1,17 @@ +export const landingReferences = { + title: 'What Clients and Colleagues Say', + items: [ + { + referenceText: + 'The digital accessibility audit was extremely insightful and practical. The identified weaknesses were explained clearly and in an understandable way, making it possible to derive concrete improvements. Particularly noteworthy is the holistic view of usability and inclusion. Working together is highly recommended for anyone who wants to make their website sustainably accessible.', + name: 'Florian Adragna', + position: 'Freelancer, Florian Lucas Adragna', + }, + { + referenceText: + 'I always greatly appreciated working with you. You were particularly fast and reliable when it came to finding and fixing bugs. You also picked up new topics quickly and without any issues. Working with you was pleasant both professionally and personally — I am very happy to recommend you.', + name: 'Colleague', + position: 'Team Lead, ORWO Net GmbH', + }, + ], +}; diff --git a/src/config/locales/en/landing/landing-winnings.ts b/src/config/locales/en/landing/landing-winnings.ts new file mode 100644 index 0000000..2ff6582 --- /dev/null +++ b/src/config/locales/en/landing/landing-winnings.ts @@ -0,0 +1,13 @@ +export const landingWinnings = { + title: 'What You Get', + intro: 'When you work with me, you get:', + items: [ + { text: 'A website that works for everyone, no matter how they browse.' }, + { text: 'More visitors, because Google loves accessible sites.' }, + { text: 'More sales, because people buy when they feel included.' }, + { text: 'More trust, because your customers feel respected.' }, + { text: 'Peace of mind, because I handle everything from testing to legal compliance.' }, + { text: 'No tech stress, because I explain things in plain language with no jargon.' }, + ], + outro: 'I make sure I understand your issue and my solution fits.', +}; diff --git a/src/config/locales/en/navigation.ts b/src/config/locales/en/navigation.ts index ff575ca..cc50b97 100644 --- a/src/config/locales/en/navigation.ts +++ b/src/config/locales/en/navigation.ts @@ -1,11 +1,21 @@ export const navigation = { menuItems: [ - 'About', - 'Services', - 'Skills', - 'Certifications', - 'Projects', - 'Contact', + { section: 'About', label: 'About' }, + { section: 'Services', label: 'Services' }, + { section: 'Skills', label: 'Skills' }, + { section: 'Certifications', label: 'Certifications' }, + { section: 'Projects', label: 'Projects' }, + { section: 'Contact', label: 'Contact' }, ], - mobileMenuAriaLabel: 'Menü öffnen', + landingMenuItems: [ + { section: 'About', label: 'About' }, + { section: 'Winnings', label: 'Benefits' }, + { section: 'Experience', label: 'Experience' }, + { section: 'Processes', label: 'How I Work' }, + { section: 'Projects', label: 'Projects' }, + { section: 'References', label: 'References' }, + { section: 'Contact', label: 'Contact' }, + ], + mobileMenuAriaLabel: 'Open menu', + logoAlt: 'Sascha Bach – Accessible Web Development', }; diff --git a/src/config/locales/en/projects.ts b/src/config/locales/en/projects.ts index ad0ef8d..85506f3 100644 --- a/src/config/locales/en/projects.ts +++ b/src/config/locales/en/projects.ts @@ -38,7 +38,7 @@ export const projects = { image: icaraceImage, technologies: ['Angular 4', 'Typescript', 'HTML', 'CSS'], year: '2018', - github: 'https://github.com/LuciusShadow/ErgoVR', + live: 'https://live.icarace.com/home', }, { id: 4, diff --git a/src/config/locales/en/about.ts b/src/config/locales/en/technical/about.ts similarity index 100% rename from src/config/locales/en/about.ts rename to src/config/locales/en/technical/about.ts diff --git a/src/config/locales/en/certifications.ts b/src/config/locales/en/technical/certifications.ts similarity index 71% rename from src/config/locales/en/certifications.ts rename to src/config/locales/en/technical/certifications.ts index 5d91c51..d10a981 100644 --- a/src/config/locales/en/certifications.ts +++ b/src/config/locales/en/technical/certifications.ts @@ -1,4 +1,4 @@ -import { certificationItems } from '../../certifications-data'; +import { certificationItems } from '../../../certifications-data'; export const certifications = { title: 'Certifications & Achievements', diff --git a/src/config/locales/en/hero.ts b/src/config/locales/en/technical/hero.ts similarity index 100% rename from src/config/locales/en/hero.ts rename to src/config/locales/en/technical/hero.ts diff --git a/src/config/locales/en/services.ts b/src/config/locales/en/technical/services.ts similarity index 100% rename from src/config/locales/en/services.ts rename to src/config/locales/en/technical/services.ts diff --git a/src/config/locales/en/skills.ts b/src/config/locales/en/technical/skills.ts similarity index 100% rename from src/config/locales/en/skills.ts rename to src/config/locales/en/technical/skills.ts diff --git a/src/config/personal.ts b/src/config/personal.ts index 8af51a6..1737296 100644 --- a/src/config/personal.ts +++ b/src/config/personal.ts @@ -10,11 +10,14 @@ export const personalConfig = { full: 'freelancer [at] sascha-bach.de', }, + // Booking + appointmentUrl: 'https://nextcloud.sascha-bach.de/index.php/apps/calendar/appointment/N58i246RSTB2', + // Social Links social: { - github: { - url: 'https://github.com/LuciusShadow', - username: 'LuciusShadow', + codeberg: { + url: 'https://codeberg.org/saschab', + username: 'saschab', }, linkedin: { url: 'https://www.linkedin.com/in/saschabach/', diff --git a/src/contexts/LanguageContext.tsx b/src/contexts/LanguageContext.tsx index 464ce91..5571c95 100644 --- a/src/contexts/LanguageContext.tsx +++ b/src/contexts/LanguageContext.tsx @@ -1,8 +1,7 @@ import { createContext, useContext, useState, useEffect, type ReactNode } from 'react'; import { en, type TextConfig } from '../config/locales/en'; import { de } from '../config/locales/de'; - -type Language = 'en' | 'de'; +import type { Language } from '../data/types'; interface LanguageContextType { language: Language; @@ -12,46 +11,29 @@ interface LanguageContextType { const LanguageContext = createContext(undefined); -const LANGUAGE_KEY = 'preferred-language'; - -function getBrowserLanguage(): Language { - const browserLang = navigator.language.toLowerCase(); - if (browserLang.startsWith('de')) { - return 'de'; - } - return 'en'; // Default to English for all other languages -} - -function getSavedLanguage(): Language | null { - const saved = localStorage.getItem(LANGUAGE_KEY); - if (saved === 'en' || saved === 'de') { - return saved; - } +/** Derive the language from the URL pathname prefix (/en/… or /de/…). */ +export function getLanguageFromPath(pathname: string): Language | null { + if (pathname.startsWith('/en')) return 'en'; + if (pathname.startsWith('/de')) return 'de'; return null; } -export function LanguageProvider({ children }: { children: ReactNode }) { - const [language, setLanguageState] = useState(() => { - // First check localStorage, then browser language, then default to English - return getSavedLanguage() || getBrowserLanguage(); - }); +export function LanguageProvider({ initialLanguage = 'de', children }: Readonly<{ initialLanguage?: Language; children: ReactNode; }>) { + const [language, setLanguage] = useState(initialLanguage); const texts = language === 'de' ? de : en; - const setLanguage = (lang: Language) => { - setLanguageState(lang); - localStorage.setItem(LANGUAGE_KEY, lang); - // Update HTML lang attribute for accessibility and SEO + const handleSetLanguage = (lang: Language) => { + setLanguage(lang); document.documentElement.lang = lang; }; useEffect(() => { - // Set initial lang attribute document.documentElement.lang = language; }, [language]); return ( - + {children} ); diff --git a/src/data/types.ts b/src/data/types.ts new file mode 100644 index 0000000..e8622b9 --- /dev/null +++ b/src/data/types.ts @@ -0,0 +1,15 @@ +/** + * Common types used across the application + */ + +// Navigation types +export interface MenuItem { + section: string; + label: string; +} + +// Language types +export type Language = 'en' | 'de'; + +// Theme types +export type Theme = 'light' | 'dark'; diff --git a/src/hooks/usePageSeo.ts b/src/hooks/usePageSeo.ts new file mode 100644 index 0000000..4986e84 --- /dev/null +++ b/src/hooks/usePageSeo.ts @@ -0,0 +1,63 @@ +import { useEffect } from 'react'; + +interface SeoProps { + title: string; + description: string; + canonical?: string; + noIndex?: boolean; + image?: string; +} + +const BASE_URL = 'https://sascha-bach.de'; + +export function usePageSeo({ title, description, canonical, noIndex, image }: SeoProps) { + useEffect(() => { + document.title = title; + + const setMeta = (name: string, content: string, isProperty = false) => { + const attr = isProperty ? 'property' : 'name'; + let el = document.querySelector(`meta[${attr}="${name}"]`); + if (!el) { + el = document.createElement('meta'); + el.setAttribute(attr, name); + document.head.appendChild(el); + } + el.content = content; + }; + + setMeta('description', description); + setMeta('og:title', title, true); + setMeta('og:description', description, true); + setMeta('twitter:title', title); + setMeta('twitter:description', description); + + if (image) { + const imageUrl = image.startsWith('http') ? image : `${BASE_URL}${image}`; + setMeta('og:image', imageUrl, true); + setMeta('twitter:image', imageUrl); + } + + if (canonical) { + setMeta('og:url', `${BASE_URL}${canonical}`, true); + + let link = document.querySelector('link[rel="canonical"]'); + if (!link) { + link = document.createElement('link'); + link.rel = 'canonical'; + document.head.appendChild(link); + } + link.href = `${BASE_URL}${canonical}`; + } + + if (noIndex) { + setMeta('robots', 'noindex, nofollow'); + } + + return () => { + if (noIndex) { + const robotsMeta = document.querySelector('meta[name="robots"]'); + robotsMeta?.remove(); + } + }; + }, [title, description, canonical, noIndex]); +} diff --git a/src/hooks/useProjectKeyboardNavigation.ts b/src/hooks/useProjectKeyboardNavigation.ts new file mode 100644 index 0000000..742afbe --- /dev/null +++ b/src/hooks/useProjectKeyboardNavigation.ts @@ -0,0 +1,159 @@ +import { useState, useRef, useEffect, type KeyboardEvent, type RefObject } from 'react'; +import type { Project } from '../data/Project'; + +interface ProjectAction { + type: 'github' | 'live'; + url: string; +} + +interface UseProjectKeyboardNavigationProps { + projects: Project[]; + announce: (message: string) => void; + useTabToNavigateText: string; +} + +interface UseProjectKeyboardNavigationReturn { + activeCardIndex: number | null; + focusedActionIndex: number; + cardRefs: RefObject<(HTMLElement | null)[]>; + actionRefs: RefObject<(HTMLAnchorElement | null)[]>; + handleCardSelect: (index: number) => void; + handleCardKeyDown: (event: KeyboardEvent, cardIndex: number) => void; + handleActionKeyDown: (event: KeyboardEvent, cardIndex: number, actionIndex: number) => void; + getProjectActions: (project: Project) => ProjectAction[]; +} + +/** + * Custom hook for managing keyboard navigation in project cards + * Handles card selection, focus management, and keyboard shortcuts + */ +export function useProjectKeyboardNavigation({ + projects, + announce, + useTabToNavigateText, +}: UseProjectKeyboardNavigationProps): UseProjectKeyboardNavigationReturn { + const [activeCardIndex, setActiveCardIndex] = useState(null); + const [focusedActionIndex, setFocusedActionIndex] = useState(0); + const cardRefs = useRef<(HTMLElement | null)[]>([]); + const actionRefs = useRef<(HTMLAnchorElement | null)[]>([]); + + // Get available actions for a project + const getProjectActions = (project: Project): ProjectAction[] => { + const actions: ProjectAction[] = []; + if (project.github) actions.push({ type: 'github', url: project.github }); + if (project.live) actions.push({ type: 'live', url: project.live }); + return actions; + }; + + // Handle card selection + const handleCardSelect = (index: number) => { + setActiveCardIndex(index); + setFocusedActionIndex(0); + + const project = projects[index]; + const actions = getProjectActions(project); + const announcement = `${project.title} card selected. ${actions.length} actions available. ${useTabToNavigateText}, Escape to close.`; + announce(announcement); + }; + + // Handle keyboard navigation within cards + const handleCardKeyDown = (event: KeyboardEvent, cardIndex: number) => { + const project = projects[cardIndex]; + const actions = getProjectActions(project); + + switch (event.key) { + case 'Enter': + case ' ': + event.preventDefault(); + handleCardSelect(cardIndex); + break; + case 'Escape': + if (activeCardIndex === cardIndex) { + event.preventDefault(); + setActiveCardIndex(null); + setFocusedActionIndex(0); + cardRefs.current[cardIndex]?.focus(); + announce(`${project.title} card closed.`); + } + break; + case 'Tab': + if (activeCardIndex === cardIndex && actions.length > 0) { + event.preventDefault(); + const nextActionIndex = event.shiftKey + ? (focusedActionIndex - 1 + actions.length) % actions.length + : (focusedActionIndex + 1) % actions.length; + setFocusedActionIndex(nextActionIndex); + + // Focus the action button + const actionButton = actionRefs.current[cardIndex * 2 + nextActionIndex]; + actionButton?.focus(); + } + break; + case 'ArrowDown': + case 'ArrowUp': + if (activeCardIndex !== null) { + event.preventDefault(); + const direction = event.key === 'ArrowDown' ? 1 : -1; + const nextCardIndex = (cardIndex + direction + projects.length) % projects.length; + + // Close current card and move to next + setActiveCardIndex(null); + setFocusedActionIndex(0); + cardRefs.current[nextCardIndex]?.focus(); + announce(`Moved to ${projects[nextCardIndex].title} card.`); + } + break; + } + }; + + // Handle action button keyboard navigation + const handleActionKeyDown = (event: KeyboardEvent, cardIndex: number, actionIndex: number) => { + const actions = getProjectActions(projects[cardIndex]); + + switch (event.key) { + case 'Escape': + event.preventDefault(); + setActiveCardIndex(null); + setFocusedActionIndex(0); + cardRefs.current[cardIndex]?.focus(); + announce(`${projects[cardIndex].title} card closed.`); + break; + case 'Tab': + if (event.shiftKey && actionIndex === 0) { + // Tab back to card + event.preventDefault(); + cardRefs.current[cardIndex]?.focus(); + } else if (!event.shiftKey && actionIndex === actions.length - 1) { + // Tab forward to next card + event.preventDefault(); + const nextCardIndex = (cardIndex + 1) % projects.length; + setActiveCardIndex(null); + setFocusedActionIndex(0); + cardRefs.current[nextCardIndex]?.focus(); + announce(`Moved to ${projects[nextCardIndex].title} card.`); + } + break; + } + }; + + // Focus management effect + useEffect(() => { + if (activeCardIndex !== null) { + const firstActionRef = actionRefs.current[activeCardIndex * 2]; + if (firstActionRef) { + firstActionRef.focus(); + } + } + }, [activeCardIndex]); + + return { + activeCardIndex, + focusedActionIndex, + cardRefs, + actionRefs, + handleCardSelect, + handleCardKeyDown, + handleActionKeyDown, + getProjectActions, + }; +} diff --git a/src/hooks/useScreenReaderAnnouncements.ts b/src/hooks/useScreenReaderAnnouncements.ts new file mode 100644 index 0000000..b9a79f3 --- /dev/null +++ b/src/hooks/useScreenReaderAnnouncements.ts @@ -0,0 +1,22 @@ +import { useCallback } from 'react'; + +/** + * Custom hook for managing screen reader announcements + * Creates temporary live region elements to announce messages to assistive technologies + */ +export function useScreenReaderAnnouncements() { + const announce = useCallback((message: string) => { + const announcement = document.createElement('div'); + announcement.setAttribute('aria-live', 'polite'); + announcement.setAttribute('aria-atomic', 'true'); + announcement.setAttribute('class', 'sr-only'); + announcement.textContent = message; + + document.body.appendChild(announcement); + setTimeout(() => { + announcement.remove(); + }, 1000); + }, []); + + return { announce }; +} diff --git a/src/hooks/useScrollReveal.ts b/src/hooks/useScrollReveal.ts new file mode 100644 index 0000000..bc761c3 --- /dev/null +++ b/src/hooks/useScrollReveal.ts @@ -0,0 +1,39 @@ +import { useEffect, useRef } from 'react'; + +/** + * Observes all `.reveal-item` descendants of the returned ref and adds + * `.is-visible` when they enter the viewport, triggering the CSS transition + * defined in globals.scss. + * + * The observer starts immediately so that elements already in the viewport + * become visible right away — including after language-change remounts. + */ +export function useScrollReveal() { + const ref = useRef(null); + + useEffect(() => { + const container = ref.current; + if (!container) return; + + const observer = new IntersectionObserver( + (entries) => { + entries.forEach((entry) => { + if (entry.isIntersecting) { + entry.target.classList.add('is-visible'); + observer.unobserve(entry.target); + } + }); + }, + { threshold: 0.12 } + ); + + const items = container.querySelectorAll('.reveal-item'); + items.forEach((el) => observer.observe(el)); + + return () => { + observer.disconnect(); + }; + }, []); + + return ref; +} diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index 604a35f..3e3746e 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -5,8 +5,21 @@ import SkillsSection from '../components/sections/SkillsSection'; import CertificationsSection from '../components/sections/CertificationsSection'; import ProjectsSection from '../components/sections/ProjectsSection'; import ContactSection from '../components/sections/ContactSection'; +import { usePageSeo } from '../hooks/usePageSeo'; +import { useLanguage } from '../contexts/LanguageContext'; export default function HomePage() { + const { language } = useLanguage(); + usePageSeo({ + title: language === 'de' + ? 'Sascha Bach | Technisches Portfolio – Skills, Services & Projekte' + : 'Sascha Bach | Technical Portfolio – Skills, Services & Projects', + description: language === 'de' + ? 'Das technische Portfolio von Sascha Bach: Services, Fähigkeiten, Zertifizierungen und Projekte in React, TypeScript und barrierefreier Webentwicklung.' + : 'Explore the technical portfolio of Sascha Bach: services, skills, certifications, and projects in React, TypeScript, and accessible web development.', + canonical: `/${language}/technical`, + }); + return ( <> diff --git a/src/pages/ImprintPage.tsx b/src/pages/ImprintPage.tsx index 7f06e37..5ec569f 100644 --- a/src/pages/ImprintPage.tsx +++ b/src/pages/ImprintPage.tsx @@ -1,26 +1,17 @@ -import { useEffect } from 'react'; import { personalConfig } from '../config/personal'; import { useLanguage } from '../contexts/LanguageContext'; +import { usePageSeo } from '../hooks/usePageSeo'; export default function ImprintPage() { const { texts: allTexts } = useLanguage(); const texts = allTexts.imprint; - useEffect(() => { - // Prevent indexing of this page - const metaRobots = document.createElement('meta'); - metaRobots.name = 'robots'; - metaRobots.content = 'noindex, nofollow'; - document.head.appendChild(metaRobots); - - // Cleanup on unmount - return () => { - const existingMeta = document.querySelector('meta[name="robots"]'); - if (existingMeta) { - existingMeta.remove(); - } - }; - }, []); + usePageSeo({ + title: 'Imprint | Sascha Bach', + description: 'Legal information and imprint for Sascha Bach, freelance software developer.', + canonical: '/imprint', + noIndex: true, + }); return (
    @@ -39,6 +30,17 @@ export default function ImprintPage() {

    {texts.address.street}

    {texts.address.city}

    {texts.address.country}

    +

    {texts.umsatzsteuerID || texts.vatID}

    +
    +
    + +
    +

    {texts.businessRegistrationTitle}

    +
    +

    {texts.businessRegistration.title}

    +

    Datum der Erteilung: {texts.businessRegistration.dateIssued}

    +

    Erteilt von: {texts.businessRegistration.issuedBy}

    +

    {texts.businessRegistration.authority}

    @@ -179,7 +181,7 @@ export default function ImprintPage() {

    {texts.detailedPrivacyPolicy.hostingProvider.name}

    {texts.detailedPrivacyPolicy.hostingProvider.address}

    - Datenschutzerklärung: {' '} + {texts.detailedPrivacyPolicy.hostingProvider.privacyPolicyLabel}{' '} {texts.detailedPrivacyPolicy.contactText}

    -

    Betroffene Daten:

    +

    {texts.detailedPrivacyPolicy.contactDataLabels.affectedData}

      {texts.detailedPrivacyPolicy.contactDataCategories.affectedData.map((item: string) => (
    • {item}
    • ))}
    -

    Betroffene Personen: {texts.detailedPrivacyPolicy.contactDataCategories.affectedPersons}

    -

    Verarbeitungszweck: {texts.detailedPrivacyPolicy.contactDataCategories.processingPurpose}

    -

    Rechtsgrundlage: {texts.detailedPrivacyPolicy.contactDataCategories.legalBasis}

    +

    {texts.detailedPrivacyPolicy.contactDataLabels.affectedPersons} {texts.detailedPrivacyPolicy.contactDataCategories.affectedPersons}

    +

    {texts.detailedPrivacyPolicy.contactDataLabels.processingPurpose} {texts.detailedPrivacyPolicy.contactDataCategories.processingPurpose}

    +

    {texts.detailedPrivacyPolicy.contactDataLabels.legalBasis} {texts.detailedPrivacyPolicy.contactDataCategories.legalBasis}

    + {/* Online Appointment Booking (Nextcloud) */} +
    +

    {texts.detailedPrivacyPolicy.onlineAppointmentTitle}

    +

    {texts.detailedPrivacyPolicy.onlineAppointmentIntro}

    +

    {texts.detailedPrivacyPolicy.onlineAppointmentProvider}

    +

    {texts.detailedPrivacyPolicy.onlineAppointmentDataTitle}

    +
      + {texts.detailedPrivacyPolicy.onlineAppointmentData.map((item: string) => ( +
    • {item}
    • + ))} +
    +

    {texts.detailedPrivacyPolicy.onlineAppointmentPurpose}

    +

    {texts.detailedPrivacyPolicy.onlineAppointmentLegalBasis}

    +

    {texts.detailedPrivacyPolicy.onlineAppointmentRetention}

    +

    {texts.detailedPrivacyPolicy.onlineAppointmentThirdParty}

    +

    {texts.detailedPrivacyPolicy.onlineAppointmentServerLocation}

    +
    + {/* Security Measures */}

    {texts.detailedPrivacyPolicy.securityTitle}

    diff --git a/src/pages/LandingPage.tsx b/src/pages/LandingPage.tsx new file mode 100644 index 0000000..169b49a --- /dev/null +++ b/src/pages/LandingPage.tsx @@ -0,0 +1,46 @@ +import HeroSection from '../components/sections/HeroSection'; +import LandingAboutMeSection from '../components/landing/LandingAboutMeSection'; +import ReasonsSection from '../components/landing/ReasonsSection'; +import ExperienceSection from '../components/landing/ExperienceSection'; +import WinningsSection from '../components/landing/WinningsSection'; +import ProcessesSection from '../components/landing/ProcessesSection'; +import ProjectsSection from '../components/sections/ProjectsSection'; +import ReferencesSection from '../components/landing/ReferencesSection'; +import ContactSection from '../components/sections/ContactSection'; +import { usePageSeo } from '../hooks/usePageSeo'; +import { useLanguage } from '../contexts/LanguageContext'; + +export default function LandingPage() { + const { language, texts } = useLanguage(); + const t = texts.landingHero; + usePageSeo({ + title: language === 'de' + ? 'Sascha Bach | Freelance Softwareentwickler – Barrierefreie Webentwicklung' + : 'Sascha Bach | Freelance Software Developer – Accessible Web Development', + description: language === 'de' + ? 'Freelance Softwareentwickler in Deutschland spezialisiert auf barrierefreie Webentwicklung. Ich baue inklusive Websites konform zum BFSG mit React, TypeScript und modernen Frameworks.' + : 'Freelance software developer in Germany specializing in accessible web development. Building inclusive websites compliant with the Accessibility Act.', + canonical: `/${language}/`, + }); + + return ( + <> + + + + + + + + + + + ); +} diff --git a/src/pages/PrivacyPolicy.tsx b/src/pages/PrivacyPolicy.tsx index 43ba8fb..628563d 100644 --- a/src/pages/PrivacyPolicy.tsx +++ b/src/pages/PrivacyPolicy.tsx @@ -1,25 +1,16 @@ -import { useEffect } from 'react'; import { useLanguage } from '../contexts/LanguageContext'; +import { usePageSeo } from '../hooks/usePageSeo'; export default function PrivacyPolicy() { const { texts: allTexts } = useLanguage(); const texts = allTexts.privacyPolicy; - useEffect(() => { - // Prevent indexing of this page - const metaRobots = document.createElement('meta'); - metaRobots.name = 'robots'; - metaRobots.content = 'noindex, nofollow'; - document.head.appendChild(metaRobots); - - // Cleanup on unmount - return () => { - const existingMeta = document.querySelector('meta[name="robots"]'); - if (existingMeta) { - existingMeta.remove(); - } - }; - }, []); + usePageSeo({ + title: 'Privacy Policy | Sascha Bach', + description: 'Privacy policy for the website of Sascha Bach, freelance software developer.', + canonical: '/privacy-policy', + noIndex: true, + }); return (
    diff --git a/src/scss/App.scss b/src/scss/App.scss index 345151f..43e303b 100644 --- a/src/scss/App.scss +++ b/src/scss/App.scss @@ -9,8 +9,10 @@ // All sections imported through index @use 'sections'; -// Import Geist font from Google Fonts or local files -@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100;200;300;400;500;600;700;800;900&display=swap'); +// Component styles +@use 'components/back-to-top'; + +@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@600&family=Quicksand:wght@400;500&display=swap'); // CSS Reset - Add this * { @@ -19,27 +21,342 @@ box-sizing: border-box; } -// Standard Theme (Light) +// Standard Theme (Light) + design system tokens :root { @include t.theme-vars(t.$light-theme); + + // Spacing scale (multiples of 4px) + --space-1: 0.25rem; + --space-2: 0.5rem; + --space-3: 0.75rem; + --space-4: 1rem; + --space-5: 1.25rem; + --space-6: 1.5rem; + --space-8: 2rem; + --space-10: 2.5rem; + --space-12: 3rem; + --space-16: 4rem; + --space-20: 5rem; + --space-24: 6rem; + + // Typography scale + --font-size-xs: 0.75rem; + --font-size-sm: 0.875rem; + --font-size-base: 1rem; + --font-size-lg: 1.125rem; + --font-size-xl: 1.25rem; + --font-size-2xl: 1.5rem; + --font-size-3xl: 1.875rem; + --font-size-4xl: 2.25rem; + + // Line heights + --leading-tight: 1.2; + --leading-snug: 1.375; + --leading-normal: 1.5; + --leading-relaxed: 1.625; + --leading-loose: 1.75; + + // Letter spacing + --tracking-tight: -0.025em; + --tracking-normal: 0em; + --tracking-wide: 0.05em; + --tracking-wider: 0.1em; + + // Border radius + --radius-sm: 0.375rem; + --radius-md: 0.5rem; + --radius-lg: 0.75rem; + --radius-xl: 1rem; + + // Shadows (light) – brand-tinted + --shadow-xs: 0 1px 2px rgba(4, 44, 83, 0.05); + --shadow-sm: 0 2px 8px rgba(4, 44, 83, 0.08); + --shadow-md: 0 4px 16px rgba(4, 44, 83, 0.08); + --shadow-hover: 0 8px 24px rgba(4, 44, 83, 0.12); + + // Transitions + --transition-fast: 150ms ease; + --transition-base: 200ms ease; + --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1); + + // Brand accent & text-on-dark + --color-accent-text: #412402; + --color-accent-deco: #ef9f27; + --color-text-on-dark: #e6f1fb; + --font-headline: 'Comfortaa', sans-serif; + --font-body: 'Quicksand', sans-serif; + --contact-button-bg: #042c53; + --contact-button-text: #e6f1fb; + --contact-button-hover-bg: #0c447c; + + // Landing section backgrounds (light) – flat brand + --bg-reasons: #ffffff; + --bg-winnings: #f1efe8; + --bg-experience: #ffffff; + --bg-processes: #f1efe8; + --bg-references: #ffffff; + + // Reused section backgrounds (light) + --about-background: #ffffff; + --projects-background: #ffffff; + --contact-background: #f1efe8; + + // Tech section backgrounds (light) + --hero-background: #f1efe8; + --services-background: #f1efe8; + --skills-background: #ffffff; + --certifications-background: #f1efe8; + + // Card tokens (light) + --card-glass-bg: #ffffff; + --card-glass-border: rgba(4, 44, 83, 0.12); + + // Functional shadows + --shadow-glow: + 0 0 0 1px rgba(4, 44, 83, 0.1), 0 8px 24px rgba(4, 44, 83, 0.08); + --shadow-glow-hover: + 0 0 0 1px rgba(4, 44, 83, 0.2), 0 16px 48px rgba(4, 44, 83, 0.15); } -// Dark Theme aktiv, wenn `data-theme="dark"` am html oder body +// Dark theme + shadow overrides [data-theme='dark'] { @include t.theme-vars(t.$dark-theme); + + // Core colors + --color-primary: #e6f1fb; + --color-secondary: #b5d4f4; + --color-accent-text: #fac775; + --color-accent-deco: #ef9f27; + --color-background: #021829; + --color-surface: #042c53; + --color-text: #e6f1fb; + --color-text-muted: #b5d4f4; + --color-text-on-dark: #e6f1fb; + --color-border: rgba(230, 241, 251, 0.12); + --color-focus-ring: #ef9f27; + + // Section backgrounds + --hero-background: #021829; + --about-background: #042c53; + --services-background: #021829; + --skills-background: #042c53; + --certifications-background: #021829; + --projects-background: #042c53; + --contact-background: #021829; + --bg-reasons: #042c53; + --bg-winnings: #021829; + --bg-experience: #042c53; + --bg-processes: #021829; + --bg-references: #042c53; + + // Cards + shadows + --card-glass-bg: rgba(12, 68, 124, 0.5); + --card-glass-border: rgba(230, 241, 251, 0.1); + --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4); + --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3); + --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4); + --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5); + --shadow-glow: + 0 0 0 1px rgba(239, 159, 39, 0.15), 0 8px 24px rgba(0, 0, 0, 0.25); + --shadow-glow-hover: + 0 0 0 1px rgba(239, 159, 39, 0.3), 0 16px 48px rgba(0, 0, 0, 0.4); + + // Buttons + --contact-button-bg: #ef9f27; + --contact-button-text: #042c53; + --contact-button-hover-bg: #fac775; + + // Form inputs + --contact-input-bg: #042c53; + --contact-input-border: rgba(230, 241, 251, 0.2); + --contact-input-focus-ring: rgba(239, 159, 39, 0.3); + + // Stat cards + --stat-primary-bg: rgba(12, 68, 124, 0.4); + --stat-primary-value: #e6f1fb; + --stat-primary-label: #b5d4f4; + --stat-secondary-bg: rgba(12, 68, 124, 0.4); + --stat-secondary-value: #e6f1fb; + --stat-secondary-label: #b5d4f4; + --stat-tertiary-bg: rgba(12, 68, 124, 0.4); + --stat-tertiary-value: #e6f1fb; + --stat-tertiary-label: #b5d4f4; + --stat-quaternary-bg: rgba(12, 68, 124, 0.4); + --stat-quaternary-value: #e6f1fb; + --stat-quaternary-label: #b5d4f4; + + // Service cards + --service-card-primary-bg: rgba(12, 68, 124, 0.5); + --service-card-secondary-bg: rgba(4, 44, 83, 0.8); + --service-card-tertiary-bg: rgba(12, 68, 124, 0.5); + --service-card-quaternary-bg: rgba(4, 44, 83, 0.8); + --service-card-quinary-bg: rgba(12, 68, 124, 0.5); + --service-card-senary-bg: rgba(4, 44, 83, 0.8); + --service-icon-primary: #ef9f27; + --service-icon-secondary: #ef9f27; + --service-icon-tertiary: #ef9f27; + --service-icon-quaternary: #ef9f27; + --service-icon-quinary: #ef9f27; + --service-icon-senary: #ef9f27; + --service-title-primary: #e6f1fb; + --service-title-secondary: #e6f1fb; + --service-title-tertiary: #e6f1fb; + --service-title-quaternary: #e6f1fb; + --service-title-quinary: #e6f1fb; + --service-title-senary: #e6f1fb; + --service-description-primary: #b5d4f4; + --service-description-secondary: #b5d4f4; + --service-description-tertiary: #b5d4f4; + --service-description-quaternary: #b5d4f4; + --service-description-quinary: #b5d4f4; + --service-description-senary: #b5d4f4; + + // Skills + --skills-category-bg: rgba(12, 68, 124, 0.4); + --skills-category-border: rgba(230, 241, 251, 0.1); + --skills-skill-name-color: #e6f1fb; + --skills-skill-level-color: #b5d4f4; + --skills-skill-percentage-color: #b5d4f4; + --skills-progress-bg: rgba(230, 241, 251, 0.1); + --skills-category-bg-primary: rgba(12, 68, 124, 0.5); + --skills-category-bg-secondary: rgba(12, 68, 124, 0.5); + --skills-category-bg-tertiary: rgba(12, 68, 124, 0.5); + --skills-category-bg-quaternary: rgba(12, 68, 124, 0.5); + --skills-category-bg-quinary: rgba(12, 68, 124, 0.5); + --skills-category-bg-senary: rgba(12, 68, 124, 0.5); + --skills-progress-primary: #ef9f27; + --skills-progress-secondary: #ef9f27; + --skills-progress-tertiary: #ef9f27; + --skills-progress-quaternary: #ef9f27; + --skills-progress-quinary: #ef9f27; + --skills-progress-senary: #ef9f27; + + // Certifications + --certifications-card-background: #042c53; + --certifications-badge-background: rgba(239, 159, 39, 0.15); + --certifications-badge-border: rgba(239, 159, 39, 0.3); + --color-certifications-badge-text: #fac775; + + // Projects + --projects-card-background: #042c53; + --projects-card-border: rgba(239, 159, 39, 0.15); + --projects-button-primary-bg: #ef9f27; + --projects-button-primary-text: #042c53; + --projects-button-primary-border: rgba(239, 159, 39, 0.3); + --projects-button-primary-hover-bg: #fac775; + --projects-button-secondary-bg: #0c447c; + --projects-button-secondary-text: #e6f1fb; + --projects-button-secondary-border: rgba(230, 241, 251, 0.15); + --projects-button-secondary-hover-bg: #185fa5; + --projects-tech-badge-bg: rgba(12, 68, 124, 0.6); + --projects-tech-badge-text: #e6f1fb; + --projects-tech-badge-border: rgba(239, 159, 39, 0.2); + + // Contact + --contact-social-bg: #042c53; + --contact-social-text: #e6f1fb; + --contact-social-border: rgba(239, 159, 39, 0.3); + --contact-social-hover-bg: #0c447c; + --contact-social-hover-border: #ef9f27; + --contact-status-success-bg: rgba(4, 44, 83, 0.5); + --contact-status-success-border: #ef9f27; + --contact-status-success-text: #fac775; + + // Page backgrounds + --bg-primary: #021829; + --bg-secondary: #042c53; + --border-color: rgba(230, 241, 251, 0.12); + + // Skill badges + --skill-badge-primary-bg: rgba(12, 68, 124, 0.5); + --skill-badge-primary-text: #e6f1fb; + --skill-badge-secondary-bg: rgba(12, 68, 124, 0.5); + --skill-badge-secondary-text: #e6f1fb; + --skill-badge-tertiary-bg: rgba(12, 68, 124, 0.5); + --skill-badge-tertiary-text: #e6f1fb; + --skill-badge-quaternary-bg: rgba(65, 36, 2, 0.4); + --skill-badge-quaternary-text: #fac775; + + // Feature cards + --feature-card-primary-bg: rgba(12, 68, 124, 0.4); + --feature-card-secondary-bg: rgba(4, 44, 83, 0.6); + --feature-card-tertiary-bg: rgba(12, 68, 124, 0.4); + --feature-icon-primary: #ef9f27; + --feature-icon-secondary: #ef9f27; + --feature-icon-tertiary: #ef9f27; + --feature-title-primary: #e6f1fb; + --feature-title-secondary: #e6f1fb; + --feature-title-tertiary: #e6f1fb; + --feature-description-primary: #b5d4f4; + --feature-description-secondary: #b5d4f4; + --feature-description-tertiary: #b5d4f4; + + // Remove gradients + --gradient-primary: #ef9f27; +} + +// Dark mode: override hardcoded SASS-compiled colors on section headings +[data-theme='dark'] { + h1, + h2, + h3, + h4 { + color: #e6f1fb; + } + + .about-section__greeting { + color: #e6f1fb; + } + + .skills-section__category-title { + color: #e6f1fb; + } + + // Border-left accent colors + .reasons-section__item, + .references-section__item, + .experience-section__paragraph--outro, + .reasons-section__outro { + border-left-color: #ef9f27; + } + + .winnings-section__item, + .processes-section__item { + border-left-color: #b5d4f4; + } + + // Stat numbers in reasons section + .reasons-section__stat { + color: #ef9f27; + } + + // Navbar deepens in dark mode + .navbar { + background: #021829; + border-bottom: 1px solid rgba(230, 241, 251, 0.08); + } } body { - font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', - 'Roboto', sans-serif; + font-family: 'Quicksand', sans-serif; + font-weight: 400; + font-size: 1rem; background-color: var(--color-background); color: var(--color-text); - margin: 0; // Explicitly remove body margin - padding: 0; // Explicitly remove body padding + margin: 0; + padding: 0; +} + +h1, +h2, +h3, +h4 { + font-family: 'Comfortaa', sans-serif; + font-weight: 600; + color: var(--color-primary); } section { - min-height: 100vh; padding: 3rem 1rem; margin: 0; // Remove any section margins } diff --git a/src/scss/components/back-to-top.scss b/src/scss/components/back-to-top.scss new file mode 100644 index 0000000..ebdbaab --- /dev/null +++ b/src/scss/components/back-to-top.scss @@ -0,0 +1,63 @@ +@use '../variables' as *; +@use '../globals'; + +.back-to-top { + position: fixed; + bottom: 2rem; + right: 2rem; + width: 3rem; + height: 3rem; + border-radius: 50%; + background: var(--color-primary); + color: var(--color-text-on-dark); // #E6F1FB – white on dark navy + border: none; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); + transition: all 0.3s ease; + opacity: 0; + visibility: hidden; + transform: translateY(100px); + z-index: 999; + + &--visible { + opacity: 1; + visibility: visible; + transform: translateY(0); + } + + &:hover { + transform: translateY(-4px); + box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); + } + + &:focus { + outline: 2px solid var(--color-focus-ring); + outline-offset: 2px; + } + + &:active { + transform: translateY(-2px); + } + + &__icon { + width: 1.5rem; + height: 1.5rem; + } +} + +@media (max-width: 768px) { + .back-to-top { + bottom: 1rem; + right: 1rem; + width: 2.5rem; + height: 2.5rem; + + &__icon { + width: 1.25rem; + height: 1.25rem; + } + } +} diff --git a/src/scss/globals.scss b/src/scss/globals.scss index 35c618f..32e6d0b 100644 --- a/src/scss/globals.scss +++ b/src/scss/globals.scss @@ -5,21 +5,25 @@ // Global CSS custom properties for accessibility :root { - --color-primary: #2563eb; - --color-secondary: #60a5fa; - --color-focus-ring: #2563eb; - --color-text-aaa-light: #111827; - --color-text-aaa-dark: #ffffff; - --box-shadow-hover: rgba(0, 0, 0, 0.15); + --color-primary: #042c53; + --color-secondary: #0c447c; + --color-accent-text: #412402; + --color-accent-deco: #ef9f27; + --color-text-on-dark: #e6f1fb; + --color-focus-ring: #042c53; + --color-text-aaa-light: #1a1a1a; + --color-text-aaa-dark: #e6f1fb; + --box-shadow-hover: rgba(4, 44, 83, 0.15); + --font-headline: 'Comfortaa', sans-serif; + --font-body: 'Quicksand', sans-serif; + --contact-button-bg: #042c53; + --contact-button-text: #e6f1fb; + --contact-button-hover-bg: #0c447c; } -@media (prefers-color-scheme: dark) { - :root { - --color-primary: #60a5fa; - --color-secondary: #93c5fd; - --color-focus-ring: #60a5fa; - } -} +// Dark mode is controlled via [data-theme='dark'] attribute on . +// OS-level prefers-color-scheme is intentionally NOT used here to avoid +// --color-primary flipping to #E6F1FB, which breaks the always-dark navbar. // Screen Reader Only Classes - Central Definition .sr-only { @@ -59,18 +63,19 @@ top: -40px; left: 6px; background: var(--color-primary); - color: var(--color-text-aaa-dark); + color: #000000; padding: 8px; text-decoration: none; z-index: 9999; border-radius: 4px; - font-weight: 500; + font-weight: 600; transition: top 0.3s; &:focus { top: 6px; outline: 2px solid var(--color-focus-ring); outline-offset: 2px; + color: #000000; } } @@ -202,3 +207,21 @@ textarea, cursor: pointer; font: inherit; } + +// ── Scroll reveal animation ─────────────────────────────────────────────────── +// Add class `reveal-item` to any element you want to animate in on scroll. +// The hook useScrollReveal() adds `is-visible` when the element enters view. +// Use `--reveal-delay` CSS custom property for staggered children. +.reveal-item { + opacity: 0; + transform: translateY(28px); + transition: + opacity 0.55s ease, + transform 0.55s ease; + transition-delay: var(--reveal-delay, 0ms); + + &.is-visible { + opacity: 1; + transform: translateY(0); + } +} diff --git a/src/scss/language-toggle.scss b/src/scss/language-toggle.scss index f4f3009..ce5ffba 100644 --- a/src/scss/language-toggle.scss +++ b/src/scss/language-toggle.scss @@ -5,7 +5,7 @@ display: flex; gap: 0.25rem; background: transparent; - border: 1px solid var(--color-text-muted); + border: 1px solid rgba(230, 241, 251, 0.35); // light on always-dark navbar border-radius: $border-radius-sm; padding: 0.25rem; @@ -16,32 +16,32 @@ border: none; border-radius: 0.25rem; background: transparent; - color: var(--color-text); + color: var(--color-text-on-dark); // #E6F1FB – 10:1 on #042C53 navbar cursor: pointer; transition: all 0.2s ease; - @extend %hover-lift; &:hover { - color: var(--color-text); + background: rgba(230, 241, 251, 0.1); + color: var(--color-text-on-dark); } &:focus { - outline: 2px solid var(--color-primary); + outline: 2px solid var(--color-accent-deco); // ochre – always visible on dark outline-offset: 2px; } &:active { - box-shadow: 0 2px 4px var(--box-shadow-active); transform: translateY(0); } &--active { - background: var(--color-primary); - color: var(--color-background); + background: var(--color-text-on-dark); // #E6F1FB bg → 10:1 contrast + color: #042c53; // night-blue text on light bg → AAA + font-weight: 600; &:hover { - background: var(--color-primary); - color: var(--color-background); + background: var(--color-text-on-dark); + color: #042c53; } } } diff --git a/src/scss/layout/footer.scss b/src/scss/layout/footer.scss index 7cc16fb..60d5c20 100644 --- a/src/scss/layout/footer.scss +++ b/src/scss/layout/footer.scss @@ -2,18 +2,17 @@ @use '../variables'; .footer { - background-color: var(--color-background-muted); - margin-top: auto; // Push footer to bottom if using flexbox layout + background-color: var(--color-surface); + border-top: 1px solid var(--color-border); + margin-top: auto; &__container { margin: 0 auto; - padding: 0 1rem; + padding: 2rem 1rem 1.5rem; } &__separator { - height: 1px; - background-color: var(--color-border); - margin-bottom: 2rem; + display: none; // border-top on .footer replaces this } &__content { @@ -38,7 +37,7 @@ } &__link { - color: var(--color-text-muted); + color: var(--color-text); font-size: 0.875rem; text-decoration: none; padding: 0.5rem; @@ -46,21 +45,22 @@ transition: all 0.2s ease-in-out; &:hover { - color: var(--color-text); - background-color: var(--color-background-hover); + color: var(--color-primary); + text-decoration: underline; } &:focus { - outline: 2px solid var(--color-primary); + outline: 2px solid var(--color-focus-ring); outline-offset: 2px; } } &__copyright { - color: var(--color-text-muted); + color: var(--color-text); font-size: 0.875rem; text-align: center; margin: 0; + opacity: 0.7; } &__social { @@ -75,20 +75,22 @@ width: 2.5rem; height: 2.5rem; background: transparent; - border: none; + border: 1px solid var(--color-border); border-radius: 0.375rem; - color: var(--color-text-muted); + color: var(--color-text); cursor: pointer; transition: all 0.2s ease-in-out; + text-decoration: none; &:hover { - background-color: var(--color-background-hover); - color: var(--color-text); + background-color: var(--color-primary); + color: var(--color-text-on-dark); + border-color: var(--color-primary); transform: translateY(-1px); } &:focus { - outline: 2px solid var(--color-primary); + outline: 2px solid var(--color-focus-ring); outline-offset: 2px; } diff --git a/src/scss/layout/topbar.scss b/src/scss/layout/topbar.scss index a7a7c98..fb3ee1d 100644 --- a/src/scss/layout/topbar.scss +++ b/src/scss/layout/topbar.scss @@ -4,33 +4,74 @@ @include globals.flex-center(); justify-content: space-between; padding: 1em; - background: var(--color-background); - color: var(--color-text); + background: #042c53; // always night-blue – independent of --color-primary cascade + color: var(--color-text-on-dark); height: 65px; + position: sticky; + top: 0; + z-index: 100; + box-shadow: 0 2px 8px rgba(4, 44, 83, 0.2); &__name { font-weight: bold; font-size: 1.25rem; - color: var(--color-text); + color: var(--color-text-on-dark); text-decoration: none; } + &__logo { + height: 65px; + max-height: calc(65px - 0.5rem); // stay within navbar height minus padding + width: auto; + display: block; + + @media (max-width: 768px) { + height: 48px; + } + } + &__container { display: flex; align-items: center; - gap: 0.5rem; + // Fluid gap: 0.25rem at 1050px → 0.5rem at 1300px + gap: clamp(0.25rem, -0.8rem + 1.6vw, 0.5rem); &__button { @extend %button-reset; @extend %hover-lift; - padding: 0.6rem 1.2rem; + // Fluid padding: 0.5rem 0.5rem at 1050px → 0.6rem 1.2rem at 1300px + padding: clamp(0.5rem, 0.08rem + 0.64vw, 0.6rem) + clamp(0.5rem, -2.44rem + 4.48vw, 1.2rem); border-radius: 8px; - transition: box-shadow 0.2s ease, transform 0.2s ease; + color: var(--color-text-on-dark); + white-space: nowrap; + // Fluid font-size: 0.85rem at 1050px → 1rem at 1300px + font-size: clamp(0.85rem, 0.22rem + 0.96vw, 1rem); + transition: + color 0.2s ease, + box-shadow 0.2s ease, + transform 0.2s ease; + + &:hover { + color: var(--color-accent-deco); + box-shadow: none; + transform: none; + } &:active { - box-shadow: 0 2px 4px var(--box-shadow-active); + box-shadow: none; transform: translateY(0); } + + &--active { + color: var( + --color-text-on-dark + ); // #E6F1FB – 10:1 contrast, same as default + box-shadow: none; + background: rgba(230, 241, 251, 0.12); + border-bottom: 2px solid var(--color-accent-deco); // ochre underline as accent indicator + border-radius: 8px 8px 4px 4px; + } } } @@ -49,14 +90,14 @@ display: block; height: 3px; width: 100%; - background-color: var(--color-text); + background-color: var(--color-text-on-dark); // light on dark navy bg border-radius: 2px; transition: all 0.3s ease; margin: 1px 0; } &:hover &__item { - background-color: var(--color-primary); + background-color: var(--color-accent-deco); // ochre accent on hover } &.active { @@ -74,23 +115,56 @@ /* Mobile Menu Dropdown */ .navbar__mobile-menu { - @include globals.flex-center(); position: absolute; + top: 65px; right: 0; background: var(--color-background); + color: var(--color-text); border: 1px solid var(--color-primary); border-radius: 8px; - padding: 0.5em; - gap: 0.5em; + padding: 0; box-shadow: 0 4px 12px var(--box-shadow-hover); z-index: 10; + min-width: 200px; - button { + &__header { + display: flex; + justify-content: flex-end; + padding: 0.5em; + border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, 0.1)); + } + + &__close { @extend %button-reset; - padding: 0.5em 1em; - text-align: right; + font-size: 1.5rem; + width: 30px; + height: 30px; + display: flex; + align-items: center; + justify-content: center; border-radius: 4px; transition: background 0.2s; + color: var(--color-text); + + &:hover { + background: var(--box-shadow-active); + } + } + + &__items { + display: flex; + flex-direction: column; + gap: 0; + padding: 0.5em; + } + + &__item { + @extend %button-reset; + padding: 0.75em 1em; + text-align: left; + border-radius: 4px; + transition: background 0.2s; + width: 100%; &:hover { background: var(--box-shadow-active); @@ -105,8 +179,22 @@ } } +// Landing page has 7 menu items — switch to burger at same breakpoint as regular nav +@media (max-width: 1049px) { + .navbar--landing .navbar__container__button { + display: none; + } +} + @include globals.desktop-only { .navbar__burger-button { display: none; } } + +// Keep burger visible for landing page up to 1049px +@media (min-width: 769px) and (max-width: 1049px) { + .navbar--landing .navbar__burger-button { + display: flex; + } +} diff --git a/src/scss/mixins.scss b/src/scss/mixins.scss index b74e3ef..7ac540b 100644 --- a/src/scss/mixins.scss +++ b/src/scss/mixins.scss @@ -11,7 +11,7 @@ cursor: pointer; transition: all 0.3s ease; border-radius: $border-radius-sm; - + &:focus { outline: none; box-shadow: var(--box-shadow-sm); @@ -21,7 +21,7 @@ // Card hover effect mixin @mixin card-hover { transition: all 0.3s ease; - + &:hover { transform: translateY(-2px); box-shadow: var(--box-shadow-lg); @@ -47,14 +47,14 @@ // Aspect ratio mixin @mixin aspect-ratio($ratio: 1) { aspect-ratio: $ratio; - + @supports not (aspect-ratio: 1) { &::before { content: ''; float: left; padding-top: calc(100% / #{$ratio}); } - + &::after { content: ''; display: table; @@ -65,13 +65,13 @@ // Responsive breakpoint mixins @mixin mobile-only { - @media (max-width: $mobile-breakpoint) { + @media (max-width: $mobile-breakpoint) { @content; } } @mixin desktop-only { - @media (min-width: $desktop-breakpoint) { + @media (min-width: $desktop-breakpoint) { @content; } } @@ -96,7 +96,7 @@ font-size: 1.875rem; font-weight: bold; margin-bottom: 1rem; - color: var(--color-text); + color: $color-heading; @include desktop-only { font-size: 2.25rem; @@ -108,4 +108,4 @@ color: var(--color-text-muted); max-width: 48rem; margin: 0 auto; -} \ No newline at end of file +} diff --git a/src/scss/sections/_index.scss b/src/scss/sections/_index.scss index c0567cd..76e7bfe 100644 --- a/src/scss/sections/_index.scss +++ b/src/scss/sections/_index.scss @@ -1,6 +1,11 @@ // Section imports - organized and easy to manage @forward 'hero-section'; @forward 'about-section'; +@forward 'reasons-section'; +@forward 'experience-section'; +@forward 'winnings-section'; +@forward 'processes-section'; +@forward 'references-section'; @forward 'services-section'; @forward 'skills-section'; @forward 'certifications-section'; diff --git a/src/scss/sections/about-section.scss b/src/scss/sections/about-section.scss index c06c4d8..95514a1 100644 --- a/src/scss/sections/about-section.scss +++ b/src/scss/sections/about-section.scss @@ -4,6 +4,23 @@ .about-section { background: var(--about-background); + position: relative; + + &::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + height: 2px; + background: linear-gradient( + 90deg, + transparent 0%, + var(--color-primary) 30%, + var(--color-secondary) 70%, + transparent 100% + ); + } &__container { @include section-container; @@ -15,6 +32,8 @@ &__title { @include section-title; + font-size: clamp(2rem, 5vw, 2.75rem); + font-weight: 800; } &__subtitle { @@ -55,6 +74,50 @@ background: var(--gradient-image-overlay); } + &__pixel-bg { + position: absolute; + inset: 0 0 0 -35px; + background-color: #dbeafe; + opacity: 1; + transition: opacity 1.2s ease-in-out; + will-change: opacity; + pointer-events: none; + + [data-theme='dark'] & { + background-color: #1e3a8a; + } + + &--fade { + opacity: 0; + } + + @media (prefers-reduced-motion: reduce) { + display: none; + } + } + + &__pixel-overlay { + position: absolute; + inset: 0 0 0 -35px; + width: calc(100% + 35px); + height: 100%; + object-fit: cover; + object-position: calc(30%) 50%; + border: 4px solid var(--color-background); + opacity: 1; + transition: opacity 1.2s ease-in-out; + will-change: opacity; + pointer-events: none; + + &--fade { + opacity: 0; + } + + @media (prefers-reduced-motion: reduce) { + display: none; + } + } + &__bio-section { flex: 1; text-align: center; @@ -77,7 +140,7 @@ font-size: 1.5rem; font-weight: bold; margin-bottom: 1rem; - color: var(--about-greeting-color); + color: $color-heading; } &__bio-text { @@ -113,8 +176,8 @@ transition: $transition-base; &:hover { - transform: translateY(-1px); - box-shadow: 0 4px 12px var(--box-shadow-hover); + transform: translateY(-2px) scale(1.05); + box-shadow: var(--shadow-glow); } &--primary { @@ -161,14 +224,14 @@ border: none; border-radius: $card-border-radius-sm; box-shadow: $shadow-card-lg; - transition: $transition-base; + transition: var(--transition-slow); overflow: hidden; padding: 0; position: relative; &:hover { - box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); - transform: translateY(-2px); + box-shadow: var(--shadow-glow-hover); + transform: translateY(-4px) scale(1.02); } // Enhanced focus state for accessibility diff --git a/src/scss/sections/certifications-section.scss b/src/scss/sections/certifications-section.scss index 62c0863..09d9c50 100644 --- a/src/scss/sections/certifications-section.scss +++ b/src/scss/sections/certifications-section.scss @@ -4,6 +4,23 @@ .certifications-section { background: var(--certifications-background); + position: relative; + + &::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + height: 2px; + background: linear-gradient( + 90deg, + transparent 0%, + var(--color-primary) 30%, + var(--color-secondary) 70%, + transparent 100% + ); + } &__container { @include section-container; @@ -15,6 +32,8 @@ &__title { @include section-title; + font-size: clamp(2rem, 5vw, 2.75rem); + font-weight: 800; } &__subtitle { @@ -41,8 +60,10 @@ border-radius: $card-border-radius-md; box-shadow: var(--certifications-card-shadow); background: var(--certifications-card-background); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); padding: 1.5rem 1rem; - transition: $transition-base; + transition: var(--transition-slow); position: relative; overflow: hidden; display: flex; @@ -63,8 +84,8 @@ } &:hover { - transform: translateY(-0.25rem); - box-shadow: var(--certifications-card-shadow-hover); + transform: translateY(-4px) scale(1.02); + box-shadow: var(--shadow-glow-hover); &::before { opacity: 1; @@ -102,7 +123,7 @@ &__card-title { font-size: 1.125rem; font-weight: 600; - color: var(--color-text); + color: $color-heading; margin-bottom: 0.5rem; line-height: 1.4; } @@ -145,11 +166,4 @@ font-size: 1rem; } } - - // Reduce card height on larger screens - @media (min-width: 1200px) { - &__card { - height: 80%; - } - } } diff --git a/src/scss/sections/contact-section.scss b/src/scss/sections/contact-section.scss index 9e040e5..507fb4b 100644 --- a/src/scss/sections/contact-section.scss +++ b/src/scss/sections/contact-section.scss @@ -4,6 +4,23 @@ .contact-section { background: var(--contact-background); + position: relative; + + &::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + height: 2px; + background: linear-gradient( + 90deg, + transparent 0%, + var(--color-primary) 30%, + var(--color-secondary) 70%, + transparent 100% + ); + } &__container { @include section-container; @@ -15,6 +32,8 @@ &__title { @include section-title; + font-size: clamp(2rem, 5vw, 2.75rem); + font-weight: 800; } &__subtitle { @@ -66,8 +85,10 @@ &__email-icon { width: 2rem; height: 2rem; - color: var(--primary-color); - background: rgba(147, 51, 234, 0.1); + color: var( + --color-primary + ); // #042C53 light / #E6F1FB dark – high contrast in both + background: rgba(4, 44, 83, 0.08); border-radius: 0.75rem; padding: 0.5rem; flex-shrink: 0; @@ -76,7 +97,7 @@ &__email-title { font-size: 1.5rem; font-weight: 700; - color: var(--color-text); + color: $color-heading; margin-bottom: 0.75rem; } @@ -84,7 +105,51 @@ color: var(--color-text-muted); font-size: 1rem; line-height: 1.6; - margin-bottom: 2rem; + margin-bottom: 1.5rem; + } + + &__appointment-hint { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 0.5rem; + padding: 0.75rem 1rem; + margin-bottom: 1.5rem; + background: var(--bg-secondary); + border: 1px solid var(--border-color); + border-radius: 0.75rem; + font-size: 0.9rem; + } + + &__appointment-icon { + width: 1.125rem; + height: 1.125rem; + color: var(--color-primary); + flex-shrink: 0; + } + + &__appointment-text { + color: var(--color-text-muted); + } + + &__appointment-link { + color: var(--color-primary); + font-weight: 500; + text-decoration: underline; + text-decoration-color: transparent; + text-underline-offset: 3px; + transition: text-decoration-color var(--transition-fast); + white-space: nowrap; + + &:hover { + text-decoration-color: var(--color-primary); + } + + &:focus { + outline: 2px solid var(--color-focus-ring, #2563eb); + outline-offset: 2px; + border-radius: 2px; + } } // Social Card - positioned below connect card @@ -162,7 +227,11 @@ &__status-text { font-size: 0.875rem; font-weight: 500; - color: #22c55e; + color: #065f46; // dark emerald – 7.4:1 on white; light-mode accessible + + [data-theme='dark'] & { + color: #34d399; // light mint – high contrast on dark bg + } } &__quick-facts { @@ -236,6 +305,26 @@ font-size: 0.875rem; } + &__detail-link { + color: var(--color-primary); + font-size: 0.875rem; + font-weight: 500; + text-decoration: underline; + text-decoration-color: transparent; + text-underline-offset: 3px; + transition: text-decoration-color var(--transition-fast); + + &:hover { + text-decoration-color: var(--color-primary); + } + + &:focus { + outline: 2px solid var(--color-focus-ring, #2563eb); + outline-offset: 2px; + border-radius: 2px; + } + } + &__social { display: flex; gap: 1rem; @@ -268,17 +357,10 @@ outline-offset: 2px; } - // Brand-specific icon colors with better contrast - &--email .contact-section__social-icon { - color: var(--social-icon-email, #2563eb); // Use theme variable - } - - &--github .contact-section__social-icon { - color: var(--social-icon-github, #1f2937); // Use theme variable - } - - &--linkedin .contact-section__social-icon { - color: var(--social-icon-linkedin, #0d67b5); // Use theme variable + // Icons inherit color from parent button's var(--contact-social-text) + // which is #042C53 (light) / #E6F1FB (dark) – both high contrast + .contact-section__social-icon { + color: currentColor; } } @@ -474,12 +556,14 @@ border: 1px solid var(--form-border); padding: 2rem; text-align: center; - box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), + box-shadow: + 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); transition: all 0.3s ease; &:hover { - box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), + box-shadow: + 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); transform: translateY(-2px); } @@ -493,7 +577,7 @@ &__email-card-icon { width: 3rem; height: 3rem; - color: var(--primary-color); + color: var(--color-primary); // #042C53 light / #E6F1FB dark – high contrast margin: 0 auto 1rem; display: block; } @@ -514,37 +598,19 @@ margin: var(--card-padding-sm) 0; text-decoration: none; color: var(--contact-button-text); - box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.25), - 0 2px 4px -1px rgba(0, 0, 0, 0.06); + box-shadow: none; width: 100%; position: relative; overflow: hidden; &::before { - content: ''; - position: absolute; - top: 0; - left: -100%; - width: 100%; - height: 100%; - background: linear-gradient( - 90deg, - transparent, - rgba(255, 255, 255, 0.2), - transparent - ); - transition: left 0.5s ease; + display: none; } &:hover { background: var(--contact-button-hover-bg); transform: translateY(-2px); - box-shadow: 0 8px 25px 0 rgba(37, 99, 235, 0.35), - 0 4px 6px -2px rgba(0, 0, 0, 0.1); - - &::before { - left: 100%; - } + box-shadow: none; } &:active { @@ -574,7 +640,7 @@ line-height: 1.5; strong { - color: var(--primary-color); + color: var(--color-primary); font-weight: 600; } } @@ -666,6 +732,99 @@ } } +// ── Dark mode explicit overrides ───────────────────────────────────────────── +// CSS vars can silently fall back to light values in certain cascade scenarios. +// These scoped rules guarantee correct dark appearance regardless. +[data-theme='dark'] { + .contact-section { + // Card / form backgrounds + &__connect-card, + &__social-card, + &__info-card, + &__email-card, + &__form-card { + background: #042c53; + border-color: rgba(230, 241, 251, 0.12); + } + + // Email button – ochre fill, navy text + &__email-button { + background: #ef9f27; + color: #042c53; + + &:hover { + background: #fac775; + color: #042c53; + } + } + + // Form submit button + &__form-button { + background: #ef9f27; + color: #042c53; + + &:hover:not(:disabled) { + background: #fac775; + } + } + + // Social list icons (Globe, Linkedin) and links + &__social-icon { + color: #e6f1fb; + } + + &__detail-item { + color: #e6f1fb; + } + + &__detail-link { + color: #e6f1fb; + + &:hover { + text-decoration-color: #e6f1fb; + } + } + + // Appointment hint block + &__appointment-hint { + background: rgba(12, 68, 124, 0.5); + border-color: rgba(230, 241, 251, 0.12); + } + + &__appointment-icon, + &__appointment-link, + &__appointment-text { + color: #e6f1fb; + } + + // Email icon in header + &__email-icon { + color: #ef9f27; + background: rgba(239, 159, 39, 0.15); + } + + // Titles within cards (compiled from $color-heading) + &__email-title, + &__connect-title, + &__social-title, + &__form-title { + color: #e6f1fb; + } + + // Inputs + &__form-input, + &__form-textarea { + background: #021829; + color: #e6f1fb; + border-color: rgba(230, 241, 251, 0.2); + + &::placeholder { + color: #b5d4f4; + } + } + } +} + // High contrast mode support @media (prefers-contrast: high) { .contact-section__social-button { diff --git a/src/scss/sections/experience-section.scss b/src/scss/sections/experience-section.scss new file mode 100644 index 0000000..1ce35b7 --- /dev/null +++ b/src/scss/sections/experience-section.scss @@ -0,0 +1,75 @@ +@use '../variables' as *; + +.experience-section { + padding-block: var(--space-20); + padding-inline: var(--space-4); + background: var(--bg-experience); + position: relative; + + &::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + height: 2px; + background: linear-gradient( + 90deg, + transparent 0%, + var(--color-primary) 30%, + var(--color-secondary) 70%, + transparent 100% + ); + } + + @media (max-width: 768px) { + padding-block: var(--space-12); + } + + &__container { + max-width: 720px; + margin: 0 auto; + display: flex; + flex-direction: column; + gap: var(--space-8); + } + + // ── Title ───────────────────────────────────────────────────── + &__title { + font-size: clamp(2rem, 5vw, var(--font-size-4xl)); + font-weight: 800; + letter-spacing: var(--tracking-tight); + line-height: var(--leading-tight); + color: $color-heading; + } + + // ── Body ────────────────────────────────────────────────────── + &__body { + display: flex; + flex-direction: column; + gap: var(--space-5); + } + + &__paragraph { + font-size: var(--font-size-base); + line-height: var(--leading-loose); + color: var(--color-text); + margin: 0; + + // ── Outro (last paragraph) ─────────────────────────────── + &--outro { + font-size: var(--font-size-lg); + font-weight: 700; + color: var(--color-text); + line-height: var(--leading-snug); + background: var(--card-glass-bg); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); + padding: var(--space-5) var(--space-6); + border-radius: var(--radius-xl); + border: 1px solid var(--card-glass-border); + border-left: 4px solid var(--color-secondary); + box-shadow: var(--shadow-glow); + } + } +} diff --git a/src/scss/sections/hero-section.scss b/src/scss/sections/hero-section.scss index 2d30718..9a193cc 100644 --- a/src/scss/sections/hero-section.scss +++ b/src/scss/sections/hero-section.scss @@ -17,40 +17,112 @@ } } +@keyframes hero-fade-up { + from { + opacity: 0; + transform: translate3d(0, 20px, 0); + } + to { + opacity: 1; + transform: translate3d(0, 0, 0); + } +} + +@keyframes hero-bubble-before { + 0% { transform: scale(0.6) translate3d(0, 16px, 0); opacity: 0; } + 40% { transform: scale(1.1) translate3d(0, -5px, 0); opacity: 1; } + 65% { transform: scale(0.96) translate3d(0, 3px, 0); } + 82% { transform: scale(1.03) translate3d(0, -1px, 0); } + 100% { transform: scale(1) translate3d(0, 0, 0); opacity: 1; } +} + +@keyframes hero-bubble-after { + 0% { transform: scale(0.5) translate3d(0, -12px, 0); opacity: 0; } + 45% { transform: scale(1.14) translate3d(0, 4px, 0); opacity: 1; } + 68% { transform: scale(0.94) translate3d(0, -2px, 0); } + 84% { transform: scale(1.04) translate3d(0, 1px, 0); } + 100% { transform: scale(1) translate3d(0, 0, 0); opacity: 1; } +} + .hero-section { @include flex-center; min-height: 100vh; background: var(--hero-background); + position: relative; + + // Mid-Century geometric circle decoration + &::before { + content: ''; + position: absolute; + top: -80px; + right: -80px; + width: 300px; + height: 300px; + border-radius: 50%; + border: 2px solid rgba(12, 68, 124, 0.15); + pointer-events: none; + will-change: transform, opacity; + } + + &::after { + content: ''; + position: absolute; + bottom: 40px; + left: -60px; + width: 180px; + height: 180px; + border-radius: 50%; + background: rgba(239, 159, 39, 0.08); + pointer-events: none; + will-change: transform, opacity; + } + + [data-theme='dark'] & { + &::before { + border-color: rgba(230, 241, 251, 0.1); + } + + &::after { + background: rgba(239, 159, 39, 0.05); + } + } &__container { - max-width: 800px; + max-width: 900px; width: 100%; text-align: center; @include flex-center; flex-direction: column; gap: $spacing-xl; + position: relative; + z-index: 1; } &__title { - font-size: 3rem; - font-weight: bold; + font-size: clamp(2.5rem, 7vw, 5rem); + font-weight: 900; margin: 0; - @include gradient-text(var(--gradient-text)); + letter-spacing: -0.03em; + line-height: 1.1; + color: $color-heading; + will-change: transform, opacity; } &__description { - font-size: 1.2rem; - line-height: 1.6; + font-size: 1.25rem; + line-height: 1.65; color: var(--color-text-muted); max-width: 600px; margin-left: auto; margin-right: auto; + will-change: transform, opacity; } &__buttons { @include flex-center; gap: $spacing-lg; flex-wrap: wrap; + will-change: transform, opacity; } &__button { @@ -58,27 +130,31 @@ &--primary, &--tertiary { - background: var(--gradient-primary); - color: var(--color-background); + background: var(--color-primary); + color: var(--color-text-on-dark); + font-family: var(--font-headline); + font-weight: 600; + border-radius: 8px; &:hover { + background: var(--color-secondary); + box-shadow: none; + filter: none; transform: translateY(-1px); - box-shadow: var(--box-shadow-sm); - filter: brightness(1.1); } } &--secondary { background: transparent; - color: var(--color-text); - border: 2px solid $color-primary; + color: var(--color-primary); + border: 2px solid var(--color-primary); padding: calc(#{$spacing-sm} - 2px) $spacing-xl; &:hover { - background: $color-primary; - color: var(--color-background); + background: var(--color-primary); + color: var(--color-text-on-dark); transform: translateY(-1px); - box-shadow: var(--box-shadow-sm); + box-shadow: none; } } } @@ -104,6 +180,7 @@ text-align: center; padding: $spacing-md; border-radius: $border-radius-md; + will-change: transform, opacity; &--1 { background: var(--stat-primary-bg); @@ -187,3 +264,37 @@ } } } + +// Animations fire only after the page has fully loaded (--loaded class added via JS) +@media (prefers-reduced-motion: no-preference) { + .hero-section--loaded { + &::before { + animation: hero-bubble-before 4s cubic-bezier(0.34, 1.2, 0.64, 1) both 0.2s; + } + + &::after { + animation: hero-bubble-after 4s cubic-bezier(0.34, 1.2, 0.64, 1) both 0.7s; + } + + .hero-section__title { + animation: hero-fade-up 0.6s ease-out both 0.2s; + } + + .hero-section__description { + animation: hero-fade-up 0.6s ease-out both 0.35s; + } + + .hero-section__buttons { + animation: hero-fade-up 0.6s ease-out both 0.5s; + } + + .hero-section__stat-item { + animation: hero-fade-up 0.7s ease-out both; + + &--1 { animation-delay: 0.7s; } + &--2 { animation-delay: 0.85s; } + &--3 { animation-delay: 1s; } + &--4 { animation-delay: 1.15s; } + } + } +} diff --git a/src/scss/sections/imprint-page.scss b/src/scss/sections/imprint-page.scss index 204bac8..2a22af4 100644 --- a/src/scss/sections/imprint-page.scss +++ b/src/scss/sections/imprint-page.scss @@ -23,7 +23,7 @@ &__title { font-size: 2.5rem; font-weight: bold; - color: var(--color-text); + color: globals.$color-heading; margin-bottom: 0.5rem; @include globals.desktop-only { @@ -52,7 +52,7 @@ &__section-title { font-size: 1.5rem; font-weight: 600; - color: var(--color-text); + color: globals.$color-heading; margin-bottom: 1.5rem; border-bottom: 2px solid var(--color-primary); padding-bottom: 0.5rem; @@ -69,7 +69,7 @@ &__subsection-title { font-size: 1.25rem; font-weight: 600; - color: var(--color-text); + color: globals.$color-heading; margin-bottom: 1rem; } @@ -120,7 +120,7 @@ &__privacy-subtitle { font-size: 1.375rem; font-weight: 600; - color: var(--color-text); + color: globals.$color-heading; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); @@ -137,7 +137,6 @@ line-height: 1.7; color: var(--color-text-muted); margin-bottom: 1rem; - text-align: justify; &:last-child { margin-bottom: 0; @@ -150,7 +149,7 @@ margin-bottom: 1rem; padding: 1rem; background: var(--bg-primary); - border-left: 4px solid var(--color-primary); + border-left: 4px solid var(--color-secondary); border-radius: 0 0.5rem 0.5rem 0; font-weight: 500; text-decoration: underline; diff --git a/src/scss/sections/landing-hero-section.scss b/src/scss/sections/landing-hero-section.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/scss/sections/processes-section.scss b/src/scss/sections/processes-section.scss new file mode 100644 index 0000000..e9b4a2c --- /dev/null +++ b/src/scss/sections/processes-section.scss @@ -0,0 +1,106 @@ +@use '../variables' as *; + +.processes-section { + padding-block: var(--space-20); + padding-inline: var(--space-4); + background: var(--bg-processes); + position: relative; + + &::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + height: 2px; + background: linear-gradient( + 90deg, + transparent 0%, + var(--color-secondary) 30%, + var(--color-primary) 70%, + transparent 100% + ); + } + + @media (max-width: 768px) { + padding-block: var(--space-12); + } + + &__container { + max-width: 720px; + margin: 0 auto; + display: flex; + flex-direction: column; + gap: var(--space-8); + } + + // ── Title ───────────────────────────────────────────────────── + &__title { + font-size: clamp(2rem, 5vw, var(--font-size-4xl)); + font-weight: 800; + letter-spacing: var(--tracking-tight); + line-height: var(--leading-tight); + color: $color-heading; + } + + // ── Intro line ──────────────────────────────────────────────── + &__intro { + font-size: var(--font-size-lg); + font-weight: 600; + color: var(--color-text); + line-height: var(--leading-normal); + margin-top: calc(var(--space-4) * -1); + } + + // ── List ────────────────────────────────────────────────────── + &__list { + list-style: none; + padding: 0; + margin: 0; + display: flex; + flex-direction: column; + gap: var(--space-3); + } + + &__item { + background: var(--card-glass-bg); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); + border: 1px solid var(--card-glass-border); + border-left: 3px solid var(--color-secondary); + border-radius: var(--radius-lg); + padding: var(--space-4) var(--space-5); + box-shadow: var(--shadow-sm); + transition: + box-shadow var(--transition-slow), + transform var(--transition-slow); + + &:hover { + box-shadow: var(--shadow-glow-hover); + transform: translateY(-3px) scale(1.01); + } + } + + &__text { + font-size: var(--font-size-base); + line-height: var(--leading-loose); + color: var(--color-text); + margin: 0; + } + + // ── Outro ───────────────────────────────────────────────────── + &__outro { + font-size: var(--font-size-lg); + font-weight: 700; + color: var(--color-text); + line-height: var(--leading-snug); + background: var(--card-glass-bg); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); + padding: var(--space-5) var(--space-6); + border-radius: var(--radius-xl); + border: 1px solid var(--card-glass-border); + border-left: 4px solid var(--color-secondary); + box-shadow: var(--shadow-glow); + } +} diff --git a/src/scss/sections/projects-section.scss b/src/scss/sections/projects-section.scss index f4c86b0..68f9203 100644 --- a/src/scss/sections/projects-section.scss +++ b/src/scss/sections/projects-section.scss @@ -4,6 +4,23 @@ .projects-section { background: var(--projects-background); + position: relative; + + &::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + height: 2px; + background: linear-gradient( + 90deg, + transparent 0%, + var(--color-secondary) 30%, + var(--color-primary) 70%, + transparent 100% + ); + } &__container { @include section-container; @@ -15,6 +32,8 @@ &__title { @include section-title; + font-size: clamp(2rem, 5vw, 2.75rem); + font-weight: 800; } &__subtitle { @@ -221,7 +240,7 @@ &__card-title { font-size: 1.125rem; font-weight: 600; - color: var(--color-text); + color: $color-heading; margin-bottom: 0.5rem; line-height: 1.4; } @@ -446,6 +465,16 @@ } } +// Responsive layout for screens smaller than 1050px +@media (max-width: 1050px) { + .projects-section { + &__actions { + flex-direction: column; + gap: 0.5rem; + } + } +} + // Dark theme adjustments for help section: @media (prefers-color-scheme: dark) { .projects-section { diff --git a/src/scss/sections/reasons-section.scss b/src/scss/sections/reasons-section.scss new file mode 100644 index 0000000..4b5d5b0 --- /dev/null +++ b/src/scss/sections/reasons-section.scss @@ -0,0 +1,139 @@ +@use '../variables' as *; + +.reasons-section { + padding-block: var(--space-20); + padding-inline: var(--space-4); + background: var(--bg-reasons); + position: relative; + + &::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + height: 2px; + background: linear-gradient( + 90deg, + transparent 0%, + var(--color-primary) 30%, + var(--color-secondary) 70%, + transparent 100% + ); + } + + @media (max-width: 768px) { + padding-block: var(--space-12); + } + + &__container { + max-width: 720px; + margin: 0 auto; + display: flex; + flex-direction: column; + gap: var(--space-8); + } + + // ── Title ───────────────────────────────────────────────────── + &__title { + font-size: clamp(2rem, 5vw, var(--font-size-4xl)); + font-weight: 800; + letter-spacing: var(--tracking-tight); + line-height: var(--leading-tight); + color: $color-heading; + } + + // ── Intro quote ─────────────────────────────────────────────── + &__intro { + font-size: var(--font-size-lg); + font-style: italic; + color: var(--color-text-muted); + line-height: var(--leading-relaxed); + margin-top: calc(var(--space-4) * -1); + } + + // ── Transition line ─────────────────────────────────────────── + &__transition { + font-size: var(--font-size-base); + font-weight: 600; + color: var(--color-text); + line-height: var(--leading-normal); + margin-top: calc(var(--space-4) * -1); + } + + // ── List ────────────────────────────────────────────────────── + &__list { + list-style: none; + padding: 0; + margin: 0; + display: flex; + flex-direction: column; + gap: var(--space-3); + } + + &__item { + display: grid; + grid-template-columns: 5.5rem 1fr; + align-items: start; + gap: var(--space-4); + background: var(--card-glass-bg); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); + border: 1px solid var(--card-glass-border); + border-left: 3px solid var(--color-secondary); + border-radius: var(--radius-lg); + padding: var(--space-4) var(--space-5); + box-shadow: var(--shadow-sm); + transition: + box-shadow var(--transition-slow), + transform var(--transition-slow); + + &:hover { + box-shadow: var(--shadow-glow-hover); + transform: translateY(-3px) scale(1.01); + } + + @media (max-width: 480px) { + grid-template-columns: 1fr; + gap: var(--space-2); + } + } + + &__stat { + font-size: var(--font-size-lg); + font-weight: 800; + color: $color-heading; // compiled literal – immune to CSS var cascade issues + line-height: var(--leading-normal); + white-space: nowrap; + letter-spacing: var(--tracking-tight); + + [data-theme='dark'] & { + color: var( + --color-text-on-dark + ); // #E6F1FB – always defined in globals, never overridden + } + } + + &__text { + font-size: var(--font-size-base); + line-height: var(--leading-loose); + color: var(--color-text); + margin: 0; + } + + // ── Outro ───────────────────────────────────────────────────── + &__outro { + font-size: var(--font-size-lg); + font-weight: 700; + color: var(--color-text); + line-height: var(--leading-snug); + background: var(--card-glass-bg); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); + padding: var(--space-5) var(--space-6); + border-radius: var(--radius-xl); + border: 1px solid var(--card-glass-border); + border-left: 4px solid var(--color-secondary); + box-shadow: var(--shadow-glow); + } +} diff --git a/src/scss/sections/references-section.scss b/src/scss/sections/references-section.scss new file mode 100644 index 0000000..a0c67b5 --- /dev/null +++ b/src/scss/sections/references-section.scss @@ -0,0 +1,132 @@ +@use '../variables' as *; + +.references-section { + padding-block: var(--space-20); + padding-inline: var(--space-4); + background: var(--bg-references); + position: relative; + + &::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + height: 2px; + background: linear-gradient( + 90deg, + transparent 0%, + var(--color-primary) 30%, + var(--color-secondary) 70%, + transparent 100% + ); + } + + @media (max-width: 768px) { + padding-block: var(--space-12); + } + + &__container { + max-width: 720px; + margin: 0 auto; + display: flex; + flex-direction: column; + gap: var(--space-8); + } + + // ── Title ───────────────────────────────────────────────────── + &__title { + font-size: clamp(2rem, 5vw, var(--font-size-4xl)); + font-weight: 800; + letter-spacing: var(--tracking-tight); + line-height: var(--leading-tight); + color: $color-heading; + } + + // ── List ────────────────────────────────────────────────────── + &__list { + list-style: none; + padding: 0; + margin: 0; + display: flex; + flex-direction: column; + gap: var(--space-6); + } + + &__item { + background: var(--card-glass-bg); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); + border: 1px solid var(--card-glass-border); + border-left: 3px solid var(--color-secondary); + border-radius: var(--radius-lg); + padding: var(--space-6); + box-shadow: var(--shadow-sm); + display: flex; + flex-direction: column; + gap: var(--space-5); + transition: + box-shadow var(--transition-slow), + transform var(--transition-slow); + + &:hover { + box-shadow: var(--shadow-glow-hover); + transform: translateY(-3px) scale(1.01); + } + } + + // ── Quote text ──────────────────────────────────────────────── + &__quote { + font-size: var(--font-size-base); + line-height: var(--leading-loose); + color: var(--color-text); + margin: 0; + font-style: italic; + + &::before { + content: '\201C'; + font-size: 2.2em; + line-height: 0; + vertical-align: -0.45em; + margin-right: 0.15em; + color: var(--color-primary); + font-style: normal; + opacity: 0.75; + } + + &::after { + content: '\201D'; + font-size: 2.2em; + line-height: 0; + vertical-align: -0.45em; + margin-left: 0.15em; + color: var(--color-primary); + font-style: normal; + opacity: 0.75; + } + } + + // ── Author attribution ──────────────────────────────────────── + &__author { + display: flex; + flex-direction: column; + gap: var(--space-1); + padding-top: var(--space-4); + border-top: 1px solid var(--color-border); + } + + &__name { + font-size: var(--font-size-sm); + font-weight: 700; + letter-spacing: var(--tracking-wide); + color: var(--color-text); + margin: 0; + } + + &__position { + font-size: var(--font-size-xs); + letter-spacing: var(--tracking-wide); + color: var(--color-text-muted); + margin: 0; + } +} diff --git a/src/scss/sections/services-section.scss b/src/scss/sections/services-section.scss index de8b03d..41f1778 100644 --- a/src/scss/sections/services-section.scss +++ b/src/scss/sections/services-section.scss @@ -8,6 +8,23 @@ align-items: center; padding: $section-padding-y 0; background: var(--services-background); + position: relative; + + &::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + height: 2px; + background: linear-gradient( + 90deg, + transparent 0%, + var(--color-primary) 30%, + var(--color-secondary) 70%, + transparent 100% + ); + } // Only apply min-height on larger screens where we have more space @media (min-width: 1024px) and (min-height: 800px) { @@ -30,10 +47,8 @@ &__title { @include section-title; - - @include mobile-only { - font-size: 1.5rem; - } + font-size: clamp(2rem, 5vw, 2.75rem); + font-weight: 800; } &__subtitle { @@ -84,16 +99,17 @@ &__card { background: white; border-radius: $card-border-radius-md; - box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), - 0 2px 4px -1px rgba(0, 0, 0, 0.06); - transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); + box-shadow: var(--shadow-sm); + transition: var(--transition-slow); overflow: hidden; display: flex; flex-direction: column; height: auto; - min-height: 250px; // Ensures consistent card heights + min-height: 250px; position: relative; - border: 1px solid rgba(255, 255, 255, 0.2); + border: 1px solid var(--card-glass-border); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); animation: cardFadeIn 0.6s ease-out; // Add subtle backdrop blur for depth @@ -111,9 +127,7 @@ &:hover { transform: translateY(-8px) scale(1.02); - box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), - 0 0 0 1px rgba(255, 255, 255, 0.3); - filter: brightness(1.05); + box-shadow: var(--shadow-glow-hover); } &:focus-within { @@ -133,17 +147,16 @@ transform: translateY(-2px); } - // Enhanced hover and focus interaction &:hover, &:focus { - transform: translateY(-4px); - box-shadow: $shadow-card-hover; + transform: translateY(-4px) scale(1.015); + box-shadow: var(--shadow-glow-hover); // When both focused and hovered &:focus { outline: 3px solid var(--color-focus-ring, #2563eb); outline-offset: 2px; - transform: translateY(-6px); // Slightly more lift when focused + transform: translateY(-6px) scale(1.015); } } @@ -229,7 +242,8 @@ // Dark theme enhancements @media (prefers-color-scheme: dark) { - box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), + box-shadow: + 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2); } @@ -329,28 +343,13 @@ font-size: 1.25rem; } - &--primary { - color: var(--service-title-primary); - } - - &--secondary { - color: var(--service-title-secondary); - } - - &--tertiary { - color: var(--service-title-tertiary); - } - - &--quaternary { - color: var(--service-title-quaternary); - } - - &--quinary { - color: var(--service-title-quinary); - } - + &--primary, + &--secondary, + &--tertiary, + &--quaternary, + &--quinary, &--senary { - color: var(--service-title-senary); + color: $color-heading; } } @@ -443,7 +442,8 @@ @media (prefers-color-scheme: dark) { .services-section__card { // Enhance card visibility with better shadows in dark mode - box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), + box-shadow: + 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2); animation: cardFadeIn 0.6s ease-out; diff --git a/src/scss/sections/skills-section.scss b/src/scss/sections/skills-section.scss index 1d15237..8f8acc2 100644 --- a/src/scss/sections/skills-section.scss +++ b/src/scss/sections/skills-section.scss @@ -12,6 +12,24 @@ padding: 3rem 0; } + // Gradient separator line at top + &::after { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + height: 2px; + background: linear-gradient( + 90deg, + transparent 0%, + var(--color-secondary) 30%, + var(--color-primary) 70%, + transparent 100% + ); + z-index: 2; + } + // Add decorative background elements &::before { content: ''; @@ -42,10 +60,8 @@ &__title { @include section-title; - - @include mobile-only { - font-size: 1.5rem; - } + font-size: clamp(2rem, 5vw, 2.75rem); + font-weight: 800; } &__subtitle { @@ -111,7 +127,8 @@ &:hover { transform: translateY(-8px); - box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), + box-shadow: + 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); &::before { @@ -217,7 +234,7 @@ font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; - color: var(--skills-category-title-color); + color: $color-heading; text-align: center; position: relative; z-index: 2; @@ -341,67 +358,34 @@ transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); position: relative; + // Shimmer disabled for flat design &::after { - content: ''; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - background: linear-gradient( - 90deg, - transparent, - rgba(255, 255, 255, 0.4), - transparent - ); - transform: translateX(-100%); - animation: shimmer 2s infinite; + display: none; } - // Semantic hierarchy classes with enhanced gradients + // Semantic hierarchy classes — flat brand colors via theme vars &--primary { background: var(--skills-progress-primary); - box-shadow: 0 0 8px rgba(59, 130, 246, 0.3); } &--secondary { background: var(--skills-progress-secondary); - box-shadow: 0 0 8px rgba(16, 185, 129, 0.3); } &--tertiary { background: var(--skills-progress-tertiary); - box-shadow: 0 0 8px rgba(139, 92, 246, 0.3); } &--quaternary { background: var(--skills-progress-quaternary); - box-shadow: 0 0 8px rgba(6, 182, 212, 0.3); } &--quinary { background: var(--skills-progress-quinary); - box-shadow: 0 0 8px rgba(245, 158, 11, 0.3); } &--senary { background: var(--skills-progress-senary); - box-shadow: 0 0 8px rgba(239, 68, 68, 0.3); } } } - -// Enhanced shimmer animation -@keyframes shimmer { - 0% { - transform: translateX(-100%); - opacity: 0; - } - 50% { - opacity: 1; - } - 100% { - transform: translateX(100%); - opacity: 0; - } -} diff --git a/src/scss/sections/winnings-section.scss b/src/scss/sections/winnings-section.scss new file mode 100644 index 0000000..7d931ea --- /dev/null +++ b/src/scss/sections/winnings-section.scss @@ -0,0 +1,106 @@ +@use '../variables' as *; + +.winnings-section { + padding-block: var(--space-20); + padding-inline: var(--space-4); + background: var(--bg-winnings); + position: relative; + + &::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + height: 2px; + background: linear-gradient( + 90deg, + transparent 0%, + var(--color-secondary) 30%, + var(--color-primary) 70%, + transparent 100% + ); + } + + @media (max-width: 768px) { + padding-block: var(--space-12); + } + + &__container { + max-width: 720px; + margin: 0 auto; + display: flex; + flex-direction: column; + gap: var(--space-8); + } + + // ── Title ───────────────────────────────────────────────────── + &__title { + font-size: clamp(2rem, 5vw, var(--font-size-4xl)); + font-weight: 800; + letter-spacing: var(--tracking-tight); + line-height: var(--leading-tight); + color: $color-heading; + } + + // ── Intro line ──────────────────────────────────────────────── + &__intro { + font-size: var(--font-size-lg); + font-weight: 600; + color: var(--color-text); + line-height: var(--leading-normal); + margin-top: calc(var(--space-4) * -1); + } + + // ── List ────────────────────────────────────────────────────── + &__list { + list-style: none; + padding: 0; + margin: 0; + display: flex; + flex-direction: column; + gap: var(--space-3); + } + + &__item { + background: var(--card-glass-bg); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); + border: 1px solid var(--card-glass-border); + border-left: 3px solid var(--color-secondary); + border-radius: var(--radius-lg); + padding: var(--space-4) var(--space-5); + box-shadow: var(--shadow-sm); + transition: + box-shadow var(--transition-slow), + transform var(--transition-slow); + + &:hover { + box-shadow: var(--shadow-glow-hover); + transform: translateY(-3px) scale(1.01); + } + } + + &__text { + font-size: var(--font-size-base); + line-height: var(--leading-loose); + color: var(--color-text); + margin: 0; + } + + // ── Outro ───────────────────────────────────────────────────── + &__outro { + font-size: var(--font-size-lg); + font-weight: 700; + color: var(--color-text); + line-height: var(--leading-snug); + background: var(--card-glass-bg); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); + padding: var(--space-5) var(--space-6); + border-radius: var(--radius-xl); + border: 1px solid var(--card-glass-border); + border-left: 4px solid var(--color-secondary); + box-shadow: var(--shadow-glow); + } +} diff --git a/src/scss/themes/_about.scss b/src/scss/themes/_about.scss index 59a314e..3aa3f4a 100644 --- a/src/scss/themes/_about.scss +++ b/src/scss/themes/_about.scss @@ -64,119 +64,63 @@ $text-aaa-light: #111827; // Near black for AAA contrast on light backgrounds $text-aaa-dark: #ffffff; // Pure white for AAA contrast on dark backgrounds $about-light-theme: ( - // About section colors - about-background: - linear-gradient(135deg, $about-bg-light-start 0%, $about-bg-light-end 100%), - gradient-about-title: linear-gradient(90deg, $green-primary, $teal-primary), - about-greeting-color: $green-secondary, - gradient-image-overlay: - linear-gradient( - 45deg, - rgba($blue-primary, $alpha-overlay), - rgba($purple-primary, $alpha-overlay) - ), - // Skill badge colors - FIXED for AAA contrast - skill-badge-primary-bg: $blue-lightest, - skill-badge-primary-text: $text-aaa-light, - // Changed from $blue-tertiary for AAA contrast - skill-badge-secondary-bg: $green-ultralight, - skill-badge-secondary-text: $text-aaa-light, - // Changed from $green-tertiary for AAA contrast - skill-badge-tertiary-bg: $purple-lightest, - skill-badge-tertiary-text: $text-aaa-light, - // Changed from $orange-tertiary for AAA contrast - skill-badge-quaternary-bg: $orange-lighter, - skill-badge-quaternary-text: $text-aaa-light, + about-background: #ffffff, + gradient-about-title: #042c53, + about-greeting-color: #042c53, + gradient-image-overlay: rgba(4, 44, 83, 0.1), + // Skill badge colors + skill-badge-primary-bg: #e6f1fb, + skill-badge-primary-text: #042c53, + skill-badge-secondary-bg: #f1efe8, + skill-badge-secondary-text: #042c53, + skill-badge-tertiary-bg: #e6f1fb, + skill-badge-tertiary-text: #042c53, + skill-badge-quaternary-bg: #faeeda, + skill-badge-quaternary-text: #412402, - // Changed from $orange-secondary for AAA contrast - // Feature card colors - FIXED for AAA contrast - feature-card-primary-bg: - linear-gradient(135deg, $blue-lightest, $blue-ultralight), - feature-card-secondary-bg: - linear-gradient(135deg, $purple-lightest, $purple-ultralight), - feature-card-tertiary-bg: - linear-gradient(135deg, $teal-lightest, $teal-lighter), - feature-icon-primary: $blue-primary, - feature-icon-secondary: $purple-primary, - feature-icon-tertiary: $teal-primary, + // Feature card colors + feature-card-primary-bg: #f1efe8, + feature-card-secondary-bg: #ffffff, + feature-card-tertiary-bg: #f1efe8, + feature-icon-primary: #042c53, + feature-icon-secondary: #0c447c, + feature-icon-tertiary: #ef9f27, - // Text colors - FIXED for AAA contrast - feature-title-primary: $text-aaa-light, - // Changed from $blue-tertiary for AAA contrast - feature-title-secondary: $text-aaa-light, - // Changed from $purple-tertiary for AAA contrast - feature-title-tertiary: $text-aaa-light, - - // Changed from $teal-tertiary for AAA contrast - feature-description-primary: $text-aaa-light, - // Changed from $blue-secondary for AAA contrast - feature-description-secondary: $text-aaa-light, - // Changed from $purple-secondary for AAA contrast - feature-description-tertiary: $text-aaa-light - // Changed from $teal-dark for AAA contrast + feature-title-primary: #042c53, + feature-title-secondary: #042c53, + feature-title-tertiary: #042c53, + feature-description-primary: #1a1a1a, + feature-description-secondary: #1a1a1a, + feature-description-tertiary: #1a1a1a, ); $about-dark-theme: ( - // About section colors - about-background: - linear-gradient(135deg, $about-bg-dark-start 0%, $about-bg-dark-end 100%), - gradient-about-title: linear-gradient(90deg, $green-light, $teal-secondary), - about-greeting-color: $green-lighter, - gradient-image-overlay: - linear-gradient( - 45deg, - rgba($blue-primary, $alpha-overlay), - rgba($purple-primary, $alpha-overlay) - ), - // Skill badge colors - FIXED for AAA contrast - skill-badge-primary-bg: rgba($blue-dark, $alpha-bg-low), - skill-badge-primary-text: $text-aaa-dark, - // Changed from $blue-lighter for AAA contrast - skill-badge-secondary-bg: rgba($green-dark, $alpha-bg-low), - skill-badge-secondary-text: $text-aaa-dark, - // Changed from $green-lightest for AAA contrast - skill-badge-tertiary-bg: rgba($purple-dark, $alpha-bg-low), - skill-badge-tertiary-text: $text-aaa-dark, - // Changed from $purple-lighter for AAA contrast - skill-badge-quaternary-bg: rgba($orange-darker, $alpha-bg-low), - skill-badge-quaternary-text: $text-aaa-dark, + about-background: #0c447c, + gradient-about-title: #e6f1fb, + about-greeting-color: #e6f1fb, + gradient-image-overlay: rgba(230, 241, 251, 0.1), + // Skill badge colors (dark) + skill-badge-primary-bg: rgba(230, 241, 251, 0.15), + skill-badge-primary-text: #e6f1fb, + skill-badge-secondary-bg: rgba(230, 241, 251, 0.1), + skill-badge-secondary-text: #e6f1fb, + skill-badge-tertiary-bg: rgba(230, 241, 251, 0.15), + skill-badge-tertiary-text: #e6f1fb, + skill-badge-quaternary-bg: rgba(239, 159, 39, 0.15), + skill-badge-quaternary-text: #ef9f27, - // Changed from $orange-light for AAA contrast - // Feature card colors - Enhanced for better contrast - feature-card-primary-bg: - linear-gradient( - 135deg, - rgba($blue-dark, $alpha-bg-low), - rgba($blue-darker, $alpha-bg-low) - ), - feature-card-secondary-bg: - linear-gradient( - 135deg, - rgba($purple-dark, $alpha-bg-low), - rgba($purple-darker, $alpha-bg-low) - ), - feature-card-tertiary-bg: - linear-gradient( - 135deg, - rgba($teal-dark, $alpha-bg-low), - rgba($teal-darker, $alpha-bg-low) - ), - feature-icon-primary: $blue-light, - feature-icon-secondary: $purple-light, - feature-icon-tertiary: $teal-secondary, + // Feature card colors (dark) + feature-card-primary-bg: rgba(12, 68, 124, 0.8), + feature-card-secondary-bg: rgba(4, 44, 83, 0.9), + feature-card-tertiary-bg: rgba(12, 68, 124, 0.8), + feature-icon-primary: #ef9f27, + feature-icon-secondary: #ef9f27, + feature-icon-tertiary: #ef9f27, - // Text colors - FIXED for AAA contrast - feature-title-primary: $text-aaa-dark, - // Changed from $blue-lighter for AAA contrast - feature-title-secondary: $text-aaa-dark, - // Changed from $purple-lighter for AAA contrast - feature-title-tertiary: $text-aaa-dark, - - // Changed from $teal-light for AAA contrast - feature-description-primary: $text-aaa-dark, - // Changed from $blue-lightest for AAA contrast - feature-description-secondary: $text-aaa-dark, - // Changed from $purple-lightest for AAA contrast - feature-description-tertiary: $text-aaa-dark - // Changed from $teal-lightest for AAA contrast + feature-title-primary: #e6f1fb, + feature-title-secondary: #e6f1fb, + feature-title-tertiary: #e6f1fb, + feature-description-primary: #b5d4f4, + feature-description-secondary: #b5d4f4, + feature-description-tertiary: #b5d4f4, ); diff --git a/src/scss/themes/_base.scss b/src/scss/themes/_base.scss index f1616fb..458bd40 100644 --- a/src/scss/themes/_base.scss +++ b/src/scss/themes/_base.scss @@ -3,13 +3,13 @@ // Base colors and variables that are used across sections $base-light-theme: ( - primary: #800000, - background: #ffffff, - text: #000000, - text-muted: #2b2b2b, - active-box-shadow: rgba(0, 0, 0, 0.6), - hover-box-shadow: rgba(0, 0, 0, 0.9), - gradient-primary: $gradient-primary, + primary: #042c53, + background: #f1efe8, + text: #1a1a1a, + text-muted: #412402, + active-box-shadow: rgba(4, 44, 83, 0.2), + hover-box-shadow: rgba(4, 44, 83, 0.15), + gradient-primary: #042c53, gradient-text: $gradient-text-light, // Shadow variables @@ -36,10 +36,10 @@ $base-light-theme: ( // Form and text variables form-background: #ffffff, - form-border: #e5e7eb, - text-primary: #111827, - text-secondary: #484c56, - primary-color: #9333ea, + form-border: rgba(4, 44, 83, 0.15), + text-primary: #1a1a1a, + text-secondary: #412402, + primary-color: #042c53, // Contact status colors (light theme) contact-status-success-bg: #d1fae5, @@ -50,20 +50,24 @@ $base-light-theme: ( contact-status-error-text: #991b1b, // Additional missing variables - box-shadow-hover: rgba(0, 0, 0, 0.15), + box-shadow-hover: rgba(4, 44, 83, 0.15), bg-primary: #ffffff, - bg-secondary: #f9fafb, - border-color: #e5e7eb, + bg-secondary: #f1efe8, + border-color: rgba(4, 44, 83, 0.15), + // Design system semantic tokens + surface: #ffffff, + border: rgba(4, 44, 83, 0.15), + secondary: #0c447c, ); $base-dark-theme: ( - primary: #9333ea, - background: #1f2937, - text: #ffffff, - text-muted: #ffffff, - active-box-shadow: rgba(255, 255, 255, 0.1), - hover-box-shadow: rgba(255, 255, 255, 0.15), - gradient-primary: $gradient-primary, + primary: #e6f1fb, + background: #021829, + text: #e6f1fb, + text-muted: #b5d4f4, + active-box-shadow: rgba(230, 241, 251, 0.1), + hover-box-shadow: rgba(230, 241, 251, 0.15), + gradient-primary: #ef9f27, gradient-text: $gradient-text-dark, // Shadow variables @@ -88,23 +92,27 @@ $base-dark-theme: ( transition-fast: #{$transition-fast}, // Form and text variables (dark theme) - form-background: #374151, - form-border: #4b5563, - text-primary: #f9fafb, - text-secondary: #9ca3af, - primary-color: #9333ea, + form-background: #042c53, + form-border: rgba(230, 241, 251, 0.15), + text-primary: #e6f1fb, + text-secondary: #b5d4f4, + primary-color: #ef9f27, // Contact status colors (dark theme) - contact-status-success-bg: #064e3b, - contact-status-success-border: #059669, - contact-status-success-text: #a7f3d0, - contact-status-error-bg: #7f1d1d, + contact-status-success-bg: rgba(4, 44, 83, 0.5), + contact-status-success-border: #ef9f27, + contact-status-success-text: #fac775, + contact-status-error-bg: rgba(127, 29, 29, 0.3), contact-status-error-border: #dc2626, contact-status-error-text: #fecaca, // Additional missing variables (dark theme) - box-shadow-hover: rgba(255, 255, 255, 0.15), - bg-primary: #1f2937, - bg-secondary: #374151, - border-color: #4b5563, + box-shadow-hover: rgba(239, 159, 39, 0.15), + bg-primary: #021829, + bg-secondary: #042c53, + border-color: rgba(230, 241, 251, 0.12), + // Design system semantic tokens + surface: #042c53, + border: rgba(230, 241, 251, 0.12), + secondary: #b5d4f4, ); diff --git a/src/scss/themes/_certifications.scss b/src/scss/themes/_certifications.scss index 24cacf4..816367c 100644 --- a/src/scss/themes/_certifications.scss +++ b/src/scss/themes/_certifications.scss @@ -47,74 +47,39 @@ $text-aaa-dark: #ffffff; // Pure white for AAA contrast on dark backgrounds $certifications-light-theme: ( // Certifications section background - 'certifications-background': - linear-gradient(135deg, $cert-bg-light-start 0%, $cert-bg-light-end 100%), - 'gradient-certifications-title': - linear-gradient(to right, $purple-primary, $pink-primary), - 'color-certifications-primary': $purple-primary, + 'certifications-background': #f1efe8, + 'gradient-certifications-title': #042c53, + 'color-certifications-primary': #ef9f27, - // Card styling - 'certifications-card-background': - linear-gradient(135deg, $white 0%, $gray-50 100%), + 'certifications-card-background': #ffffff, 'certifications-card-shadow': $shadow-card-light, 'certifications-card-shadow-hover': $shadow-card-light-hover, - 'certifications-card-overlay': - linear-gradient( - 135deg, - rgba($purple-primary, $alpha-overlay-light) 0%, - rgba($pink-primary, $alpha-overlay-light) 100% - ), - // Badge styling - FIXED for AAA contrast - 'certifications-badge-background': - linear-gradient(to right, $purple-lightest, $pink-lightest), - 'certifications-badge-border': rgba($purple-primary, $alpha-border-light), - 'color-certifications-badge-text': $text-aaa-light, + 'certifications-card-overlay': rgba(4, 44, 83, 0.04), + 'certifications-badge-background': #e6f1fb, + 'certifications-badge-border': rgba(4, 44, 83, 0.15), + 'color-certifications-badge-text': #042c53, - // Changed from $purple-secondary for AAA contrast - // Text styling for AAA compliance - 'certifications-card-title': $text-aaa-light, - 'certifications-card-description': $text-aaa-light, - 'certifications-card-date': $text-aaa-light, - // Medium gray for secondary text + 'certifications-card-title': #042c53, + 'certifications-card-description': #1a1a1a, + 'certifications-card-date': #412402 ); $certifications-dark-theme: ( - // Certifications section background (dark purple/pink gradient) - 'certifications-background': - linear-gradient(135deg, $cert-bg-dark-start 0%, $cert-bg-dark-end 100%), - // Certifications title gradient (brighter purple to pink for dark mode) - 'gradient-certifications-title': - linear-gradient(to right, $purple-light, $pink-light), - // Primary color for icons (lighter purple) - 'color-certifications-primary': $purple-light, + 'certifications-background': #042c53, + 'gradient-certifications-title': #e6f1fb, + 'color-certifications-primary': #ef9f27, - // Card styling (dark theme) - 'certifications-card-background': - linear-gradient(135deg, $gray-900 0%, $gray-800 100%), + 'certifications-card-background': rgba(12, 68, 124, 0.6), 'certifications-card-shadow': $shadow-card-dark, 'certifications-card-shadow-hover': $shadow-card-dark-hover, - 'certifications-card-overlay': - linear-gradient( - 135deg, - rgba($purple-light, $alpha-overlay-dark) 0%, - rgba($pink-light, $alpha-overlay-dark) 100% - ), - // Badge styling (dark theme) - FIXED for AAA contrast - 'certifications-badge-background': - linear-gradient( - to right, - rgba($purple-dark, $alpha-border-dark), - rgba($pink-dark, $alpha-border-dark) - ), - 'certifications-badge-border': rgba($purple-light, $alpha-border-dark), - 'color-certifications-badge-text': $text-aaa-dark, + 'certifications-card-overlay': rgba(239, 159, 39, 0.04), + 'certifications-badge-background': rgba(239, 159, 39, 0.15), + 'certifications-badge-border': rgba(239, 159, 39, 0.3), + 'color-certifications-badge-text': #ef9f27, - // Changed from $purple-lighter for AAA contrast - // Text styling for AAA compliance - 'certifications-card-title': $text-aaa-dark, - 'certifications-card-description': $text-aaa-dark, - 'certifications-card-date': #d1d5db, - // Light gray for secondary text in dark mode + 'certifications-card-title': #e6f1fb, + 'certifications-card-description': #b5d4f4, + 'certifications-card-date': #b5d4f4, ); // Card layout styling diff --git a/src/scss/themes/_contact.scss b/src/scss/themes/_contact.scss index 8a7adc3..0df3373 100644 --- a/src/scss/themes/_contact.scss +++ b/src/scss/themes/_contact.scss @@ -72,148 +72,87 @@ $text-aaa-dark: #ffffff; // Pure white for AAA contrast on dark backgrounds $contact-light-theme: ( // Contact section background (light indigo/purple tones) - 'contact-background': - linear-gradient( - 135deg, - $contact-bg-light-start 0%, - $contact-bg-light-end 100% - ), - // Contact title gradient (indigo to purple) - 'gradient-contact-title': - linear-gradient(to right, $indigo-primary, $indigo-secondary), - // Primary color for icons (indigo) - 'color-contact-primary': $indigo-primary, + 'contact-background': #f1efe8, + 'gradient-contact-title': #042c53, + 'color-contact-primary': #042c53, - // Form styling - warm cream/peach to complement cool blue background - 'contact-form-bg': - linear-gradient(135deg, $orange-lightest 0%, $orange-lighter 100%), - 'contact-form-border': rgba($orange-primary, $alpha-border-light), + 'contact-form-bg': #ffffff, + 'contact-form-border': rgba(4, 44, 83, 0.15), 'contact-form-shadow': $shadow-light, - // Input styling - warm background to complement form - 'contact-input-bg': $amber-primary, - 'contact-input-border': rgba($orange-primary, $alpha-border-medium), - 'contact-input-focus-ring': rgba($orange-primary, $alpha-border-light), - 'contact-input-text': $text-aaa-light, - // Added for AAA compliance - 'contact-input-placeholder': $text-input-placeholder-light, + 'contact-input-bg': #f1efe8, + 'contact-input-border': rgba(4, 44, 83, 0.2), + 'contact-input-focus-ring': rgba(4, 44, 83, 0.3), + 'contact-input-text': #1a1a1a, + 'contact-input-placeholder': #412402, - // Added for form accessibility - // Button styling - improved contrast and readability - 'contact-button-bg': - linear-gradient(135deg, $blue-primary 0%, $blue-secondary 100%), - 'contact-button-text': $text-aaa-dark, - // Changed to ensure AAA contrast - 'contact-button-hover-bg': - linear-gradient(135deg, $blue-dark 0%, $blue-darker 100%), - // Social button styling - FIXED for AAA contrast - 'contact-social-bg': $orange-lighter, - 'contact-social-text': $text-aaa-light, - // Changed from $orange-dark for AAA contrast - 'contact-social-border': $orange-primary, - 'contact-social-hover-bg': $orange-light, - 'contact-social-hover-border': $orange-secondary, + 'contact-button-bg': #042c53, + 'contact-button-text': #e6f1fb, + 'contact-button-hover-bg': #0c447c, - // Status message styling (light theme) - improved readability - 'contact-status-success-bg': $green-lightest, - 'contact-status-success-border': $green-primary, - 'contact-status-success-text': $green-secondary, - 'contact-status-error-bg': $red-lightest, - 'contact-status-error-border': $red-primary, - 'contact-status-error-text': $red-secondary, + 'contact-social-bg': #f1efe8, + 'contact-social-text': #042c53, + 'contact-social-border': rgba(4, 44, 83, 0.15), + 'contact-social-hover-bg': #e6f1fb, + 'contact-social-hover-border': #0c447c, - // Text colors for AAA compliance - 'color-text': $text-aaa-light, - // Near black for AAA contrast - 'color-text-muted': $gray-neutral-light, - // Gray for secondary text - 'primary-color': $indigo-primary, - // Indigo primary - 'text-primary': $text-aaa-light, - // Main text color - 'text-secondary': $gray-neutral-light, + 'contact-status-success-bg': #d1fae5, + 'contact-status-success-border': #10b981, + 'contact-status-success-text': #065f46, + 'contact-status-error-bg': #fee2e2, + 'contact-status-error-border': #ef4444, + 'contact-status-error-text': #991b1b, - // Secondary text color - // Enhanced social button colors for AAA compliance - 'social-icon-email': $text-aaa-light, - // Dark for better contrast - 'social-icon-github': $text-aaa-light, - // Dark for better contrast - 'social-icon-linkedin': $text-aaa-light, - // Dark for better contrast + 'color-text': #1a1a1a, + 'color-text-muted': #412402, + 'primary-color': #042c53, + 'text-primary': #1a1a1a, + 'text-secondary': #412402, + + 'social-icon-email': #042c53, + 'social-icon-github': #042c53, + 'social-icon-linkedin': #042c53 ); $contact-dark-theme: ( - // Contact section background (dark indigo/purple tones) - 'contact-background': - linear-gradient( - 135deg, - rgba($indigo-light, $alpha-border-light) 0%, - rgba($purple-primary, $alpha-border-light) 100% - ), - // Contact title gradient (brighter indigo to purple for dark mode) - 'gradient-contact-title': - linear-gradient(to right, $indigo-light, $purple-primary), - // Primary color for icons (lighter indigo) - 'color-contact-primary': $indigo-light, + 'contact-background': #021829, + 'gradient-contact-title': #e6f1fb, + 'color-contact-primary': #ef9f27, - // Form styling (dark theme) - warm dark tones to complement cool purple/indigo - 'contact-form-bg': - linear-gradient(135deg, $orange-darkest 0%, $orange-darker 100%), - 'contact-form-border': rgba($orange-primary, $alpha-border-medium), + 'contact-form-bg': #042c53, + 'contact-form-border': rgba(230, 241, 251, 0.12), 'contact-form-shadow': $shadow-dark, - // Input styling (dark theme) - FIXED for AAA contrast - 'contact-input-bg': $gray-neutral-dark, - // Changed to neutral dark gray - 'contact-input-border': rgba($orange-primary, $alpha-border-heavy), - 'contact-input-focus-ring': rgba($orange-primary, $alpha-border-medium), - 'contact-input-text': $text-aaa-dark, - // White text for AAA contrast - 'contact-input-placeholder': $gray-neutral-lighter, + 'contact-input-bg': #042c53, + 'contact-input-border': rgba(230, 241, 251, 0.2), + 'contact-input-focus-ring': rgba(239, 159, 39, 0.3), + 'contact-input-text': #e6f1fb, + 'contact-input-placeholder': #b5d4f4, - // Light gray for placeholder - // Button styling (dark theme) - improved contrast - 'contact-button-bg': - linear-gradient(135deg, $blue-light 0%, $blue-primary 100%), - 'contact-button-text': $text-aaa-dark, - 'contact-button-hover-bg': - linear-gradient(135deg, $blue-lighter 0%, $blue-light 100%), - // Social button styling (dark theme) - FIXED for AAA contrast - 'contact-social-bg': $gray-neutral-medium, - // Changed to neutral dark background - 'contact-social-text': $text-aaa-dark, - // White text for AAA contrast - 'contact-social-border': $orange-secondary, - 'contact-social-hover-bg': $gray-neutral-dark, - // Slightly lighter on hover - 'contact-social-hover-border': $orange-primary, + 'contact-button-bg': #ef9f27, + 'contact-button-text': #042c53, + 'contact-button-hover-bg': #fac775, - // Status message styling (dark theme) - improved readability - 'contact-status-success-bg': rgba($green-primary, $alpha-low), - 'contact-status-success-border': $green-light, - 'contact-status-success-text': $green-lighter, - 'contact-status-error-bg': rgba($red-light, $alpha-low), - 'contact-status-error-border': $red-light, - 'contact-status-error-text': $red-lighter, + 'contact-social-bg': #042c53, + 'contact-social-text': #e6f1fb, + 'contact-social-border': rgba(239, 159, 39, 0.3), + 'contact-social-hover-bg': #0c447c, + 'contact-social-hover-border': #ef9f27, - // Text colors for AAA compliance - ALL WHITE in dark mode - 'color-text': $text-aaa-dark, - // White for AAA contrast on dark - 'color-text-muted': $text-aaa-dark, - // Changed to white for consistency - 'primary-color': $indigo-light, - // Lighter indigo for dark mode - 'text-primary': $text-aaa-dark, - // Main text color - 'text-secondary': $text-aaa-dark, - // Changed to white for consistency - // Secondary text color - // Enhanced social button colors for AAA compliance - 'social-icon-email': $text-aaa-dark, - // White for better contrast - 'social-icon-github': $text-aaa-dark, - // White for better contrast - 'social-icon-linkedin': $text-aaa-dark, - // White for better contrast + 'contact-status-success-bg': rgba(4, 44, 83, 0.5), + 'contact-status-success-border': #ef9f27, + 'contact-status-success-text': #fac775, + 'contact-status-error-bg': rgba(127, 29, 29, 0.3), + 'contact-status-error-border': #dc2626, + 'contact-status-error-text': #fecaca, + + 'color-text': #e6f1fb, + 'color-text-muted': #b5d4f4, + 'primary-color': #ef9f27, + 'text-primary': #e6f1fb, + 'text-secondary': #b5d4f4, + + 'social-icon-email': #e6f1fb, + 'social-icon-github': #e6f1fb, + 'social-icon-linkedin': #e6f1fb, ); diff --git a/src/scss/themes/_hero.scss b/src/scss/themes/_hero.scss index f4bad6d..08efca3 100644 --- a/src/scss/themes/_hero.scss +++ b/src/scss/themes/_hero.scss @@ -45,88 +45,41 @@ $text-aaa-light: #111827; // Near black for AAA contrast on light backgrounds $text-aaa-dark: #ffffff; // Pure white for AAA contrast on dark backgrounds $hero-light-theme: ( - hero-background: - linear-gradient(135deg, $hero-bg-light-start 0%, $hero-bg-light-end 100%), - // Stat colors - FIXED for AAA contrast - stat-primary-bg: linear-gradient(135deg, $blue-lighter, $blue-lightest), - stat-primary-value: $text-aaa-light, - // Changed from $blue-primary for AAA contrast - stat-primary-label: $text-aaa-light, + hero-background: #f1efe8, + // Stat card backgrounds – flat brand tones + stat-primary-bg: #e6f1fb, + stat-primary-value: #042c53, + stat-primary-label: #042c53, - // Changed from $blue-secondary for AAA contrast - stat-secondary-bg: linear-gradient(135deg, $green-lighter, $green-lightest), - stat-secondary-value: $text-aaa-light, - // Changed from $green-primary for AAA contrast - stat-secondary-label: $text-aaa-light, + stat-secondary-bg: #f1efe8, + stat-secondary-value: #042c53, + stat-secondary-label: #042c53, - // Changed from $green-secondary for AAA contrast - stat-tertiary-bg: linear-gradient(135deg, $teal-lighter, $teal-lightest), - stat-tertiary-value: $text-aaa-light, - // Changed from $teal-primary for AAA contrast - stat-tertiary-label: $text-aaa-light, + stat-tertiary-bg: #e6f1fb, + stat-tertiary-value: #042c53, + stat-tertiary-label: #042c53, - // Changed from $teal-secondary for AAA contrast - stat-quaternary-bg: linear-gradient( - 135deg, - $purple-lighter, - $purple-lightest - ), - stat-quaternary-value: $text-aaa-light, - // Changed from $purple-primary for AAA contrast - stat-quaternary-label: $text-aaa-light, - // Changed from $purple-secondary for AAA contrast + stat-quaternary-bg: #faeeda, + stat-quaternary-value: #412402, + stat-quaternary-label: #412402, ); $hero-dark-theme: ( - hero-background: - linear-gradient( - 135deg, - rgba($blue-dark, $alpha-bg-low) 0%, - rgba($purple-dark, $alpha-bg-low) 50%, - rgba($purple-darker, $alpha-bg-low) 100% - ), - // Stat colors - Enhanced contrast for AAA compliance - stat-primary-bg: - linear-gradient( - 135deg, - rgba($blue-dark, $alpha-bg-low), - rgba($blue-darker, $alpha-bg-low) - ), - stat-primary-value: $text-aaa-dark, - // Changed from $blue-primary to white for AAA contrast - stat-primary-label: $text-aaa-dark, + hero-background: #042c53, + // Stat card backgrounds – flat brand tones for dark + stat-primary-bg: rgba(12, 68, 124, 0.6), + stat-primary-value: #e6f1fb, + stat-primary-label: #b5d4f4, - // Changed from $blue-light to white for better contrast - stat-secondary-bg: - linear-gradient( - 135deg, - rgba($green-dark, $alpha-bg-low), - rgba($green-darker, $alpha-bg-low) - ), - stat-secondary-value: $text-aaa-dark, - // Changed from $green-primary to white for AAA contrast - stat-secondary-label: $text-aaa-dark, + stat-secondary-bg: rgba(12, 68, 124, 0.4), + stat-secondary-value: #e6f1fb, + stat-secondary-label: #b5d4f4, - // Changed from $green-light to white for better contrast - stat-tertiary-bg: - linear-gradient( - 135deg, - rgba($teal-dark, $alpha-bg-low), - rgba($teal-darker, $alpha-bg-low) - ), - stat-tertiary-value: $text-aaa-dark, - // Changed from $teal-primary to white for AAA contrast - stat-tertiary-label: $text-aaa-dark, + stat-tertiary-bg: rgba(12, 68, 124, 0.6), + stat-tertiary-value: #e6f1fb, + stat-tertiary-label: #b5d4f4, - // Changed from $teal-light to white for better contrast - stat-quaternary-bg: - linear-gradient( - 135deg, - rgba($purple-dark, $alpha-bg-low), - rgba($purple-darker, $alpha-bg-low) - ), - stat-quaternary-value: $text-aaa-dark, - // Changed from $purple-primary to white for AAA contrast - stat-quaternary-label: $text-aaa-dark, - // Changed from $purple-light to white for better contrast + stat-quaternary-bg: rgba(239, 159, 39, 0.15), + stat-quaternary-value: #ef9f27, + stat-quaternary-label: #e6f1fb, ); diff --git a/src/scss/themes/_index.scss b/src/scss/themes/_index.scss index 7e86de5..a3df559 100644 --- a/src/scss/themes/_index.scss +++ b/src/scss/themes/_index.scss @@ -61,6 +61,9 @@ $dark-theme: map.merge( --color-background: #{map.get($theme, background)}; --color-text: #{map.get($theme, text)}; --color-text-muted: #{map.get($theme, text-muted)}; + --color-surface: #{map.get($theme, surface)}; + --color-border: #{map.get($theme, border)}; + --color-secondary: #{map.get($theme, secondary)}; --box-shadow-hover: #{map.get($theme, hover-box-shadow)}; --box-shadow-active: #{map.get($theme, active-box-shadow)}; --gradient-primary: #{map.get($theme, gradient-primary)}; diff --git a/src/scss/themes/_projects.scss b/src/scss/themes/_projects.scss index 85b53da..0186094 100644 --- a/src/scss/themes/_projects.scss +++ b/src/scss/themes/_projects.scss @@ -57,76 +57,43 @@ $text-aaa-dark: $white; // #ffffff - ensures AAA contrast on dark backgrounds $projects-light-theme: ( // Projects section background - 'projects-background': - linear-gradient(135deg, $bg-light-start 0%, $bg-light-end 100%), - // Projects title gradient - 'gradient-projects-title': - linear-gradient(to right, $orange-primary, $red-primary), - // Card styling - 'projects-card-background': - linear-gradient(135deg, $card-light-start 0%, $card-light-end 100%), - 'projects-card-border': rgba($orange-primary, $alpha-border-light), + 'projects-background': #ffffff, + 'gradient-projects-title': #042c53, + 'projects-card-background': #ffffff, + 'projects-card-border': rgba(4, 44, 83, 0.12), 'projects-card-shadow': $shadow-light, 'projects-card-shadow-hover': $shadow-light-hover, - // Overlay styling - 'projects-overlay-background': rgba($black, $alpha-overlay-light), - // Button styling - 'projects-button-primary-bg': - linear-gradient(135deg, $orange-primary 0%, $red-primary 100%), - 'projects-button-primary-text': $text-aaa-dark, - // Changed to ensure AAA contrast - 'projects-button-primary-border': rgba($orange-primary, $alpha-border-heavy), - 'projects-button-primary-hover-bg': - linear-gradient(135deg, $red-primary 0%, $red-secondary 100%), - 'projects-button-secondary-bg': $white, - 'projects-button-secondary-text': $text-aaa-light, - // Changed from $gray-800 for AAA compliance - 'projects-button-secondary-border': rgba($gray-300, $alpha-border-medium), - 'projects-button-secondary-hover-bg': $gray-50, - // Changed from $white for subtle hover effect - // Tech badge styling - FIXED for AAA contrast - 'projects-tech-badge-bg': $gray-100, - // Changed to solid light gray instead of gradient - 'projects-tech-badge-text': $text-aaa-light, - // Changed to dark text for AAA contrast - 'projects-tech-badge-border': rgba($orange-primary, $alpha-border-medium) + 'projects-overlay-background': rgba(0, 0, 0, 0.6), + 'projects-button-primary-bg': #042c53, + 'projects-button-primary-text': #e6f1fb, + 'projects-button-primary-border': rgba(4, 44, 83, 0.3), + 'projects-button-primary-hover-bg': #0c447c, + 'projects-button-secondary-bg': #ffffff, + 'projects-button-secondary-text': #042c53, + 'projects-button-secondary-border': rgba(4, 44, 83, 0.2), + 'projects-button-secondary-hover-bg': #f1efe8, + 'projects-tech-badge-bg': #f1efe8, + 'projects-tech-badge-text': #042c53, + 'projects-tech-badge-border': rgba(4, 44, 83, 0.15) ); $projects-dark-theme: ( - // Projects section background - using variables instead of hardcoded rgba - 'projects-background': - linear-gradient( - 135deg, - rgba($brown-primary, $alpha-border-medium) 0%, - rgba($brown-secondary, $alpha-border-medium) 100% - ), - // Projects title gradient - 'gradient-projects-title': - linear-gradient(to right, $orange-secondary, $red-light), - // Card styling - 'projects-card-background': - linear-gradient(135deg, $gray-900 0%, $gray-800 100%), - 'projects-card-border': rgba($orange-secondary, $alpha-border-medium), + 'projects-background': #0c447c, + 'gradient-projects-title': #e6f1fb, + 'projects-card-background': rgba(12, 68, 124, 0.6), + 'projects-card-border': rgba(230, 241, 251, 0.12), 'projects-card-shadow': $shadow-dark, 'projects-card-shadow-hover': $shadow-dark-hover, - // Overlay styling - 'projects-overlay-background': rgba($black, $alpha-overlay-dark), - // Button styling - 'projects-button-primary-bg': - linear-gradient(135deg, $orange-primary 0%, $red-primary 100%), - 'projects-button-primary-text': $text-aaa-dark, - 'projects-button-primary-border': rgba($orange-primary, $alpha-border-heavy), - 'projects-button-primary-hover-bg': - linear-gradient(135deg, $orange-secondary 0%, $red-light 100%), - 'projects-button-secondary-bg': rgba($gray-800, $alpha-bg-light), - 'projects-button-secondary-text': $text-aaa-dark, - // Changed from $gray-200 for AAA compliance - 'projects-button-secondary-border': rgba($gray-600, $alpha-border-heavy), - 'projects-button-secondary-hover-bg': $gray-700, - // Tech badge styling - FIXED for AAA contrast - 'projects-tech-badge-bg': $gray-800, - // Changed to solid dark background - 'projects-tech-badge-text': $text-aaa-dark, - // White text for AAA contrast - 'projects-tech-badge-border': rgba($orange-secondary, $alpha-border-heavy) + 'projects-overlay-background': rgba(0, 0, 0, 0.7), + 'projects-button-primary-bg': #ef9f27, + 'projects-button-primary-text': #042c53, + 'projects-button-primary-border': rgba(239, 159, 39, 0.3), + 'projects-button-primary-hover-bg': #ba7517, + 'projects-button-secondary-bg': rgba(12, 68, 124, 0.8), + 'projects-button-secondary-text': #e6f1fb, + 'projects-button-secondary-border': rgba(230, 241, 251, 0.3), + 'projects-button-secondary-hover-bg': rgba(4, 44, 83, 0.9), + 'projects-tech-badge-bg': rgba(4, 44, 83, 0.8), + 'projects-tech-badge-text': #e6f1fb, + 'projects-tech-badge-border': rgba(230, 241, 251, 0.2), ); diff --git a/src/scss/themes/_services.scss b/src/scss/themes/_services.scss index 3f76b04..2f57746 100644 --- a/src/scss/themes/_services.scss +++ b/src/scss/themes/_services.scss @@ -148,77 +148,66 @@ $dark-senary-title: #fca5a5; // Medium red // ================================ $services-light-theme: ( - // Section backgrounds - services-background: $light-services-bg, - gradient-services-title: $light-title-gradient, + services-background: #f1efe8, + gradient-services-title: #042c53, - // Card backgrounds - service-card-primary-bg: $light-card-primary-bg, - service-card-secondary-bg: $light-card-secondary-bg, - service-card-tertiary-bg: $light-card-tertiary-bg, - service-card-quaternary-bg: $light-card-quaternary-bg, - service-card-quinary-bg: $light-card-quinary-bg, - service-card-senary-bg: $light-card-senary-bg, + service-card-primary-bg: #ffffff, + service-card-secondary-bg: #f1efe8, + service-card-tertiary-bg: #ffffff, + service-card-quaternary-bg: #f1efe8, + service-card-quinary-bg: #ffffff, + service-card-senary-bg: #f1efe8, - // Icons - using same color for consistency - service-icon-primary: $light-text-primary, - service-icon-secondary: $light-text-primary, - service-icon-tertiary: $light-text-primary, - service-icon-quaternary: $light-text-primary, - service-icon-quinary: $light-text-primary, - service-icon-senary: $light-text-primary, + service-icon-primary: #ef9f27, + service-icon-secondary: #ef9f27, + service-icon-tertiary: #ef9f27, + service-icon-quaternary: #ef9f27, + service-icon-quinary: #ef9f27, + service-icon-senary: #ef9f27, - // Titles - using same color as icons - service-title-primary: $light-text-primary, - service-title-secondary: $light-text-primary, - service-title-tertiary: $light-text-primary, - service-title-quaternary: $light-text-primary, - service-title-quinary: $light-text-primary, - service-title-senary: $light-text-primary, + service-title-primary: #042c53, + service-title-secondary: #042c53, + service-title-tertiary: #042c53, + service-title-quaternary: #042c53, + service-title-quinary: #042c53, + service-title-senary: #042c53, - // Descriptions - using same color as icons and titles - service-description-primary: $light-text-primary, - service-description-secondary: $light-text-primary, - service-description-tertiary: $light-text-primary, - service-description-quaternary: $light-text-primary, - service-description-quinary: $light-text-primary, - service-description-senary: $light-text-primary + service-description-primary: #1a1a1a, + service-description-secondary: #1a1a1a, + service-description-tertiary: #1a1a1a, + service-description-quaternary: #1a1a1a, + service-description-quinary: #1a1a1a, + service-description-senary: #1a1a1a, ); $services-dark-theme: ( - // Section backgrounds - services-background: $dark-services-bg, - gradient-services-title: $dark-title-gradient, + services-background: #042c53, + gradient-services-title: #e6f1fb, - // Card backgrounds - service-card-primary-bg: $dark-card-primary-bg, - service-card-secondary-bg: $dark-card-secondary-bg, - service-card-tertiary-bg: $dark-card-tertiary-bg, - service-card-quaternary-bg: $dark-card-quaternary-bg, - service-card-quinary-bg: $dark-card-quinary-bg, - service-card-senary-bg: $dark-card-senary-bg, + service-card-primary-bg: rgba(12, 68, 124, 0.6), + service-card-secondary-bg: rgba(4, 44, 83, 0.8), + service-card-tertiary-bg: rgba(12, 68, 124, 0.6), + service-card-quaternary-bg: rgba(4, 44, 83, 0.8), + service-card-quinary-bg: rgba(12, 68, 124, 0.6), + service-card-senary-bg: rgba(4, 44, 83, 0.8), + service-icon-primary: #ef9f27, + service-icon-secondary: #ef9f27, + service-icon-tertiary: #ef9f27, + service-icon-quaternary: #ef9f27, + service-icon-quinary: #ef9f27, + service-icon-senary: #ef9f27, - // Icons - all using pure white - service-icon-primary: #ffffff, - service-icon-secondary: #ffffff, - service-icon-tertiary: #ffffff, - service-icon-quaternary: #ffffff, - service-icon-quinary: #ffffff, - service-icon-senary: #ffffff, + service-title-primary: #e6f1fb, + service-title-secondary: #e6f1fb, + service-title-tertiary: #e6f1fb, + service-title-quaternary: #e6f1fb, + service-title-quinary: #e6f1fb, + service-title-senary: #e6f1fb, - // Titles - all using pure white - service-title-primary: #ffffff, - service-title-secondary: #ffffff, - service-title-tertiary: #ffffff, - service-title-quaternary: #ffffff, - service-title-quinary: #ffffff, - service-title-senary: #ffffff, - - // Descriptions - all using pure white - service-description-primary: #ffffff, - service-description-secondary: #ffffff, - service-description-tertiary: #ffffff, - service-description-quaternary: #ffffff, - service-description-quinary: #ffffff, - service-description-senary: #ffffff + service-description-primary: #b5d4f4, + service-description-secondary: #b5d4f4, + service-description-tertiary: #b5d4f4, + service-description-quaternary: #b5d4f4, + service-description-quinary: #b5d4f4, + service-description-senary: #b5d4f4, ); diff --git a/src/scss/themes/_skills.scss b/src/scss/themes/_skills.scss index c34f5f8..ceb0189 100644 --- a/src/scss/themes/_skills.scss +++ b/src/scss/themes/_skills.scss @@ -52,245 +52,99 @@ $alpha-bg-card-strong: 0.95; $skills-light-theme: ( // Skills section colors - skills-background: linear-gradient(135deg, #e0e7ef 0%, #bae6fd 100%), - skills-background-pattern: - radial-gradient(circle at 25% 25%, $blue-primary, transparent 50%), - gradient-skills-title: - linear-gradient(90deg, $blue-tertiary, $blue-primary, $green-primary), - skills-category-bg: rgba($slate-50, $alpha-bg), - skills-category-border: rgba($slate-400, $alpha-medium), - skills-category-title-color: $slate-800, - skills-skill-name-color: $slate-700, - skills-skill-level-color: $slate-900, - skills-skill-percentage-color: $slate-600, - skills-progress-bg: rgba($slate-200, $alpha-bg-card), - // Card 1 - Web Frameworks (Blue theme) - skills-category-bg-primary: - linear-gradient( - 135deg, - rgba(239, 246, 255, $alpha-bg-card-alt), - rgba(219, 234, 254, $alpha-bg-card-strong) - ), - skills-category-border-primary: rgba($blue-primary, $alpha-medium), - skills-gradient-primary: - linear-gradient( - 135deg, - rgba($blue-primary, $alpha-light), - rgba($blue-secondary, 0.05) - ), - skills-accent-primary: $blue-primary, + skills-background: #ffffff, + skills-background-pattern: none, + gradient-skills-title: #042c53, + skills-category-bg: #ffffff, + skills-category-border: rgba(4, 44, 83, 0.12), + skills-category-title-color: #042c53, + skills-skill-name-color: #1a1a1a, + skills-skill-level-color: #1a1a1a, + skills-skill-percentage-color: #412402, + skills-progress-bg: rgba(4, 44, 83, 0.06), + skills-category-bg-primary: #ffffff, + skills-category-border-primary: rgba(4, 44, 83, 0.12), + skills-gradient-primary: transparent, + skills-accent-primary: #042c53, - // Card 2 - Styling & Design (Green theme) - skills-category-bg-secondary: - linear-gradient( - 135deg, - rgba(236, 253, 245, $alpha-bg-card-alt), - rgba(209, 250, 229, $alpha-bg-card-strong) - ), - skills-category-border-secondary: rgba($green-primary, $alpha-medium), - skills-gradient-secondary: - linear-gradient( - 135deg, - rgba($green-primary, $alpha-light), - rgba($green-secondary, 0.05) - ), - skills-accent-secondary: $green-primary, + skills-category-bg-secondary: #f1efe8, + skills-category-border-secondary: rgba(4, 44, 83, 0.12), + skills-gradient-secondary: transparent, + skills-accent-secondary: #042c53, - // Card 3 - Backend Development (Purple theme) - skills-category-bg-tertiary: - linear-gradient( - 135deg, - rgba(245, 243, 255, $alpha-bg-card-alt), - rgba(237, 233, 254, $alpha-bg-card-strong) - ), - skills-category-border-tertiary: rgba($purple-primary, $alpha-medium), - skills-gradient-tertiary: - linear-gradient( - 135deg, - rgba($purple-primary, $alpha-light), - rgba($purple-secondary, 0.05) - ), - skills-accent-tertiary: $purple-primary, + skills-category-bg-tertiary: #ffffff, + skills-category-border-tertiary: rgba(4, 44, 83, 0.12), + skills-gradient-tertiary: transparent, + skills-accent-tertiary: #042c53, - // Card 4 - Development Tools (Teal theme) - skills-category-bg-quaternary: - linear-gradient( - 135deg, - rgba(240, 253, 250, $alpha-bg-card-alt), - rgba(204, 251, 241, $alpha-bg-card-strong) - ), - skills-category-border-quaternary: rgba($teal-primary, $alpha-medium), - skills-gradient-quaternary: - linear-gradient( - 135deg, - rgba($teal-primary, $alpha-light), - rgba($teal-secondary, 0.05) - ), - skills-accent-quaternary: $teal-primary, + skills-category-bg-quaternary: #f1efe8, + skills-category-border-quaternary: rgba(4, 44, 83, 0.12), + skills-gradient-quaternary: transparent, + skills-accent-quaternary: #042c53, - // Card 5 - Testing & Quality (Orange theme) - skills-category-bg-quinary: - linear-gradient( - 135deg, - rgba(255, 251, 235, $alpha-bg-card-alt), - rgba(254, 243, 199, $alpha-bg-card-strong) - ), - skills-category-border-quinary: rgba($orange-primary, $alpha-medium), - skills-gradient-quinary: - linear-gradient( - 135deg, - rgba($orange-primary, $alpha-light), - rgba($orange-secondary, 0.05) - ), - skills-accent-quinary: $orange-primary, + skills-category-bg-quinary: #ffffff, + skills-category-border-quinary: rgba(4, 44, 83, 0.12), + skills-gradient-quinary: transparent, + skills-accent-quinary: #042c53, - // Card 6 - AI-Tools (Indigo theme) - skills-category-bg-senary: - linear-gradient( - 135deg, - rgba(238, 242, 255, $alpha-bg-card-alt), - rgba(224, 231, 255, $alpha-bg-card-strong) - ), - skills-category-border-senary: rgba($indigo-primary, $alpha-medium), - skills-gradient-senary: - linear-gradient( - 135deg, - rgba($indigo-primary, $alpha-light), - rgba($indigo-secondary, 0.05) - ), - skills-accent-senary: $indigo-primary, + skills-category-bg-senary: #f1efe8, + skills-category-border-senary: rgba(4, 44, 83, 0.12), + skills-gradient-senary: transparent, + skills-accent-senary: #042c53, - // Progress bar gradients - skills-progress-primary: - linear-gradient(90deg, $blue-primary, $blue-secondary, $blue-tertiary), - skills-progress-secondary: - linear-gradient(90deg, $green-primary, $green-secondary, $green-tertiary), - skills-progress-tertiary: - linear-gradient(90deg, $purple-primary, $purple-tertiary, $purple-secondary), - skills-progress-quaternary: - linear-gradient(90deg, $teal-primary, $teal-secondary, $teal-tertiary), - skills-progress-quinary: - linear-gradient(90deg, $orange-primary, $orange-secondary, $orange-tertiary), - skills-progress-senary: - linear-gradient(90deg, $indigo-primary, $indigo-secondary, $indigo-tertiary) + skills-progress-primary: #042c53, + skills-progress-secondary: #042c53, + skills-progress-tertiary: #042c53, + skills-progress-quaternary: #042c53, + skills-progress-quinary: #042c53, + skills-progress-senary: #042c53 ); $skills-dark-theme: ( - // Skills section colors - skills-background: linear-gradient(135deg, $slate-800 0%, #0ea5e9 100%), - skills-background-pattern: - radial-gradient(circle at 25% 25%, $blue-tertiary, transparent 50%), - gradient-skills-title: - linear-gradient(90deg, $blue-light, $green-light, $purple-light), - skills-category-bg: rgba($slate-800, $alpha-bg-card), - skills-category-border: rgba($slate-600, $alpha-heavy), - skills-category-title-color: #ffffff, - skills-skill-name-color: #ffffff, - skills-skill-level-color: #ffffff, - skills-skill-percentage-color: #ffffff, - skills-progress-bg: rgba($slate-700, $alpha-bg-card), - // Dark theme card backgrounds - skills-category-bg-primary: - linear-gradient( - 135deg, - rgba(30, 58, 138, 0.4), - rgba(29, 78, 216, $alpha-heavy) - ), - skills-category-border-primary: rgba($blue-light, $alpha-heavy), - skills-gradient-primary: - linear-gradient( - 135deg, - rgba($blue-light, $alpha-light), - rgba($blue-primary, 0.05) - ), - skills-accent-primary: $blue-light, + skills-background: #0c447c, + skills-background-pattern: none, + gradient-skills-title: #e6f1fb, + skills-category-bg: rgba(12, 68, 124, 0.6), + skills-category-border: rgba(230, 241, 251, 0.12), + skills-category-title-color: #e6f1fb, + skills-skill-name-color: #e6f1fb, + skills-skill-level-color: #e6f1fb, + skills-skill-percentage-color: #b5d4f4, + skills-progress-bg: rgba(230, 241, 251, 0.1), + skills-category-bg-primary: rgba(12, 68, 124, 0.6), + skills-category-border-primary: rgba(230, 241, 251, 0.12), + skills-gradient-primary: transparent, + skills-accent-primary: #ef9f27, - skills-category-bg-secondary: - linear-gradient( - 135deg, - rgba(6, 95, 70, 0.4), - rgba(4, 120, 87, $alpha-heavy) - ), - skills-category-border-secondary: rgba($green-light, $alpha-heavy), - skills-gradient-secondary: - linear-gradient( - 135deg, - rgba($green-light, $alpha-light), - rgba($green-primary, 0.05) - ), - skills-accent-secondary: $green-light, + skills-category-bg-secondary: rgba(4, 44, 83, 0.8), + skills-category-border-secondary: rgba(230, 241, 251, 0.12), + skills-gradient-secondary: transparent, + skills-accent-secondary: #ef9f27, - skills-category-bg-tertiary: - linear-gradient( - 135deg, - rgba(88, 28, 135, 0.4), - rgba(109, 40, 217, $alpha-heavy) - ), - skills-category-border-tertiary: rgba($purple-light, $alpha-heavy), - skills-gradient-tertiary: - linear-gradient( - 135deg, - rgba($purple-light, $alpha-light), - rgba($purple-primary, 0.05) - ), - skills-accent-tertiary: $purple-light, + skills-category-bg-tertiary: rgba(12, 68, 124, 0.6), + skills-category-border-tertiary: rgba(230, 241, 251, 0.12), + skills-gradient-tertiary: transparent, + skills-accent-tertiary: #ef9f27, - skills-category-bg-quaternary: - linear-gradient( - 135deg, - rgba(15, 118, 110, 0.4), - rgba(17, 94, 89, $alpha-heavy) - ), - skills-category-border-quaternary: rgba($teal-light, $alpha-heavy), - skills-gradient-quaternary: - linear-gradient( - 135deg, - rgba($teal-light, $alpha-light), - rgba($teal-primary, 0.05) - ), - skills-accent-quaternary: $teal-light, + skills-category-bg-quaternary: rgba(4, 44, 83, 0.8), + skills-category-border-quaternary: rgba(230, 241, 251, 0.12), + skills-gradient-quaternary: transparent, + skills-accent-quaternary: #ef9f27, - skills-category-bg-quinary: - linear-gradient( - 135deg, - rgba(180, 83, 9, 0.4), - rgba(217, 119, 6, $alpha-heavy) - ), - skills-category-border-quinary: rgba($orange-light, $alpha-heavy), - skills-gradient-quinary: - linear-gradient( - 135deg, - rgba($orange-light, $alpha-light), - rgba($orange-primary, 0.05) - ), - skills-accent-quinary: $orange-light, + skills-category-bg-quinary: rgba(12, 68, 124, 0.6), + skills-category-border-quinary: rgba(230, 241, 251, 0.12), + skills-gradient-quinary: transparent, + skills-accent-quinary: #ef9f27, - skills-category-bg-senary: - linear-gradient( - 135deg, - rgba(67, 56, 202, 0.4), - rgba(79, 70, 229, $alpha-heavy) - ), - skills-category-border-senary: rgba($indigo-light, $alpha-heavy), - skills-gradient-senary: - linear-gradient( - 135deg, - rgba($indigo-light, $alpha-light), - rgba($indigo-primary, 0.05) - ), - skills-accent-senary: $indigo-light, + skills-category-bg-senary: rgba(4, 44, 83, 0.8), + skills-category-border-senary: rgba(230, 241, 251, 0.12), + skills-gradient-senary: transparent, + skills-accent-senary: #ef9f27, - // Progress bars for dark theme - skills-progress-primary: - linear-gradient(90deg, $blue-light, $blue-primary, $blue-secondary), - skills-progress-secondary: - linear-gradient(90deg, $green-light, $green-primary, $green-secondary), - skills-progress-tertiary: - linear-gradient(90deg, $purple-light, $purple-primary, $purple-tertiary), - skills-progress-quaternary: - linear-gradient(90deg, $teal-light, $teal-primary, $teal-secondary), - skills-progress-quinary: - linear-gradient(90deg, $orange-light, $orange-primary, $orange-secondary), - skills-progress-senary: - linear-gradient(90deg, $indigo-light, $indigo-primary, $indigo-secondary) + skills-progress-primary: #ef9f27, + skills-progress-secondary: #ef9f27, + skills-progress-tertiary: #ef9f27, + skills-progress-quaternary: #ef9f27, + skills-progress-quinary: #ef9f27, + skills-progress-senary: #ef9f27, ); diff --git a/src/scss/variables.scss b/src/scss/variables.scss index dca2df8..fd83587 100644 --- a/src/scss/variables.scss +++ b/src/scss/variables.scss @@ -1,10 +1,11 @@ // Breakpoint variables -$mobile-breakpoint: 768px; -$desktop-breakpoint: 769px; +$mobile-breakpoint: 1050px; +$desktop-breakpoint: 1050px; // Color variables -$color-primary: #9333ea; -$color-secondary: #2563eb; +$color-primary: #042c53; +$color-secondary: #0c447c; +$color-heading: #042c53; // Shadow variables $shadow-sm: 0 4px 12px; @@ -48,32 +49,31 @@ $transition-fast: all 0.2s ease; $transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); // Common shadow variables -$shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), +$shadow-card: + 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); -$shadow-card-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), +$shadow-card-hover: + 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); -$shadow-card-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), +$shadow-card-lg: + 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); -$shadow-button: 0 4px 6px -1px rgba(0, 0, 0, 0.1), +$shadow-button: + 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); // Gradient variables -$gradient-primary: linear-gradient( - 90deg, - $color-secondary 0%, - $color-primary 100% -); +$gradient-primary: #042c53; -// Light theme gradient (keep original) +// Light theme gradient $gradient-text-light: linear-gradient( to right, $color-secondary, - $color-primary, - #0d9488 + $color-primary ); -// Dark theme gradient (white to light purple for hero title) -$gradient-text-dark: linear-gradient(to right, #ffffff, #c4b5fd, #a78bfa); +// Dark theme gradient +$gradient-text-dark: linear-gradient(to right, #e6f1fb, #b5d4f4); // Default gradient for backwards compatibility $gradient-text: $gradient-text-light; diff --git a/src/utils/scrollUtils.ts b/src/utils/scrollUtils.ts index dd8b26c..54aa508 100644 --- a/src/utils/scrollUtils.ts +++ b/src/utils/scrollUtils.ts @@ -1,22 +1,46 @@ import type { NavigateFunction } from 'react-router-dom'; +// Offset to account for sticky navbar height (65px) plus some padding +const SCROLL_OFFSET = 65; + +function isScrollablePath(pathname: string): boolean { + return ( + pathname === '/de/' || + pathname === '/en/' || + pathname === '/de/technical' || + pathname === '/en/technical' || + // legacy fallbacks + pathname === '/' || + pathname === '/technical' + ); +} + +/** Returns /de/technical or /en/technical depending on the current path prefix. */ +function getTechnicalPath(currentPath: string): string { + if (currentPath.startsWith('/en')) return '/en/technical'; + return '/de/technical'; +} + export function scrollToSection( sectionId: string, currentPath: string, navigate?: NavigateFunction ): void { - // If we're on the homepage, scroll directly to the section - if (currentPath === '/') { + if (isScrollablePath(currentPath)) { const element = document.getElementById(sectionId); if (element) { - element.scrollIntoView({ behavior: 'smooth' }); + const elementPosition = element.getBoundingClientRect().top; + const offsetPosition = elementPosition + window.scrollY - SCROLL_OFFSET; + + window.scrollTo({ + top: offsetPosition, + behavior: 'smooth' + }); } } else if (navigate) { - // If we're on another page, navigate to homepage with hash - navigate(`/#${sectionId}`); + navigate(`${getTechnicalPath(currentPath)}#${sectionId}`); } else { - // Fallback: direct navigation without router - globalThis.location.href = `/#${sectionId}`; + globalThis.location.href = `${getTechnicalPath(currentPath)}#${sectionId}`; } } diff --git a/vercel.json b/vercel.json index 3cdefcc..ce49b4c 100644 --- a/vercel.json +++ b/vercel.json @@ -3,13 +3,13 @@ "outputDirectory": "dist", "framework": "vite", "rewrites": [ - { - "source": "/privacy-policy", - "destination": "/privacy-policy.html" - }, - { - "source": "/(.*)", - "destination": "/index.html" - } + { "source": "/", "destination": "/de/" }, + { "source": "/technical", "destination": "/de/technical" }, + { "source": "/de/", "destination": "/de/index.html" }, + { "source": "/de/technical", "destination": "/de/technical/index.html" }, + { "source": "/en/", "destination": "/en/index.html" }, + { "source": "/en/technical", "destination": "/en/technical/index.html" }, + { "source": "/privacy-policy", "destination": "/privacy-policy.html" }, + { "source": "/(.*)", "destination": "/index.html" } ] }