Skip to content

Commit a4b12d8

Browse files
authored
Merge pull request #21 from csesoc/CW2-31-refactor-code
[CW2-31] refactor code
2 parents 8b63ebc + 18b008b commit a4b12d8

26 files changed

+655
-662
lines changed

frontend/public/data/socialInfos.ts

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
export type socialInfo = {
2+
href: string;
3+
src: string;
4+
alt: string;
5+
};
6+
7+
export const socialLinks: socialInfo[] = [
8+
{
9+
href: 'https://bit.ly/CSESocDiscord',
10+
src: '/assets/discord_logo.svg',
11+
alt: 'Discord'
12+
},
13+
{
14+
href: 'https://www.facebook.com/csesoc/',
15+
src: '/assets/fb_logo.svg',
16+
alt: 'Facebook'
17+
},
18+
{
19+
href: 'https://twitter.com/csesoc?lang=en',
20+
src: '/assets/x_twitter_icon.svg',
21+
alt: 'X/Twitter'
22+
},
23+
{
24+
href: 'https://www.youtube.com/@CSESocUNSW',
25+
src: '/assets/youtube_logo.svg',
26+
alt: 'Youtube'
27+
},
28+
{
29+
href: 'https://www.instagram.com/csesoc_unsw/?hl=en',
30+
src: '/assets/instagram_logo.svg',
31+
alt: 'Instagram'
32+
},
33+
{
34+
href: 'https://www.tiktok.com/@csesoc?lang=en',
35+
src: '/assets/tiktok_logo.svg',
36+
alt: 'TikTok'
37+
},
38+
{
39+
href: 'https://www.linkedin.com/company/csesoc?originalSubdomain=au',
40+
src: '/assets/linkedin_logo.svg',
41+
alt: 'LinkedIn'
42+
}
43+
];

frontend/public/data/data.ts renamed to frontend/public/data/sponsorInfos.ts

Lines changed: 20 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -5,59 +5,51 @@ export type sponsorInfo = {
55
description: string;
66
};
77

8-
export type socialInfo = {
9-
href: string;
10-
src: string;
11-
alt: string;
12-
};
13-
148
export const diamondLinks: sponsorInfo[] = [
159
{
1610
href: 'https://www.janestreet.com/',
17-
svg: 'assets/janestreet_logo.svg',
11+
svg: '/assets/janestreet_logo.svg',
1812
alt: 'Janestreet logo',
1913
description: "Jane Street is a research-driven trading firm where curious people work together on deep problems",
2014
},
2115
{
2216
href: 'https://www.tiktok.com/en/',
23-
svg: 'assets/tiktok_logo.svg',
17+
svg: '/assets/tiktok_logo.svg',
2418
alt: 'Tiktok logo',
2519
description: "TikTok is a social media platform for creating, sharing and discovering short videos",
26-
2720
}
2821
];
2922

3023
export const goldLinks: sponsorInfo[] = [
3124
{
3225
href: 'https://www.atlassian.com/',
33-
svg: 'assets/atlassian_logo.svg',
26+
svg: '/assets/atlassian_logo.svg',
3427
alt: 'Atlassian logo',
3528
description: "Atlassian Corporation is an Australian-American software company that develops products for software developers, and project managers among other groups",
36-
3729
},
3830
{
3931
href: 'https://www.citadel.com/',
40-
svg: 'assets/citadel_logo.svg',
32+
svg: '/assets/citadel_logo.svg',
4133
alt: 'Citadel logo',
4234
description: "We are an alternative investment manager working on behalf of the world's preeminent institutions. Discover our work, teams, careers and more",
4335
},
4436
{
4537
href: 'https://www.imc.com/ap/',
46-
svg: 'assets/imc_logo.svg',
38+
svg: '/assets/imc_logo.svg',
4739
alt: 'IMC logo',
4840
description: "For three decades IMC has provided liquidity to the financial markets globally. Specialised in algorithmic trading and advanced technology, we set the pace for the evolution of market making.",
4941

5042
},
5143
{
5244
href: 'https://neara.com/',
53-
svg: 'assets/neara_logo.svg',
45+
svg: '/assets/neara_logo.svg',
5446
alt: 'Neara logo',
55-
description: "Neara electric utility software is a physics-enabled platform that builds 3D interactive models of critical infrastructure networks and assets.",
47+
description: "Neara electric utility software is a physics-enabled platform that builds 3D interactive models of critical infrastructure networks and /assets.",
5648

5749
},
5850
{
5951
href: 'https://safetyculture.com/',
60-
svg: 'assets/safetyculture_logo.svg',
52+
svg: '/assets/safetyculture_logo.svg',
6153
alt: 'SafetyCulture logo',
6254
description: "Get to the root cause of workplace trends with total visibility across your organization. Use data from completed inspections, reported incidents, sensors, and asset history to keep workers safe, and prevent things from happening in the first place"
6355
}
@@ -66,107 +58,69 @@ export const goldLinks: sponsorInfo[] = [
6658
export const silverLinks: sponsorInfo[] = [
6759
{
6860
href: 'https://appian.com/',
69-
svg: 'assets/appian_logo.svg',
61+
svg: '/assets/appian_logo.svg',
7062
alt: 'Appian logo',
7163
description: "Appian Corporation is an American cloud computing and enterprise software company headquartered in McLean, Virginia, part of the Dulles Technology Corridor. The company sells a platform as a service for building enterprise software applications",
7264
},
7365
{
7466
href: 'https://www.flowtraders.com/',
75-
svg: 'assets/flowtraders_logo.svg',
67+
svg: '/assets/flowtraders_logo.svg',
7668
alt: 'FlowTraders logo',
7769
description: "Flow Traders is a proprietary trading firm. A market maker, it provides liquidity in the securities market by using high frequency and quantitative trading strategies",
7870
},
7971
{
8072
href: 'https://www.macquarie.com.au/',
81-
svg: 'assets/macquarie_logo.svg',
73+
svg: '/assets/macquarie_logo.svg',
8274
alt: 'Macquarie logo',
8375
description: "Macquarie Bank offers transaction accounts, home loans, credit cards, online banking, business banking and more"
8476

8577
},
8678
{
8779
href: 'https://optiver.com/',
88-
svg: 'assets/optiver_logo.svg',
80+
svg: '/assets/optiver_logo.svg',
8981
alt: 'Optiver logo',
9082
description: "Optiver is a global market maker. As one of the oldest market making firms in the world, Optiver has been improving financial markets since 1986"
9183
},
9284
{
9385
href: 'https://quantium.com/',
94-
svg: 'assets/quantium_logo.svg',
86+
svg: '/assets/quantium_logo.svg',
9587
alt: 'Quantium logo',
9688
description: "Quantium has developed a world-class data science and AI solution that has transformed the accuracy of Walmart's prediction of customers' needs at scale"
9789
},
9890
{
9991
href: 'https://quickli.com.au/',
100-
svg: 'assets/quickli_logo.svg',
92+
svg: '/assets/quickli_logo.svg',
10193
alt: 'Quickli logo',
10294
description: "Bringing 30+ lender calcs into one, easy-to-use interface delivering accurate results and relevant policy insights for even the most complex scenarios."
10395
},
10496
{
10597
href: 'https://www.revolutionise.com.au/',
106-
svg: 'assets/revsport_logo.svg',
98+
svg: '/assets/revsport_logo.svg',
10799
alt: 'RevolutioniseSport logo',
108100
description: "revolutioniseSPORT is an online management platform for sports of all shapes and sizes"
109101
},
110102
{
111103
href: 'https://www.recordpoint.com/',
112-
svg: 'assets/recordpoint_logo.svg',
104+
svg: '/assets/recordpoint_logo.svg',
113105
alt: 'RecordPoint logo',
114106
description: "Manage all your data and records in one central place – without moving them",
115107
},
116108
{
117109
href: 'https://sig.com/',
118-
svg: 'assets/susquehanna_logo.svg',
110+
svg: '/assets/susquehanna_logo.svg',
119111
alt: 'Susquehanna logo',
120112
description: "Discover Susquehanna, a global quantitative trading firm built on a rigorous, analytical foundation in financial markets."
121113
},
122114
{
123115
href: 'https://zip.co/au',
124-
svg: 'assets/zip_logo.svg',
116+
svg: '/assets/zip_logo.svg',
125117
alt: 'Zip logo',
126118
description: "Zip Co Limited is a global 'buy now pay later' financial technology company with operations in Australia, New Zealand and the USA",
127119
},
128120
{
129121
href: 'https://www.canva.com/en_au/',
130-
svg: 'assets/canva_logo.svg',
122+
svg: '/assets/canva_logo.svg',
131123
alt: 'Canva logo',
132124
description: "Canva is a free-to-use online graphic design tool. Use it to create social media posts, presentations, posters, videos, logos and more."
133125
}
134-
];
135-
136-
export const socialLinks: socialInfo[] = [
137-
{
138-
href: 'https://bit.ly/CSESocDiscord',
139-
src: 'assets/discord_logo.svg',
140-
alt: 'Discord'
141-
},
142-
{
143-
href: 'https://www.facebook.com/csesoc/',
144-
src: 'assets/fb_logo.svg',
145-
alt: 'Facebook'
146-
},
147-
{
148-
href: 'https://twitter.com/csesoc?lang=en',
149-
src: 'assets/x_twitter_icon.svg',
150-
alt: 'X/Twitter'
151-
},
152-
{
153-
href: 'https://www.youtube.com/@CSESocUNSW',
154-
src: 'assets/youtube_logo.svg',
155-
alt: 'Youtube'
156-
},
157-
{
158-
href: 'https://www.instagram.com/csesoc_unsw/?hl=en',
159-
src: 'assets/instagram_logo.svg',
160-
alt: 'Instagram'
161-
},
162-
{
163-
href: 'https://www.tiktok.com/@csesoc?lang=en',
164-
src: 'assets/tiktok_logo.svg',
165-
alt: 'TikTok'
166-
},
167-
{
168-
href: 'https://www.linkedin.com/company/csesoc?originalSubdomain=au',
169-
src: 'assets/linkedin_logo.svg',
170-
alt: 'LinkedIn'
171-
}
172-
];
126+
];

frontend/src/components/About/AboutHomepage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Link from "next/link";
21
import Image from "next/image";
2+
33
export default function AboutHomePage() {
44
return (
55
<section className="py-8 xl:px-24 sm:px-10 px-5" id="about">
@@ -30,7 +30,7 @@ export default function AboutHomePage() {
3030
We are here to fulfil the social, personal and
3131
professional needs of CSE students, and promote computing through a variety of forms.
3232
<br/><br/>
33-
Learn more <a href="about" className="text-[#3977F9]">about us!</a>
33+
Learn more <a href="/about" className="text-[#3977F9]">about us!</a>
3434
</p>
3535

3636
</div>

frontend/src/components/About/index.tsx

Lines changed: 0 additions & 124 deletions
This file was deleted.

0 commit comments

Comments
 (0)