Skip to content

Commit 714e9d5

Browse files
Jvil26farisashai
andauthored
Companies Page (#5)
Co-authored-by: Faris Ashai <[email protected]>
1 parent 796db6f commit 714e9d5

File tree

10 files changed

+136
-3
lines changed

10 files changed

+136
-3
lines changed

public/asset/FlockFreight_logo.png

115 KB
Loading

public/asset/LplFinancial_logo.png

39.1 KB
Loading

public/asset/MaXentric_logo.png

85.5 KB
Loading

public/asset/MagnaFlow_logo.png

94.5 KB
Loading

public/asset/Xifin_logo.png

4.64 KB
Loading
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import s from "./style.module.scss";
2+
3+
const companies = [
4+
// {
5+
// name: "Shield AI",
6+
// logo: "",
7+
// link: "https://shield.ai/",
8+
// alt: "Shield AI Company Sponsor Logo",
9+
// },
10+
{
11+
name: "MaXentric",
12+
logo: "asset/MaXentric_logo.png",
13+
link: "https://maxentric.com/",
14+
alt: "MaXentric Company Sponsor Logo",
15+
},
16+
{
17+
name: "MagnaFlow",
18+
logo: "asset/MagnaFlow_logo.png",
19+
link: "https://www.magnaflow.com/",
20+
alt: "MagnaFlow Company Sponsor Logo",
21+
},
22+
23+
{
24+
name: "LPL Financial",
25+
logo: "asset/LplFinancial_logo.png",
26+
link: "https://www.lpl.com/",
27+
alt: "LPL Financial Company Sponsor Logo",
28+
},
29+
{
30+
name: "Xifin",
31+
logo: "asset/Xifin_logo.png",
32+
link: "https://www.xifin.com/",
33+
alt: "Xifin Company Sponsor Logo",
34+
},
35+
{
36+
name: "Flock Freight",
37+
logo: "asset/FlockFreight_logo.png",
38+
link: "https://www.flockfreight.com/",
39+
alt: "Flock Freight Company Sponsor Logo",
40+
},
41+
// {
42+
// name: "ASML",
43+
// logo: "",
44+
// link: "https://www.asml.com/en",
45+
// alt: "ASML Company Sponsor Logo",
46+
// },
47+
];
48+
49+
const CompaniesGrid: React.FC = () => {
50+
return (
51+
<div className={s.container}>
52+
{companies.map((company, index) => (
53+
<a className={s.companyItem} key={index} href={company.link}>
54+
<img src={company.logo} className={s.companyLogo} alt={company.alt} />
55+
<h5 className={s.companyName}>{company.name}</h5>
56+
</a>
57+
))}
58+
</div>
59+
);
60+
};
61+
62+
export default CompaniesGrid;
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
@use "src/styles/vars.scss" as vars;
2+
3+
.container {
4+
display: grid;
5+
grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
6+
margin-top: 4rem;
7+
row-gap: 1.7rem;
8+
column-gap: 1.25rem;
9+
10+
.companyItem {
11+
background: vars.$grey;
12+
border-radius: 1.25rem;
13+
display: flex;
14+
flex-direction: column;
15+
justify-content: space-between;
16+
align-items: center;
17+
padding: 2rem 2rem 0.75rem 2rem;
18+
text-decoration: none;
19+
20+
&:hover {
21+
transform: scale(1.03);
22+
transition: 0.5s ease-in-out;
23+
}
24+
> .companyName {
25+
margin: 0;
26+
font-style: normal;
27+
font-weight: 600;
28+
font-size: 1.12rem;
29+
line-height: 1.2rem;
30+
color: #120e46;
31+
}
32+
33+
.companyLogo {
34+
object-fit: contain;
35+
width: 80%;
36+
height: 6rem;
37+
overflow: hidden;
38+
}
39+
}
40+
41+
@media only screen and (max-width: 425px) {
42+
.companyItem {
43+
width: 80vw;
44+
}
45+
grid-template-columns: repeat(auto-fit, minmax(11.25rem, 1fr));
46+
}
47+
}

src/sections/Companies/index.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
import CompaniesGrid from "src/components/CompaniesGrid";
2+
import s from "./style.module.scss";
3+
14
const Companies: React.FC = () => {
2-
return <div></div>
3-
}
5+
return (
6+
<section className={s.container}>
7+
<h1>Participating Companies</h1>
8+
<CompaniesGrid />
9+
</section>
10+
);
11+
};
412

5-
export default Companies;
13+
export default Companies;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@use "src/styles/vars.scss" as vars;
2+
3+
.container {
4+
background: linear-gradient(180deg, vars.$pink 30%, vars.$blue 160%);
5+
min-height: 100vh;
6+
padding: 2.5rem;
7+
8+
> h1 {
9+
font-style: normal;
10+
font-size: 2.8rem;
11+
font-weight: 600;
12+
color: vars.$white;
13+
text-align: center;
14+
}
15+
}

src/styles/vars.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ $black: #000000;
22
$blue: #110f47;
33
$pink: #967785;
44
$white: #ffffff;
5+
$grey: #d9d9d9;

0 commit comments

Comments
 (0)