Skip to content

Commit f48d67a

Browse files
style: enhance CSS styles for sections and markdown elements; improve layout formatting
1 parent f1f1de7 commit f48d67a

File tree

4 files changed

+95
-11
lines changed

4 files changed

+95
-11
lines changed

src/app/globals.css

Lines changed: 60 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,11 +1766,18 @@ textarea {
17661766

17671767
.section {
17681768
padding: clamp(72px, 10vw, 120px) clamp(18px, 8vw, 140px);
1769-
background: radial-gradient(
1770-
circle at 20% 0%,
1771-
rgba(var(--hero-accent-rgb), 0.08),
1772-
transparent 55%
1769+
background:
1770+
radial-gradient(
1771+
circle at 10% 10%,
1772+
rgba(var(--hero-accent-rgb), 0.12),
1773+
transparent 48%
1774+
),
1775+
radial-gradient(
1776+
circle at 90% 0%,
1777+
rgba(255, 211, 138, 0.08),
1778+
transparent 52%
17731779
),
1780+
linear-gradient(180deg, rgba(10, 8, 6, 0.6), transparent 40%),
17741781
var(--content-bg);
17751782
}
17761783

@@ -3058,6 +3065,19 @@ textarea {
30583065
font-size: 10px;
30593066
}
30603067

3068+
.hero-hint {
3069+
font-size: 11px;
3070+
}
3071+
3072+
.section-title {
3073+
font-size: clamp(22px, 5.2vw, 30px);
3074+
}
3075+
3076+
.section-subtitle {
3077+
font-size: 13px;
3078+
line-height: 1.5;
3079+
}
3080+
30613081
.section-intro .intro-grid {
30623082
grid-template-columns: 1fr;
30633083
}
@@ -3105,6 +3125,13 @@ textarea {
31053125
box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
31063126
}
31073127

3128+
.featured-summary {
3129+
display: block;
3130+
-webkit-line-clamp: unset;
3131+
line-clamp: unset;
3132+
max-height: none;
3133+
}
3134+
31083135
.featured-stack {
31093136
overflow: visible;
31103137
touch-action: none;
@@ -3174,7 +3201,35 @@ textarea {
31743201
}
31753202

31763203
.about-card {
3177-
padding: 24px;
3204+
padding: 20px;
3205+
}
3206+
3207+
.about-card p,
3208+
.about-card li {
3209+
font-size: 13px;
3210+
line-height: 1.6;
3211+
}
3212+
3213+
.markdown {
3214+
gap: 10px;
3215+
}
3216+
3217+
.markdown-p,
3218+
.markdown-li {
3219+
font-size: 13px;
3220+
line-height: 1.6;
3221+
}
3222+
3223+
.markdown-h1 {
3224+
font-size: 20px;
3225+
}
3226+
3227+
.markdown-h2 {
3228+
font-size: 18px;
3229+
}
3230+
3231+
.markdown-h3 {
3232+
font-size: 16px;
31783233
}
31793234

31803235
.contact-grid {

src/app/layout.tsx

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,45 @@ const display = Unbounded({
2020
variable: "--font-display",
2121
subsets: ["latin"],
2222
display: "optional",
23-
fallback: ["system-ui", "-apple-system", "Segoe UI", "Roboto", "Helvetica", "Arial", "sans-serif"],
23+
fallback: [
24+
"system-ui",
25+
"-apple-system",
26+
"Segoe UI",
27+
"Roboto",
28+
"Helvetica",
29+
"Arial",
30+
"sans-serif",
31+
],
2432
});
2533

2634
const body = Space_Grotesk({
2735
variable: "--font-body",
2836
subsets: ["latin"],
2937
display: "optional",
30-
fallback: ["system-ui", "-apple-system", "Segoe UI", "Roboto", "Helvetica", "Arial", "sans-serif"],
38+
fallback: [
39+
"system-ui",
40+
"-apple-system",
41+
"Segoe UI",
42+
"Roboto",
43+
"Helvetica",
44+
"Arial",
45+
"sans-serif",
46+
],
3147
});
3248

3349
const mono = JetBrains_Mono({
3450
variable: "--font-mono",
3551
subsets: ["latin"],
3652
display: "optional",
37-
fallback: ["ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "monospace"],
53+
fallback: [
54+
"ui-monospace",
55+
"SFMono-Regular",
56+
"Menlo",
57+
"Monaco",
58+
"Consolas",
59+
"Liberation Mono",
60+
"monospace",
61+
],
3862
});
3963

4064
export async function generateMetadata(): Promise<Metadata> {
@@ -149,7 +173,7 @@ export default async function RootLayout({
149173
const cookieStore = await cookies();
150174
const theme = cookieStore.get("theme")?.value === "light" ? "light" : "dark";
151175
const langValue = cookieStore.get("lang")?.value;
152-
const language: Language = langValue === "en" ? "en" : "tr";
176+
const language: Language = langValue === "tr" ? "tr" : "en";
153177

154178
return (
155179
<html lang={language} data-theme={theme} data-lang={language}>

src/components/HomeClient.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2635,7 +2635,11 @@ export default function HomeClient({
26352635
initial={false}
26362636
animate={
26372637
aboutOpen
2638-
? { opacity: 1, maxHeight: 1400, marginTop: 12 }
2638+
? {
2639+
opacity: 1,
2640+
maxHeight: isMobile ? 3200 : 3600,
2641+
marginTop: 12,
2642+
}
26392643
: { opacity: 0, maxHeight: 0, marginTop: 0 }
26402644
}
26412645
transition={

src/components/PreferencesProvider.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ function getInitialLanguage(initialLanguage: Language): Language {
5959
if (paramLang === "tr" || paramLang === "en") {
6060
return paramLang;
6161
}
62-
const storedLang = localStorage.getItem(LANG_COOKIE) || readCookie(LANG_COOKIE);
62+
const storedLang =
63+
localStorage.getItem(LANG_COOKIE) || readCookie(LANG_COOKIE);
6364
if (storedLang === "tr" || storedLang === "en") {
6465
return storedLang;
6566
}

0 commit comments

Comments
 (0)