diff --git a/frontend/package-lock.json b/frontend/package-lock.json index cebf6c7..cc5ec6f 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -15,7 +15,7 @@ "autoprefixer": "10.4.15", "axios": "^1.7.2", "eslint-config-next": "13.4.19", - "framer-motion": "^11.1.2", + "framer-motion": "^11.2.13", "next": "13.4.12", "postcss": "8.4.29", "react": "18.2.0", @@ -2424,9 +2424,9 @@ } }, "node_modules/framer-motion": { - "version": "11.1.2", - "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.1.2.tgz", - "integrity": "sha512-flRo14ImBGRbOFz9KsXQ9ty3wWW2zFk0Gp4VbvZ5bG+1gZg/1CNWj9ZHtsCmZSPkBgZNOVkVf6aEtW5YxOITfw==", + "version": "11.2.13", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.2.13.tgz", + "integrity": "sha512-AyIeegfkXlkX1lWEudRYsJlC+0A59cE8oFK9IsN9bUQzxLwcvN3AEaYaznkELiWlHC7a0eD7pxsYQo7BC05S5A==", "dependencies": { "tslib": "^2.4.0" }, diff --git a/frontend/package.json b/frontend/package.json index 7aea3ff..d40091e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -20,7 +20,7 @@ "autoprefixer": "10.4.15", "axios": "^1.7.2", "eslint-config-next": "13.4.19", - "framer-motion": "^11.1.2", + "framer-motion": "^11.2.13", "next": "13.4.12", "postcss": "8.4.29", "react": "18.2.0", diff --git a/frontend/src/components/About/index.tsx b/frontend/src/components/About/index.tsx index 4071a9e..de495c5 100644 --- a/frontend/src/components/About/index.tsx +++ b/frontend/src/components/About/index.tsx @@ -1,5 +1,6 @@ import Image from 'next/image'; import Link from 'next/link'; +import Stats from '../Stats'; const About = () => { return ( @@ -9,16 +10,17 @@ const About = () => {

ABOUT

-
+
{/* LEFT SIDE */} -
-
+
+{/*
CSESoc Icon -
-

CSESoc

-

unsw-computer-science-engineering-society

- -

+

*/} +{/*

CSESoc

+

unsw-computer-science-engineering-society

*/} + +{/* */} +{/*

CSESoc is the principal representative body for UNSW computing students.

@@ -35,11 +37,11 @@ const About = () => {
Mail info@csesoc.org.au -
+
*/}
{/* RIGHT SIDE */} -
-
+
+{/*

csesoc/README.md

@@ -51,8 +53,8 @@ const About = () => { We are here to fulfil the social, personal and professional needs of CSE students, and promote computing through a variety of forms.

-
-
+
*/} +
Pinned {/* TODO: refactor all of this */}
diff --git a/frontend/src/components/Stats.tsx b/frontend/src/components/Stats.tsx new file mode 100644 index 0000000..087050c --- /dev/null +++ b/frontend/src/components/Stats.tsx @@ -0,0 +1,209 @@ +import Image from 'next/image'; +import { motion, useAnimationControls } from "framer-motion" +import { useEffect } from 'react'; + +const Stats = () => { + const r = 80; + const controls = useAnimationControls() + + const progress = { + hidden: { pathLength: 0, opacity: 0 }, + visible: { + pathLength: 0.7, + opacity: 1, + transition: { + pathLength: { type: "spring", duration: 1.5, bounce: 0 }, + opacity: { duration: 0.05 } + } + } + } + + useEffect(() => { + controls.start("hidden") + controls.start("visible") + controls.stop(); + }, []); + + const revert = async() => { + await controls.start("hidden") + return await controls.start("visible") + } + + return ( +
+
+ CSESoc Icon + + + + +

CSESoc

+

unsw-computer-science-engineering-society

+
+
{revert()}}> + People + 433 + total members +
+
{revert()}}> + People + 53 + events held +
+
{revert()}}> + People + 343 + subcom +
+
{revert()}}> + People + 343 + subcom +
+{/*
+ 53 +
+ People + held +
+
+
+ People + 300 subcom +
+
+ People + 52 events held +
*/} +
+{/*
+
+ CSESoc Icon +
+
+ People + 53 + events held +
+ +
*/} +{/*
+ Location + Sydney, Australia +
+
+ Mail + info@csesoc.org.au +
+ +
+

STATS

+
+
+

323,000

+

Members

+
+
+

300

+

Team Members

+
+
+

52

+

Events held

+
+
*/} + +
+
+
+
+ People + CSESoc is the principal representative body for UNSW computing students. +
+
+ Location + Sydney, Australia +
+
+ Mail + info@csesoc.org.au +
+
+
+ +
+
+
+

+ csesoc/README.md +

+

+ 1   CSESoc is one of the biggest and most active societies at
+ 2   UNSW, catering to over 3500 CSE students spanning across
+ 3   degrees in Computer Science, Software Engineering,
+ 4   Bioinformatics and Computer Engineering. +

+ 5   We are here to fulfil the social, personal and professional
+ 6   needs of CSE students, and promote computing through a
+ 7   variety of forms. +

+
+
+ + + +
+
+
+
+

+ execs-directors-subcoms.md +

+

+ 1   100+ events (35+ careers related revents)
+ 2   41 sponsors
+ 3   480 000 discord messages
+ 4   200+ volunteers.
+ 5   Tiktok: 27.2k views, 2k+ likes
+ 6   Podcast: 10k downloads, 600+ average viewers
+ 7   500+ high school students reached. +

+
+
+ + + +
+
+
+
+ ); +}; + +export default Stats;