Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion astro-site/src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import site from "../data/site.json";
---

<footer class="site-footer">
<Fragment set:html={site.copyright} />
{site.copyright}
</footer>
35 changes: 35 additions & 0 deletions astro-site/src/pages/404.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
import "../styles/global.css";
import Header from "../components/Header.astro";
import Footer from "../components/Footer.astro";
import site from "../data/site.json";

const base = import.meta.env.BASE_URL;
---

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Page Not Found — {site.title}</title>
<meta name="robots" content="noindex" />
<script is:inline>
document.documentElement.setAttribute(
"data-theme",
localStorage.getItem("theme") || "light"
);
</script>
</head>
<body>
<Header currentPath="/" />
<main class="content" style="text-align: center; padding: 4rem 1rem;">
<h1>404 — Page Not Found</h1>
<p style="margin: 1rem 0 2rem; color: var(--color-fg-muted);">
The page you're looking for doesn't exist or has been moved.
</p>
<a href={base} style="color: var(--color-link);">Back to the tutorial</a>
</main>
<Footer />
</body>
</html>
2 changes: 1 addition & 1 deletion astro-site/src/pages/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const jsonLd = {
"isPartOf": {
"@type": "Course",
"name": "Git Tutorial — Code with Branko",
"url": "https://braboj.github.io/tutorial-git/"
"url": new URL(import.meta.env.BASE_URL, import.meta.env.SITE).toString()
}
};
---
Expand Down
2 changes: 1 addition & 1 deletion astro-site/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const jsonLd = {
"@type": "Course",
"name": "Git Tutorial — Code with Branko",
"description": "A hands-on Git tutorial from first commit to confident daily use — concepts, exercises, and real-world examples.",
"url": "https://braboj.github.io/tutorial-git/",
"url": new URL(import.meta.env.BASE_URL, import.meta.env.SITE).toString(),
"provider": {
"@type": "Person",
"name": "Branimir Georgiev",
Expand Down
42 changes: 2 additions & 40 deletions astro-site/src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
--color-fg-muted: #aaaaaa;
--color-fg-faint: #888888;
--color-border: #ffffff1f;
--color-link: #4dd0e1;
--color-focus: #4dd0e1;
--color-link: #00bcd4;
--color-focus: #00bcd4;
--color-code-bg: #2a2a2a;
--color-code-fg: #e0e0e0;
}
Expand Down Expand Up @@ -169,44 +169,6 @@ a:hover {
gap: var(--space-sm);
}

/* Search box */
.search-box {
position: relative;
display: flex;
align-items: center;
}

.search-icon {
position: absolute;
left: 0.5rem;
color: #fff;
opacity: 0.7;
pointer-events: none;
}

.search-box input {
background: rgba(255, 255, 255, 0.15);
border: none;
border-radius: 3px;
color: #fff;
font-family: var(--font-text);
font-size: var(--font-size-sm);
padding: 0.35rem 0.5rem 0.35rem 2rem;
width: 10rem;
transition: background 0.2s, width 0.2s;
}

.search-box input::placeholder {
color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus-visible {
background: rgba(255, 255, 255, 0.25);
width: 14rem;
outline: 2px solid #fff;
outline-offset: 1px;
}

/* Theme toggle */
.theme-toggle {
background: none;
Expand Down
Loading