Skip to content

Commit d88a37d

Browse files
committed
Integrate AOS library for animations and update styles
Switch from external dependency to baked-in delivery.
1 parent f0c7026 commit d88a37d

File tree

5 files changed

+49
-6
lines changed

5 files changed

+49
-6
lines changed

spock-website/index.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
<meta property="twitter:description" content="Spock is a testing, specification, and mocking framework for JVM developers that emphasizes readability and clarity. By blending BDD concepts and Groovy's concise syntax, Spock helps teams write tests that are easy to understand and enjoyable to maintain.">
2323
<meta property="twitter:image" content="/spock-main-logo.svg">
2424

25-
<link href="https://unpkg.com/aos@2.3.4/dist/aos.css" rel="stylesheet"
26-
integrity="sha384-/rJKQnzOkEo+daG0jMjU1IwwY9unxt1NBw3Ef2fmOJ3PW/TfAg2KXVoWwMZQZtw9"
27-
crossorigin="anonymous">
2825
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin="anonymous">
2926
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous">
3027
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" crossorigin="anonymous">
@@ -286,9 +283,6 @@ <h3 class="text-3xl md:text-4xl font-bold text-center text-gray-100" data-aos="f
286283
</footer>
287284

288285

289-
<script src="https://unpkg.com/aos@2.3.4/dist/aos.js"
290-
integrity="sha384-n1AULnKdMJlK1oQCLNDL9qZsDgXtH6jRYFCpBtWFc+a9Yve0KSoMn575rk755NJZ"
291-
crossorigin="anonymous"></script>
292286
<script>
293287
// Initialize AOS library
294288
AOS.init({

spock-website/package-lock.json

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spock-website/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
},
1414
"devDependencies": {
1515
"@playwright/test": "^1.57.0",
16+
"@types/aos": "^3.0.7",
1617
"linkinator": "^7.5.1",
1718
"typescript": "~5.9.3",
1819
"vite": "^7.2.7"
@@ -22,6 +23,7 @@
2223
"@fortawesome/free-brands-svg-icons": "^7.1.0",
2324
"@fortawesome/free-solid-svg-icons": "^7.1.0",
2425
"@tailwindcss/vite": "^4.1.17",
26+
"aos": "^2.3.4",
2527
"tailwindcss": "^4.1.17"
2628
}
2729
}

spock-website/src/main.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
import './style.css'
22
import './icons'
3+
import AOS from 'aos'
4+
5+
AOS.init({
6+
duration: 800, // Animation duration
7+
once: true, // Whether animation should happen only once - while scrolling down
8+
offset: 50, // Offset (in px) from the original trigger point
9+
disable: new URLSearchParams(window.location.search).get('disableaos') !== null,
10+
});

spock-website/src/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import "tailwindcss";
2+
@import "aos/dist/aos.css";
23

34
/* Custom styles - Dark theme is now default */
45
body {

0 commit comments

Comments
 (0)