Skip to content

Commit

Permalink
Merge pull request #25 from csesoc/CW2-58-animate-button
Browse files Browse the repository at this point in the history
[CW2-58] Animate Follow Button
  • Loading branch information
derekxu04 authored Jul 25, 2024
2 parents 6469bae + 7a4b02f commit 946c7d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/about/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function AboutPage() {
<h2 className="mt-10 text-3xl font-extrabold">CSESoc</h2>
<p className="text-[#727B8C] font-medium">unsw-computer-science-engineering-society</p>
<a href="https://www.facebook.com/csesoc/" target="_blank">
<button className="bg-[#444F6F] w-full my-5 py-2 rounded">Follow</button>
<button className="bg-[#444F6F] w-full my-5 py-2 rounded hover-animate">Follow</button>
</a>
<p>
CSESoc is the principal representative body for UNSW computing students.
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ body {
.animate-blink {
animation: blink 1s step-end infinite;
}

.hover-animate {
transition: transform 0.3s ease;
}

.hover-animate:hover {
transform: scale(1.01);
}

0 comments on commit 946c7d0

Please sign in to comment.