a
This commit is contained in:
parent
12fbb048f4
commit
4f44e0f880
22
package-lock.json
generated
22
package-lock.json
generated
@ -20,6 +20,7 @@
|
|||||||
"lucide-react": "^0.274.0",
|
"lucide-react": "^0.274.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
|
"sass": "^1.69.0",
|
||||||
"tailwind-merge": "^1.14.0",
|
"tailwind-merge": "^1.14.0",
|
||||||
"tailwindcss": "^3.3.3",
|
"tailwindcss": "^3.3.3",
|
||||||
"tailwindcss-animate": "^1.0.7",
|
"tailwindcss-animate": "^1.0.7",
|
||||||
@ -2507,6 +2508,11 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"node_modules/immutable": {
|
||||||
|
"version": "4.3.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.4.tgz",
|
||||||
|
"integrity": "sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA=="
|
||||||
|
},
|
||||||
"node_modules/import-meta-resolve": {
|
"node_modules/import-meta-resolve": {
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-3.0.0.tgz",
|
||||||
@ -5212,6 +5218,22 @@
|
|||||||
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
||||||
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
||||||
},
|
},
|
||||||
|
"node_modules/sass": {
|
||||||
|
"version": "1.69.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/sass/-/sass-1.69.0.tgz",
|
||||||
|
"integrity": "sha512-l3bbFpfTOGgQZCLU/gvm1lbsQ5mC/WnLz3djL2v4WCJBDrWm58PO+jgngcGRNnKUh6wSsdm50YaovTqskZ0xDQ==",
|
||||||
|
"dependencies": {
|
||||||
|
"chokidar": ">=3.0.0 <4.0.0",
|
||||||
|
"immutable": "^4.0.0",
|
||||||
|
"source-map-js": ">=0.6.2 <2.0.0"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"sass": "sass.js"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=14.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/sax": {
|
"node_modules/sax": {
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz",
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
"lucide-react": "^0.274.0",
|
"lucide-react": "^0.274.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
|
"sass": "^1.69.0",
|
||||||
"tailwind-merge": "^1.14.0",
|
"tailwind-merge": "^1.14.0",
|
||||||
"tailwindcss": "^3.3.3",
|
"tailwindcss": "^3.3.3",
|
||||||
"tailwindcss-animate": "^1.0.7",
|
"tailwindcss-animate": "^1.0.7",
|
||||||
|
@ -1,15 +1,14 @@
|
|||||||
---
|
---
|
||||||
import foscLogo from "../assets/img/fosc-logo-old.png";
|
import foscLogo from "../assets/img/fosc-logo-old.png";
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<div id="container" class="h-[30vh]">
|
<div id="container" class="h-[30vh]">
|
||||||
<Image id="logo" class="h-full w-auto" src={foscLogo} alt="FOSC Logo" />
|
<Image id="logo" class="h-full w-auto" src={foscLogo} alt="FOSC Logo" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
#logo {
|
#logo {
|
||||||
|
|
||||||
/* Add border styles to create thickness */
|
/* Add border styles to create thickness */
|
||||||
border: -2px solid #ccc; /* Adjust border width for thickness */
|
border: -2px solid #ccc; /* Adjust border width for thickness */
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
@ -21,7 +20,6 @@ import { Image } from "astro:assets";
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// script.ts
|
// script.ts
|
||||||
interface LogoElement extends HTMLElement {
|
interface LogoElement extends HTMLElement {
|
||||||
@ -64,13 +62,13 @@ function animateRotation() {
|
|||||||
requestAnimationFrame(animateRotation);
|
requestAnimationFrame(animateRotation);
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener('mousemove', (e: MouseEvent) => {
|
document.addEventListener("mousemove", (e: MouseEvent) => {
|
||||||
mouseX = e.clientX;
|
mouseX = e.clientX;
|
||||||
mouseY = e.clientY;
|
mouseY = e.clientY;
|
||||||
updateLogoRotation();
|
updateLogoRotation();
|
||||||
});
|
});
|
||||||
|
|
||||||
document.addEventListener('mouseleave', () => {
|
document.addEventListener("mouseleave", () => {
|
||||||
mouseX = 0;
|
mouseX = 0;
|
||||||
mouseY = 0;
|
mouseY = 0;
|
||||||
targetRotationX = 0;
|
targetRotationX = 0;
|
||||||
@ -83,6 +81,4 @@ logo.rotationX = 0;
|
|||||||
logo.rotationY = 0;
|
logo.rotationY = 0;
|
||||||
|
|
||||||
animateRotation();
|
animateRotation();
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
@ -6,7 +6,7 @@ interface Props {
|
|||||||
const { text } = Astro.props;
|
const { text } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<p id="text" data-value={text} class="mt-4 text-center text-7xl font-['Researcher']">{text}</p>
|
<p id="text" data-value={text} class="drop-shadow-lg mt-4 text-center text-7xl font-['Researcher']">{text}</p>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// Code I stole
|
// Code I stole
|
||||||
|
Loading…
Reference in New Issue
Block a user