{{ i18n "recent_posts" | default "Recent Articles" }}
++ + {{ .Title }} + +
++ {{ .Summary }} +
+ + {{ i18n "read_more" | default "Read more" }} → + +diff --git a/.session/metadata.env b/.session/metadata.env new file mode 100644 index 0000000..1a14792 --- /dev/null +++ b/.session/metadata.env @@ -0,0 +1,6 @@ +SESSION_ISSUE_KEY=CF-2812 +PROJECT_DIR=/Users/christian.gick/Development/Apps/internetforkids +WORKSPACE_PATH=/Users/christian.gick/.claude/workspaces/cf-2812 +BASE_BRANCH=main +CREATED_AT=1775206558 +CLAUDE_PID=74267 diff --git a/.session/notes.md b/.session/notes.md new file mode 100644 index 0000000..3a8f751 --- /dev/null +++ b/.session/notes.md @@ -0,0 +1,3 @@ +# Session CF-2812 +Started: 2026-04-03 11:55 +Project: internetforkids diff --git a/.session/plan.md b/.session/plan.md new file mode 100644 index 0000000..e69de29 diff --git a/assets/css/main.css b/assets/css/main.css new file mode 100644 index 0000000..8ac59a5 --- /dev/null +++ b/assets/css/main.css @@ -0,0 +1,324 @@ +/* Custom font imports */ +@font-face { + font-family: 'Newsreader'; + font-style: normal; + font-weight: 400 700; + font-display: swap; + src: url(/fonts/newsreader/newsreader-latin.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} + +@font-face { + font-family: 'Newsreader'; + font-style: normal; + font-weight: 400 700; + font-display: swap; + src: url(/fonts/newsreader/newsreader-latin-ext.woff2) format('woff2'); + unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; +} + +@font-face { + font-family: 'Newsreader'; + font-style: italic; + font-weight: 400 500; + font-display: swap; + src: url(/fonts/newsreader/newsreader-italic-latin.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} + +@font-face { + font-family: 'Newsreader'; + font-style: italic; + font-weight: 400 500; + font-display: swap; + src: url(/fonts/newsreader/newsreader-italic-latin-ext.woff2) format('woff2'); + unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; +} + +/* CSS Variables */ +:root { + --ifk-font: 'Newsreader', 'Times New Roman', serif; + --ifk-text: #1c1917; + --ifk-bg: #fafaf9; + --ifk-accent: #4d7c0f; + --ifk-accent-hover: #3f6212; + --ifk-secondary: #059669; +} + +/* Utility classes for colors */ +.text-ifk-accent { color: var(--ifk-accent); } +.text-ifk-text { color: var(--ifk-text); } +.bg-ifk-bg { background-color: var(--ifk-bg); } +.hover\:text-ifk-accent:hover { color: var(--ifk-accent); } +.hover\:text-ifk-accent-hover:hover { color: var(--ifk-accent-hover); } + +/* Font family utility */ +.font-newsreader { font-family: var(--ifk-font); } + +/* Tailwind-equivalent utilities */ +*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } +.flex { display: flex; } +.flex-1 { flex: 1 1 0%; } +.flex-wrap { flex-wrap: wrap; } +.inline-block { display: inline-block; } +.grid { display: grid; } +.grid-cols-2 { grid-template-columns: repeat(2, 1fr); } +.justify-between { justify-content: space-between; } +.items-center { align-items: center; } +.gap-4 { gap: 1rem; } +.gap-8 { gap: 2rem; } +.mx-auto { margin-left: auto; margin-right: auto; } +.max-w-2xl { max-width: 42rem; } +.max-w-3xl { max-width: 48rem; } +.max-w-4xl { max-width: 56rem; } +.px-4 { padding-left: 1rem; padding-right: 1rem; } +.py-4 { padding-top: 1rem; padding-bottom: 1rem; } +.py-12 { padding-top: 3rem; padding-bottom: 3rem; } +.p-4 { padding: 1rem; } +.pt-8 { padding-top: 2rem; } +.mb-2 { margin-bottom: 0.5rem; } +.mb-3 { margin-bottom: 0.75rem; } +.mb-4 { margin-bottom: 1rem; } +.mb-8 { margin-bottom: 2rem; } +.mb-12 { margin-bottom: 3rem; } +.mr-2 { margin-right: 0.5rem; } +.mt-12 { margin-top: 3rem; } +.mt-20 { margin-top: 5rem; } +.sticky { position: sticky; } +.top-0 { top: 0; } +.z-40 { z-index: 40; } +.border { border: 1px solid #e5e7eb; } +.border-t { border-top: 1px solid #e5e7eb; } +.border-b { border-bottom: 1px solid #e5e7eb; } +.rounded { border-radius: 0.25rem; } +.bg-white { background-color: #fff; } +.bg-gray-50 { background-color: #f9fafb; } +.text-center { text-align: center; } +.text-left { text-align: left; } +.text-right { text-align: right; } +.text-xs { font-size: 0.75rem; line-height: 1rem; } +.text-sm { font-size: 0.875rem; line-height: 1.25rem; } +.text-lg { font-size: 1.125rem; line-height: 1.75rem; } +.text-xl { font-size: 1.25rem; line-height: 1.75rem; } +.text-4xl { font-size: 2.75rem; line-height: 1.15; } +.font-semibold { font-weight: 600; } +.uppercase { text-transform: uppercase; } +.tracking-wide { letter-spacing: 0.025em; } +.leading-tight { line-height: 1.25; } +.leading-relaxed { line-height: 1.625; } +.text-gray-600 { color: #4b5563; } +.hover\:bg-gray-50:hover { background-color: #f9fafb; } +@media (min-width: 768px) { .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); } } + +/* Global typography */ +body { + background-color: var(--ifk-bg); + color: var(--ifk-text); + font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; +} + +article, .prose { + font-family: var(--ifk-font); +} + +h1, h2, h3, h4, h5, h6 { + font-family: var(--ifk-font); + color: var(--ifk-text); + font-weight: 600; +} + +h1, .article-title { + font-size: 2.75rem; + line-height: 1.15; + letter-spacing: -0.01em; + margin-bottom: 1.5rem; +} + +h2 { + font-size: 1.85rem; + line-height: 1.25; + margin-top: 3rem; + margin-bottom: 1.25rem; +} + +h3 { + font-size: 1.5rem; + line-height: 1.3; + margin-top: 2.5rem; + margin-bottom: 1rem; +} + +/* Article content */ +article p { + font-size: 1.375rem; + line-height: 1.6; + margin-bottom: 1.5rem; + font-family: var(--ifk-font); +} + +/* Links */ +article a { + color: var(--ifk-accent); + text-decoration: underline; + text-decoration-thickness: 1px; + text-underline-offset: 2px; + transition: all 0.2s ease; +} + +article a:hover { + color: var(--ifk-accent-hover); + text-decoration-thickness: 2px; +} + +/* Blockquotes */ +blockquote { + font-family: var(--ifk-font); + font-style: italic; + font-size: 1.5rem; + line-height: 1.6; + border-left: 3px solid var(--ifk-secondary); + padding-left: 1.5rem; + margin: 2rem 0; + color: var(--ifk-text); + opacity: 0.85; +} + +/* Code blocks */ +code { + font-family: 'Courier New', monospace; + font-size: 0.9rem; + background: #f3f4f6; + padding: 0.1rem 0.4rem; + border-radius: 0.25rem; +} + +pre { + background: #1f2937; + color: #f3f4f6; + padding: 1.5rem; + border-radius: 0.5rem; + overflow-x: auto; + font-family: 'Courier New', monospace; + font-size: 0.9rem; + line-height: 1.5; + margin: 1.5rem 0; +} + +pre code { + background: none; + color: inherit; + padding: 0; + border-radius: 0; +} + +/* Tables */ +table { + width: 100%; + border-collapse: collapse; + margin: 1.5rem 0; + font-family: var(--ifk-font); + font-size: 1.1rem; + line-height: 1.6; +} + +th, td { + padding: 0.75rem 1rem; + border: 1px solid #e5e7eb; + text-align: left; +} + +th { + background: #f3f4f6; + font-weight: 600; +} + +/* Lists */ +ul, ol { + margin-left: 1.5rem; + margin-bottom: 1.5rem; +} + +li { + margin-bottom: 0.5rem; + font-family: var(--ifk-font); + font-size: 1.375rem; + line-height: 1.6; +} + +/* Navigation */ +nav, header, footer { + font-family: system-ui, -apple-system, sans-serif; +} + +nav a { + text-decoration: none; + transition: color 0.2s ease; +} + +nav a:hover { + color: var(--ifk-accent); +} + +/* Article metadata */ +.article-meta, .post-meta, time, .reading-time { + font-family: system-ui, -apple-system, sans-serif; + font-size: 0.95rem; + color: #6b7280; +} + +/* Tags */ +.taxonomy-term, [href*="/tags/"], [href*="/categories/"] { + font-family: system-ui, -apple-system, sans-serif; + font-size: 0.8rem; + text-transform: uppercase; + letter-spacing: 0.05em; + color: var(--ifk-accent); + text-decoration: none; +} + +.taxonomy-term:hover, [href*="/tags/"]:hover, [href*="/categories/"]:hover { + color: var(--ifk-accent-hover); + text-decoration: underline; +} + +/* Table of Contents */ +#TableOfContents { + font-family: system-ui, -apple-system, sans-serif; + font-size: 0.95rem; + line-height: 1.7; +} + +#TableOfContents a { + color: var(--ifk-accent); + text-decoration: none; +} + +#TableOfContents a:hover { + text-decoration: underline; +} + +/* Status badges (for shortcodes) */ +.csm-enforced { background: var(--ifk-accent); color: white; } +.csm-passed { background: var(--ifk-secondary); color: white; } +.csm-progress { background: #86efac; color: #14532d; } +.csm-guidelines { background: #d1fae5; color: #065f46; } + +/* Shortcode-specific overrides */ +.ifk-stat-num { font-family: var(--ifk-font); } +.ifk-stat-label { font-family: system-ui, -apple-system, sans-serif; } +.ifk-chart-card h4 { font-family: system-ui, -apple-system, sans-serif; } + +/* Responsive design */ +@media (max-width: 768px) { + h1, .article-title { + font-size: 2rem; + } + + h2 { + font-size: 1.5rem; + } + + article p, li { + font-size: 1.1rem; + } +} diff --git a/config/_default/params.toml b/config/_default/params.toml index cbdbcc9..5dd1cca 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -1,37 +1,18 @@ -colorScheme = "avocado" +colorScheme = "light" defaultAppearance = "light" autoSwitchAppearance = false mainSections = [""] +# Blox Core config +minimal = false + [header] - layout = "basic" - showTitle = true + navbar = true [footer] - showCopyright = true - showThemeAttribution = false - showScrollToTop = true - showAppearanceSwitcher = false + copyright = "© Internet for Kids" + privacyPolicy = "/privacy" -[homepage] - layout = "profile" - showRecent = true - recentLimit = 5 - -[article] - showDate = true - showReadingTime = true - showAuthor = true - showBreadcrumbs = true - showTableOfContents = true - showTaxonomies = true - showRelatedContent = true - showWordCount = false - showSummary = true - -[list] - showBreadcrumbs = true - showTaxonomies = true - -[taxonomy] - showTermCount = true +[appearance] + color_theme = "ifk" + font_theme = "ifk_fonts" diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..061ef11 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module github.com/christian/internetforkids + +go 1.26.1 + +require github.com/HugoBlox/hugo-blox-builder/modules/blox-core v0.4.1 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..fccedbe --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/HugoBlox/hugo-blox-builder/modules/blox-core v0.4.1 h1:LAIEtt5FVZVJoKVmZ+rB/M5exoek52ksCEK12HWssIo= +github.com/HugoBlox/hugo-blox-builder/modules/blox-core v0.4.1/go.mod h1:So8+V2U+TNxlXmcpZfdDX0muLh3PdJ7z92h30sv3bZg= diff --git a/hugo.toml b/hugo.toml index f5a78c9..6ca0a2b 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,16 +1,19 @@ baseURL = "https://internetforkids.org/" title = "Internet for Kids" -theme = "congo" defaultContentLanguage = "en" defaultContentLanguageInSubdir = true enableRobotsTXT = true +[module] + [[module.imports]] + path = "github.com/HugoBlox/hugo-blox-builder/modules/blox-core" + [markup] [markup.goldmark] [markup.goldmark.renderer] - unsafe = false + unsafe = true [markup.highlight] style = "monokai" diff --git a/i18n/de.toml b/i18n/de.toml new file mode 100644 index 0000000..c14cb27 --- /dev/null +++ b/i18n/de.toml @@ -0,0 +1,17 @@ +[recent_posts] +other = "Neueste Artikel" + +[read_more] +other = "Weiterlesen" + +[table_of_contents] +other = "Inhaltsverzeichnis" + +[tags] +other = "Schlagwörter" + +[previous] +other = "Vorheriger" + +[next] +other = "Nächster" diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..f98a57d --- /dev/null +++ b/i18n/en.toml @@ -0,0 +1,17 @@ +[recent_posts] +other = "Recent Articles" + +[read_more] +other = "Read more" + +[table_of_contents] +other = "Table of Contents" + +[tags] +other = "Tags" + +[previous] +other = "Previous" + +[next] +other = "Next" diff --git a/i18n/fr.toml b/i18n/fr.toml new file mode 100644 index 0000000..566de76 --- /dev/null +++ b/i18n/fr.toml @@ -0,0 +1,17 @@ +[recent_posts] +other = "Articles récents" + +[read_more] +other = "Lire la suite" + +[table_of_contents] +other = "Table des matières" + +[tags] +other = "Mots-clés" + +[previous] +other = "Précédent" + +[next] +other = "Suivant" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..b687b4e --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,54 @@ + + +
+ + + + + ++ {{ .Summary }} +
+ + {{ i18n "read_more" | default "Read more" }} → + +{{ . }}
+ {{ end }} ++ {{ .Summary }} +
+ + {{ i18n "read_more" | default "Read more" }} → + +