summaryrefslogtreecommitdiff
path: root/clams-server/src/main/resources/public
diff options
context:
space:
mode:
authorElias Haugsbakk <[email protected]>2026-07-01 21:18:58 +0200
committerElias Haugsbakk <[email protected]>2026-07-02 00:11:30 +0200
commit19c9cb227b343377853321e2cdc4285b2ea23e3a (patch)
tree697b1784c0e50b7d84a0ef8dcf2cfbba8e4357bc /clams-server/src/main/resources/public
parent5b1e3672a1e6d9f7b54ed4267e8715f5dc3bb55a (diff)
implement blog index page with featured and all posts
Diffstat (limited to 'clams-server/src/main/resources/public')
-rw-r--r--clams-server/src/main/resources/public/css/404.css14
-rw-r--r--clams-server/src/main/resources/public/css/blog.css50
-rw-r--r--clams-server/src/main/resources/public/css/common.css49
-rw-r--r--clams-server/src/main/resources/public/css/home.css4
-rw-r--r--clams-server/src/main/resources/public/css/post.css11
-rw-r--r--clams-server/src/main/resources/public/css/projects.css21
6 files changed, 72 insertions, 77 deletions
diff --git a/clams-server/src/main/resources/public/css/404.css b/clams-server/src/main/resources/public/css/404.css
new file mode 100644
index 0000000..6ddf009
--- /dev/null
+++ b/clams-server/src/main/resources/public/css/404.css
@@ -0,0 +1,14 @@
+.error-container {
+ text-align: center;
+ margin-top: 100px;
+}
+
+.error-code {
+ font-size: 5rem;
+ margin-bottom: 10px;
+ opacity: 0.3;
+}
+
+.error-home-link {
+ margin-top: 40px;
+}
diff --git a/clams-server/src/main/resources/public/css/blog.css b/clams-server/src/main/resources/public/css/blog.css
index 86eb0ed..c0fd080 100644
--- a/clams-server/src/main/resources/public/css/blog.css
+++ b/clams-server/src/main/resources/public/css/blog.css
@@ -1,10 +1,10 @@
-/* blog.css - page specific styles */
-
.intro-text {
- margin-bottom: 60px;
+ text-align: center;
+ max-width: 600px;
+ margin: 0 auto 60px auto;
}
-section {
+.blog-section {
margin-bottom: 60px;
}
@@ -52,7 +52,43 @@ section {
}
}
-/* Specific spacing for blog lists */
-.content-grid li {
- margin-bottom: 0.8rem;
+.year-accordion {
+ margin-bottom: 1.5rem;
+ cursor: pointer;
+}
+
+.year-toggle {
+ font-size: 1.25rem;
+ font-weight: bold;
+ list-style: none;
+ margin-bottom: 0.5rem;
+}
+
+.year-toggle::-webkit-details-marker {
+ display: none;
+}
+
+.year-toggle:hover {
+ opacity: 0.7;
+}
+
+.post-list {
+ margin-top: 10px;
+ padding-left: 20px;
+ border-left: 2px solid var(--border-color);
+}
+
+.post-list li {
+ margin-bottom: 0.65rem;
+}
+
+.post-list a {
+ font-size: 0.9rem;
+ font-weight: normal;
+}
+
+.featured-desc {
+ font-weight: normal;
+ color: var(--text-color);
+ opacity: 0.85;
}
diff --git a/clams-server/src/main/resources/public/css/common.css b/clams-server/src/main/resources/public/css/common.css
index 3c8d927..ffed73f 100644
--- a/clams-server/src/main/resources/public/css/common.css
+++ b/clams-server/src/main/resources/public/css/common.css
@@ -57,50 +57,13 @@ h2 {
.left-column { text-align: right; }
.right-column { text-align: left; }
-ul {
+.main-container ul {
list-style-type: none;
padding: 0;
margin: 0;
}
-li { margin-bottom: 1rem; }
-
-details {
- margin-bottom: 1rem;
- cursor: pointer;
-}
-
-summary {
- font-weight: bold;
- list-style: none; /* Removes the default arrow in some browsers */
-}
-
-summary::-webkit-details-marker {
- display: none; /* Removes the default arrow in Safari/Chrome */
-}
-
-summary:hover {
- opacity: 0.7;
-}
-
-.tag {
- display: inline-block;
- background-color: rgba(0,0,0,0.05);
- padding: 2px 8px;
- border-radius: 4px;
- font-size: 0.75rem;
- font-weight: bold;
- text-transform: uppercase;
- letter-spacing: 1px;
- margin-right: 5px;
- border: 1px solid var(--border-color);
-}
-
-details ul {
- margin-top: 10px;
- padding-left: 20px;
- border-left: 2px solid var(--border-color);
-}
+.main-container li { margin-bottom: 1rem; }
a {
color: var(--text-color);
@@ -143,12 +106,6 @@ footer p {
opacity: 0.5;
}
-.intro-text {
- text-align: center;
- max-width: 600px;
- margin: 0 auto 60px auto;
-}
-
@media (max-width: 600px) {
.content-grid {
grid-template-columns: 1fr;
@@ -169,7 +126,6 @@ footer p {
}
}
-/* Subtle Scrollbar Styling */
::-webkit-scrollbar {
width: 10px;
}
@@ -188,7 +144,6 @@ footer p {
background-color: #bbb;
}
-/* Firefox Support */
* {
scrollbar-width: thin;
scrollbar-color: #d1d1cd var(--bg-color);
diff --git a/clams-server/src/main/resources/public/css/home.css b/clams-server/src/main/resources/public/css/home.css
index c3679b4..2cf0bd8 100644
--- a/clams-server/src/main/resources/public/css/home.css
+++ b/clams-server/src/main/resources/public/css/home.css
@@ -7,10 +7,6 @@
margin-bottom: 20px;
}
-.right-column a {
- font-size: 1.2rem;
-}
-
.description {
display: block;
font-size: 0.9rem;
diff --git a/clams-server/src/main/resources/public/css/post.css b/clams-server/src/main/resources/public/css/post.css
index 0c8391c..e905cbc 100644
--- a/clams-server/src/main/resources/public/css/post.css
+++ b/clams-server/src/main/resources/public/css/post.css
@@ -1,5 +1,3 @@
-/* post.css - specific styles for blog posts */
-
.post-header {
display: flex;
justify-content: space-between;
@@ -45,15 +43,6 @@
border-top: 1px dashed var(--border-color);
}
-.prev-post, .next-post {
- font-size: 1rem;
- text-decoration: none;
-}
-
-.prev-post:hover, .next-post:hover {
- text-decoration: underline;
-}
-
@media (max-width: 600px) {
.post-header {
flex-direction: column;
diff --git a/clams-server/src/main/resources/public/css/projects.css b/clams-server/src/main/resources/public/css/projects.css
index 8453a01..4886a6d 100644
--- a/clams-server/src/main/resources/public/css/projects.css
+++ b/clams-server/src/main/resources/public/css/projects.css
@@ -1,5 +1,3 @@
-/* projects.css - specific styles for the projects page */
-
.projects-category {
margin-bottom: 80px;
}
@@ -17,6 +15,19 @@
margin: 10px 0 20px 0;
}
+.tag {
+ display: inline-block;
+ background-color: rgba(0,0,0,0.05);
+ padding: 2px 8px;
+ border-radius: 4px;
+ font-size: 0.75rem;
+ font-weight: bold;
+ text-transform: uppercase;
+ letter-spacing: 1px;
+ margin-right: 5px;
+ border: 1px solid var(--border-color);
+}
+
.project-links {
margin-top: 20px;
font-size: 0.9rem;
@@ -39,7 +50,6 @@
font-size: 0.9rem;
}
-/* Simple list for smaller projects */
.simple-project-list {
margin-top: 30px;
}
@@ -53,8 +63,3 @@
opacity: 0.6;
margin: 0 10px;
}
-
-.small-link {
- font-size: 0.8rem;
- margin-left: 5px;
-}