Skip to content

Commit 704cc9e

Browse files
authored
Merge pull request #34 from csesoc/CW2-12-add-animations
[CW2-12] Underline and button animations
2 parents 50d1961 + 6716f3e commit 704cc9e

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

Diff for: frontend/src/components/Background.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Spline from '@splinetool/react-spline';
33
const Background = () => {
44
return (
55
<Spline
6-
className="absolute "
6+
className="absolute"
77
scene="https://prod.spline.design/thPGkOvNXu8XjGlk/scene.splinecode"
88
/>
99
);

Diff for: frontend/src/components/Event/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Event = () => {
1111
listings, check out the CSESoc Discord or our Facebook page!
1212
</p>
1313
<a href="events">
14-
<button className="mt-10 bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[60%] xl:h-12 h-10">
14+
<button className="mt-10 bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[60%] xl:h-12 h-10 hover-animate">
1515
See all events
1616
</button>
1717
</a>

Diff for: frontend/src/components/Landing/index.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ const Landing = () => {
2020
<p>{'<h2>'}</p>
2121
<h2 className="font-bold 2xl:text-3xl text-xl">
2222
We are the principal representative body for{' '}
23-
<span className="text-[#3977F9]">UNSW computing</span> students.
23+
<a href="https://www.unsw.edu.au/engineering/our-schools/computer-science-and-engineering"
24+
target = "_blank"
25+
className="text-[#3977F9] relative after:bg-current after:absolute after:h-1 after:w-0 after:bottom-0 after:left-0 hover:after:w-full after:duration-200"
26+
>
27+
UNSW computing
28+
</a>
29+
{' '}students.
2430
</h2>
2531
<p>{'</h2>'}</p>
2632
</div>

Diff for: frontend/src/components/Sponsors/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const Sponsors = () => {
2828
<h2 className="text-4xl font-black">Our sponsors</h2>
2929
<p className="xl:my-10 my-3 text-lg">Check out our very cool sponsors.</p>
3030
<a href="sponsors">
31-
<button className="bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[100%] xl:h-12 h-10">
31+
<button className="bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[100%] xl:h-12 h-10 hover-animate">
3232
View our sponsors
3333
</button>
3434
</a>

Diff for: frontend/src/styles/globals.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ body {
2727
}
2828

2929
.hover-animate:hover {
30-
transform: scale(1.01);
30+
transform: scale(1.03);
3131
}

0 commit comments

Comments
 (0)