Skip to content

Commit ea6e077

Browse files
drmowinckelsclaude
andauthored
Replace theme with Tailwind CSS + Alpine.js (#22)
* adjust logos * Add new Tailwind CSS + Alpine.js theme (capro-tw) Replace the Bootstrap 4 + jQuery theme with a modern stack: - Tailwind CSS 4 with CSS-first configuration and design tokens - Alpine.js for interactive components (nav, portfolio filter, testimonials) - Self-hosted fonts via @fontsource (Space Grotesk, Spectral) - FontAwesome compiled from SCSS, deferred loading - Vanilla JS for scroll reveal and counter animations - WebP image conversion throughout - Client-side publication fetching via OpenAlex API (replaces R/GH Action pipeline) Performance: Lighthouse homepage 53→89, team page 65→82 Accessibility: 100 on both pages Best Practices: 100 on both pages Removes gscholar_id from team member front matter (publications now fetched client-side using ORCID IDs from social links). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Clean up old infrastructure and update CI - Remove R publication pipeline (scripts/get_pubs.R, weekly GH Action, data/team/pubs/) - Update CI workflows to install Node.js and theme npm deps - Remove weekly cron schedule (no longer needed without R fetching) - Remove libcurl system dependency (was only for R) - Fix misspelled config filename (langauges → languages) - Fix Norwegian language config YAML indentation - Add node_modules/ to .gitignore Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Polish sections to match original theme styling - About: larger hexagons (160px), teal headings, more card padding - Services: restore distinctive offset shadow, teal headings, muted icons - Counters: dark card boxes around each counter item - Add theme attribution to Themefisher's Timer theme in theme.toml Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Polish service blocks and alternate section backgrounds - Remove hover effect from service blocks (no associated action) - Increase service block padding and soften offset shadow - Alternate bg-dark/bg-grey across homepage sections - Single-word section titles render in grey, not red accent - Counter cards with dark background boxes Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Add decorative wave lines and polish visual details - Add SVG wave lines (primary red curves) to hero bottom, CTA edges, and footer top - Match original theme styling: larger hexagons, service offset shadows, counter cards - Portfolio cards with white image area, hover overlay with search circle, dark meta - Team cards with border, red highlight on hover - Section heading divider matches original (grey line with centered red bar) - Alternating section backgrounds (dark/grey) - Tighten footer spacing between waves and content Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Remove duplicate booking CTA from contact section The CTA section already has a "Book a consultation" button. Simplify contact to just the content text and address details. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Keep booking CTA card, remove duplicate content link Contact section now shows address details on the left and the booking card on the right. The markdown content with inline booking link is removed to avoid duplication. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Add Leaflet map, team card borders, and visual polish - Add interactive OpenStreetMap via Leaflet.js with red marker - Leaflet loaded on demand (no API key needed) - Team cards with subtle border, red on hover - Footer spacing tightened Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Self-host Leaflet via npm instead of CDN - Add leaflet as npm dependency - Sync Leaflet JS, CSS, and images via postinstall - Load from local vendor files with SRI integrity - Remove CDN loading from map.js Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ff2b71a commit ea6e077

117 files changed

Lines changed: 10866 additions & 1717 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build_preview.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ jobs:
2020
submodules: true
2121
fetch-depth: 0
2222

23-
- name: Update system libs
24-
run: |
25-
sudo apt-get update
26-
sudo apt-get install -y libcurl4-openssl-dev --fix-missing
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
28+
- name: Install theme dependencies
29+
run: npm install --prefix themes/capro-tw
2730

2831
- name: Set env parameters
2932
run: |

.github/workflows/build_production.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
push:
66
branches:
77
- main
8-
schedule:
9-
- cron: '1 10 * * SAT'
108

119
concurrency:
1210
group: ${{ github.workflow }}-${{ github.ref }}
@@ -32,10 +30,13 @@ jobs:
3230
hugo-version: ${{ env.hugovr }}
3331
extended: true
3432

35-
- name: Update system libs
36-
run: |
37-
sudo apt-get update
38-
sudo apt-get install -y libcurl4-openssl-dev --fix-missing
33+
- name: Setup Node.js
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: 20
37+
38+
- name: Install theme dependencies
39+
run: npm install --prefix themes/capro-tw
3940

4041
- name: Build 🔧
4142
env:

.github/workflows/retrieve_author_pubs.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ renv/staged/
1414
resources/
1515
public/
1616
.hugo_build.lock
17+
18+
# Node
19+
node_modules/

config/_default/hugo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
baseURL: .
22
title: CAPRO
3-
theme: capro-hugo
3+
theme: capro-tw
44
pagination.pagerSize: '6'
55
summaryLength: '15'
66
enableGitInfo: true

config/_default/languages/langauges.no.yaml renamed to config/_default/languages/languages.no.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ params:
2525
Harald Schjelderups hus,
2626
Forskningsveien 3A,
2727
0373 Oslo
28-

content/team/am_mowinckel/index.en.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ social : # themify icon pack : https://themify.me/themify-icons or fontawesome
1313
link: "https://fosstodon.org/@Drmowinckels"
1414
- icon : fa-brands fa-twitter
1515
link : "https://twitter.com/DrMowinckels"
16-
gscholar_id: "7NkxgWQAAAAJ"
1716
---
1817

1918
With a PhD in psychology, Mo transitioned into research software and development as she saw technical solutions could aid fellow scientists in driving their projects forwards.

content/team/ik_amlien/index.en.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ designation : ["Data Engineer", "Cloud",
55
social :
66
- icon : "fa-brands fa-orcid"
77
link : "https://orcid.org/0000-0002-8508-9088"
8-
gscholar_id: "cwQrekcAAAAJ"
98
---
109

1110
Tech background and a PhD in psychology /neuroscience.

content/team/jla_warren/index.no.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ social : # themify icon pack : https://themify.me/themify-icons or fontawesome (
1111
link : "https://github.com/jlawarren"
1212
- icon: "fa-brands fa-orcid"
1313
link: "https://orcid.org/0000-0002-3638-9957"
14-
gscholar_id: "LRCb81EAAAAJ" #google scholar id, for publiations list
1514
---
1615

1716
José Luis har en mangfoldig bakgrunn innen ingeniørfag (BSc), anvendt fysikk (MSc) og evolusjonsbiologi (PhD). Han liker å skape og implementere avanserte verktøy som hjelper til med å forstå komplekse mønstre innen biologi og nevrovitenskap.

content/team/mh_sneve/index.en.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ designation : ["fMRI analyses", "HPC"]
44
social :
55
- icon : "fa-brands fa-orcid"
66
link : "https://orcid.org/0000-0001-7644-7915"
7-
gscholar_id: "G5SQqJ8AAAAJ"
87
---
98
Dr. Markus is highly skilled, holding a PhD in psychology. He is a dedicated researcher who consistently stays at the forefront of the field through his passion for exploring and discovering new advancements.
109

0 commit comments

Comments
 (0)