6-24
This commit is contained in:
parent
93f8c057b6
commit
4029ecf2ca
12 changed files with 664 additions and 352 deletions
134
src/app/Navigation.css
Normal file
134
src/app/Navigation.css
Normal file
|
@ -0,0 +1,134 @@
|
||||||
|
/* Navigation.css - Fix alignment and padding issues */
|
||||||
|
|
||||||
|
/* Ensure navigation uses your existing nav structure */
|
||||||
|
nav {
|
||||||
|
padding-block: var(--space-md);
|
||||||
|
}
|
||||||
|
|
||||||
|
nav .container {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Logo active state - only addition to existing logo styles */
|
||||||
|
.logo.active {
|
||||||
|
color: var(--color-accent-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Navigation content container - ensure single line layout */
|
||||||
|
.nav-content {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
flex: 1;
|
||||||
|
margin-left: var(--space-xl);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Internal navigation links (left-aligned) */
|
||||||
|
.nav-links-internal {
|
||||||
|
display: flex;
|
||||||
|
list-style: none;
|
||||||
|
gap: var(--space-sm);
|
||||||
|
align-items: center;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* External navigation links (right-aligned) */
|
||||||
|
.nav-links-external {
|
||||||
|
display: flex;
|
||||||
|
list-style: none;
|
||||||
|
gap: var(--space-sm);
|
||||||
|
align-items: center;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Apply existing nav-links hover styles */
|
||||||
|
.nav-links-internal a:hover,
|
||||||
|
.nav-links-internal a:focus,
|
||||||
|
.nav-links-external a:hover,
|
||||||
|
.nav-links-external a:focus {
|
||||||
|
background-color: var(--pink-100);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Active state for internal navigation */
|
||||||
|
.nav-links-internal a.active {
|
||||||
|
color: var(--color-accent-secondary);
|
||||||
|
background-color: var(--pink-100);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Mobile styles - keep exact same behavior as original .nav-links */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.menu-toggle {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-content {
|
||||||
|
position: fixed;
|
||||||
|
top: 60px;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
background-color: var(--color-bg-primary);
|
||||||
|
flex-direction: column;
|
||||||
|
gap: var(--space-md);
|
||||||
|
padding: var(--space-md);
|
||||||
|
box-shadow: var(--shadow-lg);
|
||||||
|
border-top: 1px solid var(--pink-200);
|
||||||
|
transform: translateY(-100%);
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
transition: all var(--duration-normal) var(--ease-out);
|
||||||
|
z-index: 100;
|
||||||
|
margin-left: 0;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-content.menu-open {
|
||||||
|
transform: translateY(0);
|
||||||
|
opacity: 1;
|
||||||
|
pointer-events: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links-internal,
|
||||||
|
.nav-links-external {
|
||||||
|
flex-direction: column;
|
||||||
|
width: 100%;
|
||||||
|
gap: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links-internal {
|
||||||
|
border-bottom: 1px solid var(--pink-200);
|
||||||
|
padding-bottom: var(--space-md);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links-external {
|
||||||
|
padding-top: var(--space-md);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links-internal li,
|
||||||
|
.nav-links-external li {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links-internal a,
|
||||||
|
.nav-links-external a {
|
||||||
|
width: 100%;
|
||||||
|
justify-content: center;
|
||||||
|
padding: var(--space-md);
|
||||||
|
margin-bottom: var(--space-xs);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Dark mode - apply to new classes */
|
||||||
|
.dark-mode .nav-links-internal a:hover,
|
||||||
|
.dark-mode .nav-links-internal a:focus,
|
||||||
|
.dark-mode .nav-links-external a:hover,
|
||||||
|
.dark-mode .nav-links-external a:focus {
|
||||||
|
background-color: var(--pink-100);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark-mode .nav-links-internal a.active {
|
||||||
|
background-color: var(--pink-100);
|
||||||
|
}
|
|
@ -6,66 +6,125 @@
|
||||||
--pink-400: #F45D9E;
|
--pink-400: #F45D9E;
|
||||||
--pink-500: #D23B80;
|
--pink-500: #D23B80;
|
||||||
|
|
||||||
--sage-200: #D4E6D5;
|
--sage-200: #B8D1BA;
|
||||||
--sage-300: #B5D4B7;
|
--sage-300: #9BC49E;
|
||||||
--sage-400: #8AB68C;
|
--sage-400: #6B9A6D;
|
||||||
--sage-500: #6A9A6C;
|
--sage-500: #4A7A4C;
|
||||||
|
|
||||||
--cream-50: #FFFEF5;
|
--cream-50: #FFFEF5;
|
||||||
--cream-100: #FFF9F0;
|
--cream-100: #FFF9F0;
|
||||||
|
|
||||||
--text: #4a4a4a;
|
--color-text-primary: #4a4a4a;
|
||||||
--bg-primary: var(--pink-50);
|
--color-text-secondary: #6b7280;
|
||||||
--bg-secondary: white;
|
--color-bg-primary: var(--pink-50);
|
||||||
--accent-primary: var(--pink-400);
|
--color-bg-secondary: white;
|
||||||
--accent-secondary: var(--sage-400);
|
--color-accent-primary: var(--pink-400);
|
||||||
|
--color-accent-secondary: var(--sage-400);
|
||||||
--space-xs: 0.25rem;
|
--color-border: var(--sage-200);
|
||||||
--space-sm: 0.5rem;
|
|
||||||
|
--space-3xs: 0.125rem;
|
||||||
|
--space-2xs: 0.25rem;
|
||||||
|
--space-xs: 0.5rem;
|
||||||
|
--space-sm: 0.75rem;
|
||||||
--space-md: 1rem;
|
--space-md: 1rem;
|
||||||
--space-lg: 1.5rem;
|
--space-lg: 1.5rem;
|
||||||
--space-xl: 2rem;
|
--space-xl: 2rem;
|
||||||
--space-xxl: 3rem;
|
--space-2xl: 2.5rem;
|
||||||
|
--space-3xl: 3rem;
|
||||||
|
|
||||||
|
--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;
|
||||||
|
--font-size-5xl: 3rem;
|
||||||
|
|
||||||
--container-max: 1200px;
|
--container-max: 1200px;
|
||||||
--transition: 0.2s ease;
|
--container-padding: var(--space-md);
|
||||||
|
|
||||||
|
--duration-fast: 0.15s;
|
||||||
|
--duration-normal: 0.2s;
|
||||||
|
--duration-slow: 0.3s;
|
||||||
|
--ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
||||||
|
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
|
||||||
|
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||||
|
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
|
||||||
|
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
|
||||||
|
--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
|
||||||
|
|
||||||
|
--radius-sm: 0.25rem;
|
||||||
|
--radius-md: 0.5rem;
|
||||||
|
--radius-lg: 0.75rem;
|
||||||
|
--radius-xl: 1rem;
|
||||||
|
--radius-full: 9999px;
|
||||||
|
|
||||||
|
--focus-ring: 0 0 0 3px var(--pink-300);
|
||||||
}
|
}
|
||||||
|
|
||||||
*,
|
*,
|
||||||
*::before,
|
*::before,
|
||||||
*::after {
|
*::after {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
html {
|
||||||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
text-rendering: optimizeLegibility;
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
color: var(--text);
|
color: var(--color-text-primary);
|
||||||
background-color: var(--bg-primary);
|
background-color: var(--color-bg-primary);
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
-webkit-font-smoothing: antialiased;
|
font-size: var(--font-size-base);
|
||||||
|
}
|
||||||
|
|
||||||
|
:focus {
|
||||||
|
outline: none;
|
||||||
|
box-shadow: var(--focus-ring);
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:focus:not(:focus-visible) {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
:focus-visible {
|
||||||
|
box-shadow: var(--focus-ring);
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: var(--container-max);
|
max-width: var(--container-max);
|
||||||
margin: 0 auto;
|
margin-inline: auto;
|
||||||
padding: 0 var(--space-md);
|
padding-inline: var(--container-padding);
|
||||||
}
|
}
|
||||||
|
|
||||||
.skip-link {
|
.skip-link {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -40px;
|
top: -40px;
|
||||||
left: 0;
|
left: 0;
|
||||||
padding: var(--space-sm) var(--space-md);
|
padding: var(--space-xs) var(--space-md);
|
||||||
background-color: var(--accent-primary);
|
background-color: var(--color-accent-primary);
|
||||||
color: white;
|
color: white;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
transition: top var(--transition);
|
transition: top var(--duration-normal) var(--ease-out);
|
||||||
|
border-radius: 0 0 var(--radius-md) 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.skip-link:focus {
|
.skip-link:focus {
|
||||||
|
@ -84,59 +143,105 @@ body {
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
.btn {
|
||||||
h2,
|
display: inline-flex;
|
||||||
h3 {
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: var(--space-xs) var(--space-md);
|
||||||
|
border: 2px solid transparent;
|
||||||
|
border-radius: var(--radius-full);
|
||||||
|
font-size: var(--font-size-sm);
|
||||||
|
font-weight: 500;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all var(--duration-normal) var(--ease-out);
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn:hover,
|
||||||
|
.btn:focus {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: var(--shadow-md);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn--primary {
|
||||||
|
background-color: var(--color-accent-primary);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn--secondary {
|
||||||
|
background-color: var(--sage-200);
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
margin-bottom: var(--space-md);
|
margin-bottom: var(--space-md);
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: -0.025em;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: clamp(2.25rem, 5vw, 3rem);
|
font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
|
||||||
color: var(--accent-primary);
|
color: var(--color-accent-primary);
|
||||||
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: clamp(1.75rem, 4vw, 2rem);
|
font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-3xl));
|
||||||
color: var(--accent-secondary);
|
color: var(--color-accent-secondary);
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: clamp(1.25rem, 3vw, 1.5rem);
|
font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-2xl));
|
||||||
color: var(--accent-primary);
|
color: var(--color-accent-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin-bottom: var(--space-md);
|
margin-bottom: var(--space-md);
|
||||||
|
max-width: 65ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--accent-primary);
|
color: var(--color-accent-primary);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: color var(--transition);
|
transition: all var(--duration-normal) var(--ease-out);
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover,
|
a:hover,
|
||||||
a:focus {
|
a:focus {
|
||||||
color: var(--accent-secondary);
|
color: var(--color-accent-secondary);
|
||||||
text-decoration: underline;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:focus {
|
a:not(.btn):not(.logo)::after {
|
||||||
outline: 3px solid var(--pink-300);
|
content: '';
|
||||||
outline-offset: 3px;
|
position: absolute;
|
||||||
|
bottom: -2px;
|
||||||
|
left: 0;
|
||||||
|
width: 0;
|
||||||
|
height: 2px;
|
||||||
|
background-color: currentColor;
|
||||||
|
transition: width var(--duration-normal) var(--ease-out);
|
||||||
|
}
|
||||||
|
|
||||||
|
a:not(.btn):not(.logo):hover::after,
|
||||||
|
a:not(.btn):not(.logo):focus::after {
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
background-color: var(--bg-primary);
|
background-color: var(--color-bg-primary);
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
box-shadow: var(--shadow-sm);
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
-webkit-backdrop-filter: blur(10px);
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
padding: var(--space-md) 0;
|
padding-block: var(--space-md);
|
||||||
}
|
}
|
||||||
|
|
||||||
nav .container {
|
nav .container {
|
||||||
|
@ -146,14 +251,10 @@ nav .container {
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
font-weight: bold;
|
font-weight: 700;
|
||||||
font-size: 1.25rem;
|
font-size: var(--font-size-xl);
|
||||||
color: var(--accent-primary);
|
color: var(--color-accent-primary);
|
||||||
}
|
letter-spacing: -0.025em;
|
||||||
|
|
||||||
.logo:hover,
|
|
||||||
.logo:focus {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-links {
|
.nav-links {
|
||||||
|
@ -163,82 +264,59 @@ nav .container {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-links a {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
padding: var(--space-sm) var(--space-md);
|
|
||||||
border-radius: 9999px;
|
|
||||||
background-color: var(--sage-200);
|
|
||||||
color: var(--text);
|
|
||||||
transition: all var(--transition);
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-links a:hover,
|
.nav-links a:hover,
|
||||||
.nav-links a:focus {
|
.nav-links a:focus {
|
||||||
background-color: var(--pink-200);
|
background-color: var(--pink-100);
|
||||||
text-decoration: none;
|
|
||||||
transform: translateY(-2px);
|
|
||||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-toggle {
|
.theme-toggle,
|
||||||
|
.menu-toggle {
|
||||||
background-color: var(--pink-300);
|
background-color: var(--pink-300);
|
||||||
border: none;
|
border: none;
|
||||||
color: white;
|
color: white;
|
||||||
width: 36px;
|
width: 36px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
border-radius: 50%;
|
border-radius: var(--radius-full);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all var(--transition);
|
transition: all var(--duration-normal) var(--ease-out);
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-toggle:hover,
|
.theme-toggle:hover,
|
||||||
.theme-toggle:focus {
|
.theme-toggle:focus,
|
||||||
|
.menu-toggle:hover,
|
||||||
|
.menu-toggle:focus {
|
||||||
background-color: var(--pink-200);
|
background-color: var(--pink-200);
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px) scale(1.05);
|
||||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
box-shadow: var(--shadow-md);
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-toggle {
|
.menu-toggle {
|
||||||
display: none;
|
display: none;
|
||||||
background-color: var(--pink-300);
|
|
||||||
border: none;
|
|
||||||
width: 36px;
|
|
||||||
height: 36px;
|
|
||||||
border-radius: 50%;
|
|
||||||
position: relative;
|
|
||||||
cursor: pointer;
|
|
||||||
color: white;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
transition: all var(--transition);
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-toggle:hover,
|
|
||||||
.menu-toggle:focus {
|
|
||||||
background-color: var(--pink-200);
|
|
||||||
transform: translateY(-2px);
|
|
||||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: var(--space-xxl) 0;
|
padding-block: var(--space-3xl);
|
||||||
}
|
}
|
||||||
|
|
||||||
.intro {
|
.intro {
|
||||||
background-color: var(--bg-secondary);
|
background-color: var(--color-bg-secondary);
|
||||||
border-radius: 0.75rem;
|
border-radius: var(--radius-lg);
|
||||||
padding: var(--space-xl);
|
padding: var(--space-xl);
|
||||||
margin-bottom: var(--space-xxl);
|
margin-bottom: var(--space-3xl);
|
||||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
|
box-shadow: var(--shadow-md);
|
||||||
|
transition: box-shadow var(--duration-slow) var(--ease-out);
|
||||||
|
}
|
||||||
|
|
||||||
|
.intro:hover {
|
||||||
|
box-shadow: var(--shadow-lg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.projects {
|
.projects {
|
||||||
margin-bottom: var(--space-xxl);
|
margin-bottom: var(--space-3xl);
|
||||||
}
|
}
|
||||||
|
|
||||||
.projects h2 {
|
.projects h2 {
|
||||||
|
@ -253,27 +331,28 @@ main {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
margin-left: var(--space-md);
|
margin-left: var(--space-md);
|
||||||
background-color: var(--sage-200);
|
background: linear-gradient(to right, var(--color-border), transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-grid {
|
.project-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
|
||||||
gap: var(--space-lg);
|
gap: var(--space-lg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.project {
|
.project {
|
||||||
background-color: var(--bg-secondary);
|
background-color: var(--color-bg-secondary);
|
||||||
border-radius: 0.5rem;
|
border-radius: var(--radius-md);
|
||||||
padding: var(--space-md);
|
padding: var(--space-md);
|
||||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
|
box-shadow: var(--shadow-sm);
|
||||||
transition: transform var(--transition), box-shadow var(--transition);
|
transition: box-shadow var(--duration-normal) var(--ease-out);
|
||||||
|
border: 1px solid transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.project:hover,
|
.project:hover,
|
||||||
.project:focus-within {
|
.project:focus-within {
|
||||||
transform: translateY(-4px);
|
box-shadow: var(--shadow-lg);
|
||||||
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
|
border-color: var(--pink-200);
|
||||||
}
|
}
|
||||||
|
|
||||||
.project h3 {
|
.project h3 {
|
||||||
|
@ -282,133 +361,20 @@ main {
|
||||||
|
|
||||||
.project p {
|
.project p {
|
||||||
margin-bottom: var(--space-sm);
|
margin-bottom: var(--space-sm);
|
||||||
|
color: var(--color-text-secondary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.project a {
|
.project a {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 0.875rem;
|
font-size: var(--font-size-sm);
|
||||||
transition: all var(--transition);
|
font-weight: 500;
|
||||||
}
|
|
||||||
|
|
||||||
.project a:hover,
|
|
||||||
.project a:focus {
|
|
||||||
transform: translateY(-2px);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-small {
|
.icon-small {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
margin-left: var(--space-xs);
|
margin-left: var(--space-2xs);
|
||||||
}
|
|
||||||
|
|
||||||
footer {
|
|
||||||
background-color: var(--pink-100);
|
|
||||||
padding: var(--space-xl);
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.social-links {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: var(--space-xs);
|
|
||||||
list-style: none;
|
|
||||||
margin-bottom: var(--space-md);
|
|
||||||
}
|
|
||||||
|
|
||||||
.social-links li:not(:last-child)::after {
|
|
||||||
content: "•";
|
|
||||||
margin: 0 var(--space-xs);
|
|
||||||
}
|
|
||||||
|
|
||||||
.theme-note {
|
|
||||||
margin-top: var(--space-md);
|
|
||||||
padding: var(--space-sm) var(--space-md);
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dark-mode {
|
|
||||||
--pink-50: #3A2A35;
|
|
||||||
--pink-100: #59354B;
|
|
||||||
--pink-200: #8E5773;
|
|
||||||
--pink-300: #B47A93;
|
|
||||||
--pink-400: #D7A1B8;
|
|
||||||
--pink-500: #E9C3D3;
|
|
||||||
--sage-200: #3D5D3E;
|
|
||||||
--sage-300: #7BA97D;
|
|
||||||
--sage-400: #5D8F5F;
|
|
||||||
--text: #f7fafc;
|
|
||||||
--bg-primary: #1a202c;
|
|
||||||
--bg-secondary: #2d3748;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dark-mode .projects h2::after {
|
|
||||||
background: linear-gradient(to right, var(--pink-400), transparent);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.menu-toggle {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-links {
|
|
||||||
position: fixed;
|
|
||||||
top: 60px;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
background-color: var(--bg-primary);
|
|
||||||
flex-direction: column;
|
|
||||||
padding: var(--space-md);
|
|
||||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
||||||
border-top: 1px solid var(--pink-200);
|
|
||||||
transform: translateY(-100%);
|
|
||||||
opacity: 0;
|
|
||||||
pointer-events: none;
|
|
||||||
transition: transform var(--transition), opacity var(--transition);
|
|
||||||
z-index: 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-links.menu-open {
|
|
||||||
transform: translateY(0);
|
|
||||||
opacity: 1;
|
|
||||||
pointer-events: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-links li {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-links a {
|
|
||||||
display: flex;
|
|
||||||
width: 100%;
|
|
||||||
padding: var(--space-md);
|
|
||||||
margin-bottom: var(--space-xs);
|
|
||||||
transform: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-links a:hover,
|
|
||||||
.nav-links a:focus {
|
|
||||||
transform: none;
|
|
||||||
box-shadow: none;
|
|
||||||
background-color: var(--pink-200);
|
|
||||||
}
|
|
||||||
|
|
||||||
.intro {
|
|
||||||
padding: var(--space-lg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 769px) {
|
|
||||||
.project-grid {
|
|
||||||
grid-template-columns: repeat(2, 1fr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 1024px) {
|
|
||||||
.project-grid {
|
|
||||||
grid-template-columns: repeat(3, 1fr);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.resume-header {
|
.resume-header {
|
||||||
|
@ -422,20 +388,22 @@ footer {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: var(--space-md);
|
gap: var(--space-md);
|
||||||
font-size: 0.95rem;
|
font-size: var(--font-size-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.resume-section {
|
.resume-section {
|
||||||
background-color: var(--bg-secondary);
|
background-color: var(--color-bg-secondary);
|
||||||
border-radius: 0.75rem;
|
border-radius: var(--radius-lg);
|
||||||
padding: var(--space-xl);
|
padding: var(--space-xl);
|
||||||
margin-bottom: var(--space-xl);
|
margin-bottom: var(--space-xl);
|
||||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
|
box-shadow: var(--shadow-md);
|
||||||
transition: transform var(--transition), box-shadow var(--transition);
|
transition: box-shadow var(--duration-normal) var(--ease-out);
|
||||||
|
border: 1px solid transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.resume-section:hover {
|
.resume-section:hover {
|
||||||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
|
box-shadow: var(--shadow-lg);
|
||||||
|
border-color: var(--pink-100);
|
||||||
}
|
}
|
||||||
|
|
||||||
.resume-section h2 {
|
.resume-section h2 {
|
||||||
|
@ -450,11 +418,7 @@ footer {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
margin-left: var(--space-md);
|
margin-left: var(--space-md);
|
||||||
background-color: var(--sage-200);
|
background: linear-gradient(to right, var(--color-border), transparent);
|
||||||
}
|
|
||||||
|
|
||||||
.dark-mode .resume-section h2::after {
|
|
||||||
background: linear-gradient(to right, var(--pink-400), transparent);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.education-item,
|
.education-item,
|
||||||
|
@ -468,26 +432,29 @@ footer {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin-bottom: var(--space-xs);
|
margin-bottom: var(--space-xs);
|
||||||
|
gap: var(--space-xs);
|
||||||
}
|
}
|
||||||
|
|
||||||
.location {
|
.location {
|
||||||
color: var(--accent-primary);
|
color: var(--color-accent-primary);
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.date {
|
.date {
|
||||||
color: var(--text);
|
color: var(--color-text-secondary);
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
font-size: var(--font-size-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.degree,
|
.degree,
|
||||||
.job-title {
|
.job-title {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--accent-secondary);
|
color: var(--color-accent-secondary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.gpa {
|
.gpa {
|
||||||
margin-bottom: var(--space-md);
|
margin-bottom: var(--space-md);
|
||||||
|
font-size: var(--font-size-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.coursework {
|
.coursework {
|
||||||
|
@ -501,29 +468,274 @@ footer {
|
||||||
|
|
||||||
.bullet-list li {
|
.bullet-list li {
|
||||||
margin-bottom: var(--space-xs);
|
margin-bottom: var(--space-xs);
|
||||||
|
line-height: 1.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skills-sections {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: var(--space-2xl);
|
||||||
|
}
|
||||||
|
|
||||||
|
.skill-section {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skill-heading {
|
||||||
|
font-size: var(--font-size-lg);
|
||||||
|
color: var(--color-accent-primary);
|
||||||
|
margin-bottom: var(--space-lg);
|
||||||
|
border-bottom: 2px solid var(--color-border);
|
||||||
|
padding-bottom: var(--space-sm);
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skill-heading::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
bottom: -2px;
|
||||||
|
left: 0;
|
||||||
|
width: 60px;
|
||||||
|
height: 2px;
|
||||||
|
background-color: var(--color-accent-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.skills-grid {
|
.skills-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||||
gap: var(--space-md);
|
gap: var(--space-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.skill-category {
|
.skill-category {
|
||||||
display: flex;
|
background: linear-gradient(135deg, var(--pink-50), var(--cream-50));
|
||||||
align-items: center;
|
border: 1px solid var(--pink-200);
|
||||||
gap: var(--space-xs);
|
border-radius: var(--radius-md);
|
||||||
|
padding: var(--space-sm) var(--space-md);
|
||||||
|
font-size: var(--font-size-sm);
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
text-align: center;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.skill-category::before {
|
.skill-category::before {
|
||||||
content: '•';
|
content: '';
|
||||||
color: var(--accent-primary);
|
position: absolute;
|
||||||
font-size: 1.5rem;
|
top: 0;
|
||||||
|
left: -100%;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.skill-category:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: var(--shadow-md);
|
||||||
|
border-color: var(--color-accent-primary);
|
||||||
|
background: linear-gradient(135deg, var(--pink-100), var(--cream-100));
|
||||||
|
}
|
||||||
|
|
||||||
|
.skill-category:hover::before {
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
background-color: var(--pink-100);
|
||||||
|
padding: var(--space-xl);
|
||||||
|
text-align: center;
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-links {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: var(--space-md);
|
||||||
|
list-style: none;
|
||||||
|
margin-bottom: var(--space-md);
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-links li {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-links li:not(:last-child)::after {
|
||||||
|
content: "•";
|
||||||
|
position: absolute;
|
||||||
|
right: calc(-1 * var(--space-md) / 2);
|
||||||
|
color: var(--color-text-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-note {
|
||||||
|
margin-top: var(--space-md);
|
||||||
|
padding: var(--space-sm) var(--space-md);
|
||||||
|
display: inline-block;
|
||||||
|
background-color: rgba(255, 255, 255, 0.5);
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
font-size: var(--font-size-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-link:hover {
|
||||||
|
transform: translateX(-4px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark-mode {
|
||||||
|
--pink-50: #3A2A35;
|
||||||
|
--pink-100: #59354B;
|
||||||
|
--pink-200: #8E5773;
|
||||||
|
--pink-300: #B47A93;
|
||||||
|
--pink-400: #D7A1B8;
|
||||||
|
--pink-500: #E9C3D3;
|
||||||
|
--sage-200: #3D5D3E;
|
||||||
|
--sage-300: #7BA97D;
|
||||||
|
--sage-400: #5D8F5F;
|
||||||
|
--sage-500: #4A7A4C;
|
||||||
|
--color-text-primary: #f7fafc;
|
||||||
|
--color-text-secondary: #a0aec0;
|
||||||
|
--color-bg-primary: #1a202c;
|
||||||
|
--color-bg-secondary: #2d3748;
|
||||||
|
--color-border: var(--pink-300);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.dark-mode .projects h2::after,
|
||||||
|
.dark-mode .resume-section h2::after {
|
||||||
|
background: linear-gradient(to right, var(--pink-400), transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark-mode .skill-heading {
|
||||||
|
border-bottom-color: var(--pink-300);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark-mode .skill-heading::after {
|
||||||
|
background-color: var(--pink-400);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark-mode .skill-category {
|
||||||
|
background: linear-gradient(135deg, var(--pink-100), var(--sage-200));
|
||||||
|
border-color: var(--pink-300);
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark-mode .skill-category:hover {
|
||||||
|
background: linear-gradient(135deg, var(--pink-200), var(--sage-300));
|
||||||
|
border-color: var(--pink-400);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
:root {
|
||||||
|
--container-padding: var(--space-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-toggle {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links {
|
||||||
|
position: fixed;
|
||||||
|
top: 60px;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
background-color: var(--color-bg-primary);
|
||||||
|
flex-direction: column;
|
||||||
|
padding: var(--space-md);
|
||||||
|
box-shadow: var(--shadow-lg);
|
||||||
|
border-top: 1px solid var(--pink-200);
|
||||||
|
transform: translateY(-100%);
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
transition: all var(--duration-normal) var(--ease-out);
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links.menu-open {
|
||||||
|
transform: translateY(0);
|
||||||
|
opacity: 1;
|
||||||
|
pointer-events: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links li {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links a {
|
||||||
|
width: 100%;
|
||||||
|
justify-content: center;
|
||||||
|
padding: var(--space-md);
|
||||||
|
margin-bottom: var(--space-xs);
|
||||||
|
}
|
||||||
|
|
||||||
|
.intro {
|
||||||
|
padding: var(--space-lg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.education-header,
|
||||||
|
.experience-header {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.resume-section {
|
||||||
|
padding: var(--space-lg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.skills-grid {
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skills-sections {
|
||||||
|
gap: var(--space-xl);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 769px) {
|
||||||
|
.project-grid {
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
.skills-grid {
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1024px) {
|
||||||
|
.project-grid {
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
.skills-grid {
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
|
animation-duration: 0.01ms !important;
|
||||||
|
animation-iteration-count: 1 !important;
|
||||||
|
transition-duration: 0.01ms !important;
|
||||||
|
scroll-behavior: auto !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
|
:root {
|
||||||
|
--color-bg-primary: white;
|
||||||
|
--color-bg-secondary: white;
|
||||||
|
--shadow-sm: none;
|
||||||
|
--shadow-md: none;
|
||||||
|
--shadow-lg: none;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
header,
|
header,
|
||||||
|
@ -542,46 +754,25 @@ footer {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
page-break-inside: avoid;
|
page-break-inside: avoid;
|
||||||
margin-bottom: var(--space-lg);
|
margin-bottom: var(--space-lg);
|
||||||
|
border: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
.resume-section:hover {
|
.resume-section:hover {
|
||||||
transform: none;
|
transform: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.skill-heading {
|
a {
|
||||||
font-size: 1.1rem;
|
color: black;
|
||||||
color: var(--accent-primary);
|
text-decoration: underline;
|
||||||
margin-top: var(--space-lg);
|
|
||||||
margin-bottom: var(--space-sm);
|
|
||||||
border-bottom: 1px solid var(--sage-200);
|
|
||||||
padding-bottom: var(--space-xs);
|
|
||||||
}
|
|
||||||
|
|
||||||
.skill-heading:first-of-type {
|
|
||||||
margin-top: var(--space-lg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.dark-mode .skill-heading {
|
|
||||||
border-bottom-color: var(--pink-300);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.education-header,
|
|
||||||
.experience-header {
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.resume-section {
|
.project {
|
||||||
padding: var(--space-lg);
|
border: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
.skills-grid {
|
.skill-category {
|
||||||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
background: #f5f5f5;
|
||||||
|
border: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.back-link:hover {
|
|
||||||
transform: translateX(-4px);
|
|
||||||
}
|
}
|
|
@ -4,6 +4,7 @@ import { usePathname } from 'next/navigation';
|
||||||
import { Header } from '@/components/Header/Header';
|
import { Header } from '@/components/Header/Header';
|
||||||
import { Footer } from '@/components/Footer/Footer';
|
import { Footer } from '@/components/Footer/Footer';
|
||||||
import './globals.css';
|
import './globals.css';
|
||||||
|
import './Navigation.css';
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
children,
|
children,
|
||||||
|
|
|
@ -9,8 +9,6 @@ export default function Home() {
|
||||||
<h1>Hi! I'm Charlotte</h1>
|
<h1>Hi! I'm Charlotte</h1>
|
||||||
<h2>About Me</h2>
|
<h2>About Me</h2>
|
||||||
<p>I'm a cybersecurity student from the Northeast USA. I currently work as a security engineer at the Leahy Center in Burlington, VT.</p>
|
<p>I'm a cybersecurity student from the Northeast USA. I currently work as a security engineer at the Leahy Center in Burlington, VT.</p>
|
||||||
<p>Most of my coding projects are hosted on my Forgejo server at <a href="https://git.charlotte.sh/" target="_blank" rel="noopener noreferrer">git.charlotte.sh</a></p>
|
|
||||||
<p>Hiring? you can find my resume <Link href="/resume">here</Link></p>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="projects">
|
<section className="projects">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { ExternalLink, Rss } from 'lucide-react';
|
import { ExternalLink, Rss } from 'lucide-react';
|
||||||
import { footerLinks } from '@/data/social';
|
import { footerLinks } from '@/data/navigation';
|
||||||
|
|
||||||
export function Footer() {
|
export function Footer() {
|
||||||
const currentYear = new Date().getFullYear();
|
const currentYear = new Date().getFullYear();
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
|
// Header.tsx
|
||||||
import { Navigation } from './Navigation';
|
import { Navigation } from './Navigation';
|
||||||
|
|
||||||
export function Header() {
|
export function Header() {
|
||||||
return (
|
return (
|
||||||
<header>
|
<header className="site-header">
|
||||||
<Navigation />
|
<Navigation />
|
||||||
</header>
|
</header>
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,18 +1,21 @@
|
||||||
|
// Navigation.tsx
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
import { usePathname } from 'next/navigation';
|
||||||
import { Menu, X, ExternalLink } from 'lucide-react';
|
import { Menu, X, ExternalLink } from 'lucide-react';
|
||||||
import { ThemeToggle } from './ThemeToggle';
|
import { ThemeToggle } from './ThemeToggle';
|
||||||
import { headerLinks } from '@/data/social';
|
import { internalLinks, headerLinks } from '@/data/navigation';
|
||||||
|
|
||||||
export function Navigation() {
|
export function Navigation() {
|
||||||
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
||||||
|
const pathname = usePathname();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleClickOutside = (event: MouseEvent) => {
|
const handleClickOutside = (event: MouseEvent) => {
|
||||||
const target = event.target as HTMLElement;
|
const target = event.target as HTMLElement;
|
||||||
if (!target.closest('.menu-toggle') && !target.closest('.nav-links') && isMenuOpen) {
|
if (!target.closest('.menu-toggle') && !target.closest('.nav-content') && isMenuOpen) {
|
||||||
setIsMenuOpen(false);
|
setIsMenuOpen(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -21,34 +24,63 @@ export function Navigation() {
|
||||||
return () => document.removeEventListener('click', handleClickOutside);
|
return () => document.removeEventListener('click', handleClickOutside);
|
||||||
}, [isMenuOpen]);
|
}, [isMenuOpen]);
|
||||||
|
|
||||||
|
// Close menu when route changes
|
||||||
|
useEffect(() => {
|
||||||
|
setIsMenuOpen(false);
|
||||||
|
}, [pathname]);
|
||||||
|
|
||||||
|
const toggleMenu = () => {
|
||||||
|
setIsMenuOpen(!isMenuOpen);
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<nav aria-label="Main navigation">
|
<nav aria-label="Main navigation">
|
||||||
<div className="container">
|
<div className="container">
|
||||||
<Link href="/" className="logo">./charlotte.sh</Link>
|
<Link href="/" className={`logo ${pathname === '/' ? 'active' : ''}`}>
|
||||||
|
./charlotte.sh
|
||||||
|
</Link>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
className="menu-toggle"
|
className="menu-toggle"
|
||||||
aria-expanded={isMenuOpen}
|
aria-expanded={isMenuOpen}
|
||||||
aria-controls="primary-menu"
|
aria-controls="navigation-menu"
|
||||||
aria-label="Toggle menu"
|
aria-label="Toggle menu"
|
||||||
onClick={() => setIsMenuOpen(!isMenuOpen)}
|
onClick={toggleMenu}
|
||||||
>
|
>
|
||||||
{isMenuOpen ? <X size={24} /> : <Menu size={24} />}
|
{isMenuOpen ? <X size={24} /> : <Menu size={24} />}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<ul className={`nav-links ${isMenuOpen ? 'menu-open' : ''}`} id="primary-menu">
|
<div className={`nav-content ${isMenuOpen ? 'menu-open' : ''}`} id="navigation-menu">
|
||||||
{headerLinks.map((link) => (
|
{/* Internal Navigation Links (Left) */}
|
||||||
<li key={link.name}>
|
<ul className="nav-links-internal">
|
||||||
<a href={link.url} target="_blank" rel="noopener noreferrer">
|
{internalLinks.map((link) => (
|
||||||
{link.name} <ExternalLink className="icon-small" />
|
<li key={link.name}>
|
||||||
<span className="visually-hidden">(opens in new tab)</span>
|
<Link
|
||||||
</a>
|
href={link.href}
|
||||||
|
className={pathname === link.href ? 'active' : ''}
|
||||||
|
>
|
||||||
|
{link.name}
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
{/* External Social Links (Right) */}
|
||||||
|
<ul className="nav-links-external">
|
||||||
|
{headerLinks.map((link) => (
|
||||||
|
<li key={link.name}>
|
||||||
|
<a href={link.url} target="_blank" rel="noopener noreferrer">
|
||||||
|
{link.name}
|
||||||
|
<ExternalLink className="icon-small" />
|
||||||
|
<span className="visually-hidden">(opens in new tab)</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
<li>
|
||||||
|
<ThemeToggle />
|
||||||
</li>
|
</li>
|
||||||
))}
|
</ul>
|
||||||
<li>
|
</div>
|
||||||
<ThemeToggle />
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
);
|
);
|
||||||
|
|
|
@ -9,7 +9,7 @@ export function ExperienceSection() {
|
||||||
title: "Lead Security Engineer",
|
title: "Lead Security Engineer",
|
||||||
dateRange: "May 2025 — Present",
|
dateRange: "May 2025 — Present",
|
||||||
responsibilities: [
|
responsibilities: [
|
||||||
"Planned, led, and executed a full-stack migration from VMware to Proxmox VE using iDRAC for remote server management"
|
"Planned, led, and executed a full-stack migration from VMware to Proxmox VE"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
import { SocialLink } from '@/types';
|
// data/navigation.ts
|
||||||
|
import { SocialLink, NavigationLink } from '@/types';
|
||||||
|
|
||||||
|
// Internal site navigation links (left-aligned)
|
||||||
|
export const internalLinks: NavigationLink[] = [
|
||||||
|
{ name: '/resume/', href: '/resume' },
|
||||||
|
];
|
||||||
|
|
||||||
|
// External social links (right-aligned)
|
||||||
export const headerLinks: SocialLink[] = [
|
export const headerLinks: SocialLink[] = [
|
||||||
{ name: 'GitHub', url: 'https://github.com/charlottecroce' },
|
{ name: 'GitHub', url: 'https://github.com/charlottecroce' },
|
||||||
{ name: 'Forgejo', url: 'https://git.charlotte.sh' },
|
{ name: 'Forgejo', url: 'https://git.charlotte.sh' },
|
|
@ -1,58 +0,0 @@
|
||||||
import React from "react";
|
|
||||||
import SectionTitle from "../components/SectionTitle";
|
|
||||||
import ProjectCard from "../components/ProjectCard";
|
|
||||||
|
|
||||||
/*
|
|
||||||
==============================================
|
|
||||||
HomePage Component
|
|
||||||
==============================================
|
|
||||||
*/
|
|
||||||
const HomePage = () => {
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
{/*
|
|
||||||
==============================================
|
|
||||||
Intro Section
|
|
||||||
==============================================
|
|
||||||
*/}
|
|
||||||
<div className="relative rounded-xl mb-12 bg-white dark:bg-gray-800 overflow-hidden">
|
|
||||||
<div className="p-8 md:p-12">
|
|
||||||
<div className="max-w-3xl mx-auto">
|
|
||||||
<h1 className="text-4xl md:text-5xl font-bold mb-6 text-pink-400 dark:text-pink-300">
|
|
||||||
Hi! I'm Charlotte
|
|
||||||
</h1>
|
|
||||||
<p className="text-xl mb-6">
|
|
||||||
I put stuff here
|
|
||||||
</p>
|
|
||||||
<p className="mb-8 text-lg">
|
|
||||||
something else
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/*
|
|
||||||
==============================================
|
|
||||||
Projects Section
|
|
||||||
==============================================
|
|
||||||
*/}
|
|
||||||
<div className="mb-16">
|
|
||||||
<SectionTitle>-- Projects --</SectionTitle>
|
|
||||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
|
||||||
<ProjectCard
|
|
||||||
title="Champlain Tech Journals"
|
|
||||||
description="Notes, code, and lab write-ups from my Champlain College courses"
|
|
||||||
sourceUrl="https://codeberg.org/charlottecroce/ChamplainTechJournals"
|
|
||||||
/>
|
|
||||||
<ProjectCard
|
|
||||||
title="Nøkken Health"
|
|
||||||
description="A mobile app to track and analyze health data"
|
|
||||||
sourceUrl="https://codeberg.org/charlottecroce/nokken"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default HomePage;
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// types/index.ts
|
||||||
export interface Project {
|
export interface Project {
|
||||||
id: string;
|
id: string;
|
||||||
title: string;
|
title: string;
|
||||||
|
@ -16,6 +17,11 @@ export interface SocialLink {
|
||||||
icon?: string;
|
icon?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface NavigationLink {
|
||||||
|
name: string;
|
||||||
|
href: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface Experience {
|
export interface Experience {
|
||||||
company: string;
|
company: string;
|
||||||
location: string;
|
location: string;
|
||||||
|
@ -24,4 +30,4 @@ export interface Experience {
|
||||||
date: string;
|
date: string;
|
||||||
bullets?: string[];
|
bullets?: string[];
|
||||||
}[];
|
}[];
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue