Skip to content

Commit 811dd1c

Browse files
committed
fixing over flow
1 parent 6f02234 commit 811dd1c

File tree

17 files changed

+136
-122
lines changed

17 files changed

+136
-122
lines changed

assets/css/home.css

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ body {
66
color: var(--text-primary)
77
}
88

9+
#main-content {
10+
min-width: 0;
11+
max-width: 100%;
12+
overflow-x: clip;
13+
}
14+
915
.page-header {
1016
text-align: center;
1117
margin-bottom: 3rem
@@ -43,9 +49,12 @@ body {
4349
}
4450

4551
.category-section {
52+
box-sizing: border-box;
4653
width: min(75rem, 100%);
54+
max-width: 100%;
4755
margin-inline: auto;
48-
margin-bottom: 3rem
56+
margin-bottom: 3rem;
57+
padding-inline: 0.35rem;
4958
}
5059

5160
.category-title {
@@ -62,7 +71,8 @@ body {
6271
.button-grid {
6372
display: grid;
6473
grid-template-columns: repeat(auto-fit, minmax(7rem, 8rem));
65-
gap: 1.25rem
74+
gap: 1.25rem;
75+
min-width: 0;
6676
}
6777

6878
a.neumorphic-button {
@@ -125,7 +135,9 @@ a.neumorphic-button:active>span {
125135

126136
/* Home intro – neumorphic panel matching site style (category-section + search) */
127137
.home-intro {
138+
box-sizing: border-box;
128139
width: min(75rem, 100%);
140+
max-width: 100%;
129141
margin-inline: auto;
130142
margin-bottom: 3rem;
131143
margin-top: 1rem;
@@ -143,6 +155,8 @@ a.neumorphic-button:active>span {
143155
display: grid;
144156
grid-template-columns: 1fr;
145157
gap: 1.25rem 1.5rem;
158+
overflow-wrap: break-word;
159+
word-break: break-word;
146160
}
147161

148162
/* Welcome – matches page-header feel */
@@ -264,12 +278,14 @@ a.neumorphic-button:active>span {
264278

265279
/* CTA strip – primary = same neumorphic as category buttons */
266280
.home-cta-wrapper {
281+
box-sizing: border-box;
267282
display: flex;
268283
flex-wrap: wrap;
269284
gap: 1rem;
270285
justify-content: center;
271286
margin: 0 auto 2.5rem;
272287
width: min(75rem, 100%);
288+
max-width: 100%;
273289
}
274290

275291
.home-cta-primary,
@@ -316,7 +332,9 @@ a.neumorphic-button:active>span {
316332

317333
/* FAQ section */
318334
.faq-section {
335+
box-sizing: border-box;
319336
width: min(75rem, 100%);
337+
max-width: 100%;
320338
margin-inline: auto;
321339
margin-top: 2.5rem;
322340
margin-bottom: 2rem;
@@ -403,6 +421,10 @@ body {
403421
width: 100%;
404422
}
405423

424+
.home-intro {
425+
padding: 1rem;
426+
}
427+
406428
.button-grid {
407429
grid-template-columns: repeat(3, 1fr);
408430
gap: .75rem;

layouts/_default/single.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
<html lang="en">
33
<head>
44
{{ partial "header.html" . }}
5+
{{ with resources.Get "css/home.css" }}
6+
{{ $minifiedCSS := . | resources.Minify }}
7+
<link rel="stylesheet" href="{{ $minifiedCSS.RelPermalink }}">
8+
{{ end }}
9+
<link rel="stylesheet" href="/css/internal.css">
510
</head>
611
<body>
712
{{ partial "skip-link.html" . }}
8-
<header role="banner">
9-
<h1>{{ .Title | default "CodeFryDev" }}</h1>
10-
</header>
13+
{{ partial "page-header.html" . }}
1114
<main id="main-content" role="main">
1215
{{ .Content }}
1316
</main>

layouts/_default/taxonomy.html

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
1-
{{ define "main" }}
2-
<main class="main-content">
3-
<header class="page-header">
4-
{{/* This shows the title, like "All Tags" */}}
5-
<h1>{{ .Title }}</h1>
6-
</header>
7-
8-
{{/* This creates a simple list */}}
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
{{ partial "header.html" . }}
5+
{{ with resources.Get "css/home.css" }}
6+
{{ $minifiedCSS := . | resources.Minify }}
7+
<link rel="stylesheet" href="{{ $minifiedCSS.RelPermalink }}">
8+
{{ end }}
9+
<link rel="stylesheet" href="/css/internal.css">
10+
</head>
11+
<body>
12+
{{ partial "skip-link.html" . }}
13+
{{ partial "page-header.html" . }}
14+
<main id="main-content" role="main">
15+
<h1>{{ .Title }}</h1>
916
<ul>
10-
{{/* This loops through all the available tags or categories */}}
1117
{{ range .Data.Terms.ByCount }}
1218
<li>
1319
<a href="{{ .Page.Permalink }}">
1420
{{ .Page.Title }}
15-
{{/* This shows how many posts have that tag */}}
1621
<span>({{ .Count }})</span>
1722
</a>
1823
</li>
1924
{{ end }}
2025
</ul>
2126
</main>
22-
{{ end }}
27+
{{ partial "footer.html" . }}
28+
<script src="/js/theme.js"></script>
29+
</body>
30+
</html>

layouts/about-us/about-us.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<meta property="og:image:alt" content="CodeFryDev Logo">
1212
<meta property="og:type" content="website">
1313

14+
{{ with resources.Get "css/home.css" }}
15+
{{ $minifiedCSS := . | resources.Minify }}
16+
<link rel="stylesheet" href="{{ $minifiedCSS.RelPermalink }}">
17+
{{ end }}
1418
<link rel="stylesheet" href="/css/internal.css">
1519
<style>
1620
.about-us-container {
@@ -106,13 +110,8 @@
106110
</head>
107111
<body>
108112
{{ partial "skip-link.html" . }}
109-
<main id="main-content" role="main">
110-
<div class="MainButtonParent">
111-
<a href="/" aria-label="CodeFryDev Homepage">
112-
<img style="align-items: center;" src="/images/IconCodefrydev.svg" srcset="/images/IconCodefrydev.svg" alt="CodeFryDev logo" height="96" width="96">
113-
</a>
114-
</div>
115-
{{ partial "navigation.html" . }}
113+
{{ partial "page-header.html" . }}
114+
<main id="main-content" role="main">
116115
<div class="about-us-container">
117116
<div class="about-us-header">
118117
<h1>About us</h1>

layouts/about/about.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
{{ partial "header.html" . }}
55
<meta name="keywords" content="about codefrydev, codefrydev team, digital tools, web development, mobile apps, games, tutorials">
66

7+
{{ with resources.Get "css/home.css" }}
8+
{{ $minifiedCSS := . | resources.Minify }}
9+
<link rel="stylesheet" href="{{ $minifiedCSS.RelPermalink }}">
10+
{{ end }}
711
<link rel="stylesheet" href="/css/internal.css">
812
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
913
<style>
@@ -318,13 +322,8 @@
318322
</head>
319323
<body>
320324
{{ partial "skip-link.html" . }}
321-
<main id="main-content" role="main">
322-
<div class="MainButtonParent">
323-
<a href="/" aria-label="CodeFryDev Homepage">
324-
<img style="align-items: center;" src="/images/IconCodefrydev.svg" srcset="/images/IconCodefrydev.svg" alt="CodeFryDev logo" height="96" width="96">
325-
</a>
326-
</div>
327-
325+
{{ partial "page-header.html" . }}
326+
<main id="main-content" role="main">
328327
<div class="about-container">
329328
<div class="about-header">
330329
<h1>About CodeFryDev</h1>

layouts/about/users/list.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
{{ partial "header.html" . }}
66
<meta name="keywords" content="codefrydev team, developers, designers, contributors, about team">
77

8+
{{ with resources.Get "css/home.css" }}
9+
{{ $minifiedCSS := . | resources.Minify }}
10+
<link rel="stylesheet" href="{{ $minifiedCSS.RelPermalink }}">
11+
{{ end }}
812
<link rel="stylesheet" href="/css/internal.css">
913
<style>
1014
.users-container {
@@ -180,17 +184,14 @@
180184
</head>
181185

182186
<body>
183-
<main>
184-
<div class="MainButtonParent">
185-
<img style="align-items: center;" src="/images/IconCodefrydev.svg" srcset="/images/IconCodefrydev.svg" alt="CodeFryDev Logo" width="96" height="96">
186-
</div>
187-
187+
{{ partial "skip-link.html" . }}
188+
{{ partial "page-header.html" . }}
189+
<main id="main-content" role="main">
188190
<div class="users-container">
189191
<div class="users-header">
190192
<h1>{{ .Title }}</h1>
191193
<p class="subtitle">Meet the talented folks who contribute to this project</p>
192194
</div>
193-
194195
<ol class="users-grid">
195196
{{ range sort .Pages "Weight" }}
196197
<li class="member-card-wrapper">

layouts/ai/ai.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<body>
1616
{{ partial "skip-link.html" . }}
1717

18-
{{ partial "page-header.html" (dict "context" . "title" "Free AI tools &amp; generators" "tagline" "CodeFryDev") }}
18+
{{ partial "page-header.html" . }}
1919

2020
<main id="main-content" role="main">
2121
{{ partial "search.html" (dict "containerClass" "search-container" "placeholder" "Search for AI tools, generators, and utilities..." "autofocus" false "Site" .Site "Scratch" .Scratch) }}

layouts/designlab/designlab.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<body>
1616
{{ partial "skip-link.html" . }}
1717

18-
{{ partial "page-header.html" (dict "context" . "title" "Design tools &amp; creative resources" "tagline" "CodeFryDev") }}
18+
{{ partial "page-header.html" . }}
1919

2020
<main id="main-content" role="main">
2121
{{ partial "search.html" (dict "containerClass" "search-container" "placeholder" "Search for design tools, visualizations, and creative resources..." "autofocus" false "Site" .Site "Scratch" .Scratch) }}

layouts/games/games.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<body>
1616
{{ partial "skip-link.html" . }}
1717

18-
{{ partial "page-header.html" (dict "context" . "title" "Free online games—play in your browser" "tagline" "CodeFryDev") }}
18+
{{ partial "page-header.html" . }}
1919

2020
<main id="main-content" role="main">
2121
{{ partial "search.html" (dict "containerClass" "search-container" "placeholder" "Search for games, puzzles, and fun activities..." "autofocus" false "Site" .Site "Scratch" .Scratch) }}

layouts/history/history.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
3+
<head>
44
{{ partial "header.html" . }}
55
<meta name="keywords" content="codefrydev history, timeline, milestones, updates, company history">
6+
{{ with resources.Get "css/home.css" }}
7+
{{ $minifiedCSS := . | resources.Minify }}
8+
<link rel="stylesheet" href="{{ $minifiedCSS.RelPermalink }}">
9+
{{ end }}
610
<link rel="stylesheet" href="/css/history.css">
711
<link rel="stylesheet" href="/css/internal.css">
812
</head>
913
<body>
1014
{{ partial "skip-link.html" . }}
11-
<header role="banner">
12-
<h1><a href="/" aria-label="Return to homepage">History</a></h1>
13-
</header>
14-
<main id="main-content" role="main">
15+
{{ partial "page-header.html" . }}
16+
<main id="main-content" role="main">
1517
<ul role="list">
1618
{{ range .Site.Data.history.history }}
1719
<li style="--accent-color:{{ .accent_color }}" role="listitem">

0 commit comments

Comments
 (0)