Skip to content

Commit 644837f

Browse files
Light cosmetic changes
1 parent 8207144 commit 644837f

File tree

4 files changed

+43
-2
lines changed

4 files changed

+43
-2
lines changed

public/css/style.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
--font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
1515
--transition-speed: 0.3s;
1616
--color-scheme: light;
17+
--footer-text-color: #888;
1718
}
1819

1920
/* Basic Reset */
@@ -22,6 +23,21 @@
2223
padding: 0;
2324
box-sizing: border-box;
2425
}
26+
27+
/* text weblinks */
28+
main a {
29+
color: grey;
30+
}
31+
32+
main a:visited {
33+
color: rgb(60, 60, 60);
34+
}
35+
36+
main a:hover,
37+
main a:active {
38+
color: rgb(60, 60, 60);
39+
}
40+
2541

2642
/* Body Styling */
2743
body {

src/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const { title, bodyClass, activePage } = Astro.props;
6666
</li>
6767
</ul>
6868
</nav>
69-
<p>&copy; 2025 G. Christopher Marais. All rights reserved.</p>
69+
<p style="color: var(--footer-text-color)">&copy; 2025 G. Christopher Marais. All rights reserved.</p>
7070
</div>
7171
</footer>
7272
</body>

src/pages/gallery/[page].astro

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,28 @@ const images = files.slice(start, start + perPage);
2828
<Layout title={`Gallery - Page ${currentPage}`} activePage="gallery">
2929
<h1>My Photos - Page {currentPage}</h1>
3030
<p>Here is a collection of pictures I have taken over the years to record my memories, experiences and travels.</p>
31-
31+
<br>
32+
<br>
33+
<nav class="pagination">
34+
{currentPage > 1 && (
35+
<a href={`/gallery/${currentPage - 1}`}>&laquo; Previous</a>
36+
)}
37+
{Array.from({ length: totalPages }, (_, i) => {
38+
const pageNum = i + 1;
39+
return (
40+
<a
41+
href={`/gallery/${pageNum}`}
42+
class={pageNum === currentPage ? 'active' : ''}
43+
>
44+
{pageNum}
45+
</a>
46+
);
47+
})}
48+
{currentPage < totalPages && (
49+
<a href={`/gallery/${currentPage + 1}`}>Next &raquo;</a>
50+
)}
51+
</nav>
52+
3253
<div class="gallery-full">
3354
{images.map((image) => (
3455
<img src={`/images/${image}`} alt="Gallery image" loading="lazy" />

src/pages/index.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ const activePage = "home";
1010
<Layout {title} {bodyClass} {activePage}>
1111
<section class="welcome-message" style="text-align: center;">
1212
<h1>Hello and Welcome!</h1>
13+
<br>
14+
<br>
1315
<img
1416
src="/page_images/profile_picture.jpg"
1517
alt="G. Christopher Marais"
1618
class="profile-image"
1719
/>
20+
<br>
21+
<br>
1822
<p class="lead">
1923

2024
I'm Christopher Marais, and this is my little corner of the web where I share some of my projects and ideas.

0 commit comments

Comments
 (0)