Add AOS to home page

This commit is contained in:
BlossomiShymae
2024-06-13 12:04:27 -05:00
parent 06f7043004
commit 7f84eed144
4 changed files with 35 additions and 3 deletions

View File

@@ -6,6 +6,10 @@
</template>
<script setup>
import AOS from "aos";
import "aos/dist/aos.css";
AOS.init();
</script>
<style>

26
package-lock.json generated
View File

@@ -7,6 +7,7 @@
"name": "nuxt-app",
"hasInstallScript": true,
"dependencies": {
"aos": "^2.3.4",
"axios": "^1.6.8",
"nuxt": "^3.11.2",
"vue": "^3.4.21",
@@ -3811,6 +3812,16 @@
"node": ">= 8"
}
},
"node_modules/aos": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/aos/-/aos-2.3.4.tgz",
"integrity": "sha512-zh/ahtR2yME4I51z8IttIt4lC1Nw0ktsFtmeDzID1m9naJnWXhCoARaCgNOGXb5CLy3zm+wqmRAEgMYB5E2HUw==",
"dependencies": {
"classlist-polyfill": "^1.0.3",
"lodash.debounce": "^4.0.6",
"lodash.throttle": "^4.0.1"
}
},
"node_modules/aproba": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz",
@@ -4417,6 +4428,11 @@
"consola": "^3.2.3"
}
},
"node_modules/classlist-polyfill": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/classlist-polyfill/-/classlist-polyfill-1.2.0.tgz",
"integrity": "sha512-GzIjNdcEtH4ieA2S8NmrSxv7DfEV5fmixQeyTmqmRmRJPGpRBaSnA2a0VrCjyT8iW8JjEdMbKzDotAJf+ajgaQ=="
},
"node_modules/clean-stack": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz",
@@ -6511,6 +6527,11 @@
"resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz",
"integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw=="
},
"node_modules/lodash.debounce": {
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
"integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow=="
},
"node_modules/lodash.defaults": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz",
@@ -6526,6 +6547,11 @@
"resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",
"integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag=="
},
"node_modules/lodash.throttle": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz",
"integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ=="
},
"node_modules/lodash.uniq": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz",

View File

@@ -10,6 +10,7 @@
"postinstall": "nuxt prepare"
},
"dependencies": {
"aos": "^2.3.4",
"axios": "^1.6.8",
"nuxt": "^3.11.2",
"vue": "^3.4.21",

View File

@@ -1,6 +1,7 @@
<template>
<div>
<div class="d-flex flex-column justify-content-center align-items-center gap-2" style="margin-top: 25%;">
<div class="d-flex flex-column justify-content-center align-items-center gap-2" style="margin-top: 25%;"
data-aos="fade-down" data-aos-duration="1000">
<div class="d-flex flex-column justify-content-center align-items-center">
<h1 class="display-4">
<img class="me-4" src="/favicon.png"/>
@@ -11,7 +12,7 @@
</div>
<div class="row">
<div class="col-md-6 col-sm-12">
<div class="col-md-6 col-sm-12" data-aos="fade-right" data-aos-duration="1000">
<h2>The <TheTitle /> Project</h2>
<p>Our primary purpose is to make game data viewable in a human-friendly
format without needing computer programming or scripting knowledge.
@@ -19,7 +20,7 @@
<p>CommunityDragon, the unofficial League of Legends data resource, is used for our project.</p>
</div>
<div class="col-md-6 col-sm-12">
<div class="col-md-6 col-sm-12" data-aos="fade-left" data-aos-duration="1000">
<h2>Resources</h2>
<div class="row">
<div class="col-md-6 col-sm-12">