Skip to content

Commit

Permalink
Companies Page (#5)
Browse files Browse the repository at this point in the history
Co-authored-by: Faris Ashai <farisashai@gmail.com>
  • Loading branch information
Jvil26 and farisashai authored Nov 15, 2022
1 parent 796db6f commit 714e9d5
Show file tree
Hide file tree
Showing 10 changed files with 136 additions and 3 deletions.
Binary file added public/asset/FlockFreight_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/asset/LplFinancial_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/asset/MaXentric_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/asset/MagnaFlow_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/asset/Xifin_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions src/components/CompaniesGrid/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import s from "./style.module.scss";

const companies = [
// {
// name: "Shield AI",
// logo: "",
// link: "https://shield.ai/",
// alt: "Shield AI Company Sponsor Logo",
// },
{
name: "MaXentric",
logo: "asset/MaXentric_logo.png",
link: "https://maxentric.com/",
alt: "MaXentric Company Sponsor Logo",
},
{
name: "MagnaFlow",
logo: "asset/MagnaFlow_logo.png",
link: "https://www.magnaflow.com/",
alt: "MagnaFlow Company Sponsor Logo",
},

{
name: "LPL Financial",
logo: "asset/LplFinancial_logo.png",
link: "https://www.lpl.com/",
alt: "LPL Financial Company Sponsor Logo",
},
{
name: "Xifin",
logo: "asset/Xifin_logo.png",
link: "https://www.xifin.com/",
alt: "Xifin Company Sponsor Logo",
},
{
name: "Flock Freight",
logo: "asset/FlockFreight_logo.png",
link: "https://www.flockfreight.com/",
alt: "Flock Freight Company Sponsor Logo",
},
// {
// name: "ASML",
// logo: "",
// link: "https://www.asml.com/en",
// alt: "ASML Company Sponsor Logo",
// },
];

const CompaniesGrid: React.FC = () => {
return (
<div className={s.container}>
{companies.map((company, index) => (
<a className={s.companyItem} key={index} href={company.link}>
<img src={company.logo} className={s.companyLogo} alt={company.alt} />
<h5 className={s.companyName}>{company.name}</h5>
</a>
))}
</div>
);
};

export default CompaniesGrid;
47 changes: 47 additions & 0 deletions src/components/CompaniesGrid/style.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@use "src/styles/vars.scss" as vars;

.container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
margin-top: 4rem;
row-gap: 1.7rem;
column-gap: 1.25rem;

.companyItem {
background: vars.$grey;
border-radius: 1.25rem;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding: 2rem 2rem 0.75rem 2rem;
text-decoration: none;

&:hover {
transform: scale(1.03);
transition: 0.5s ease-in-out;
}
> .companyName {
margin: 0;
font-style: normal;
font-weight: 600;
font-size: 1.12rem;
line-height: 1.2rem;
color: #120e46;
}

.companyLogo {
object-fit: contain;
width: 80%;
height: 6rem;
overflow: hidden;
}
}

@media only screen and (max-width: 425px) {
.companyItem {
width: 80vw;
}
grid-template-columns: repeat(auto-fit, minmax(11.25rem, 1fr));
}
}
14 changes: 11 additions & 3 deletions src/sections/Companies/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import CompaniesGrid from "src/components/CompaniesGrid";
import s from "./style.module.scss";

const Companies: React.FC = () => {
return <div></div>
}
return (
<section className={s.container}>
<h1>Participating Companies</h1>
<CompaniesGrid />
</section>
);
};

export default Companies;
export default Companies;
15 changes: 15 additions & 0 deletions src/sections/Companies/style.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@use "src/styles/vars.scss" as vars;

.container {
background: linear-gradient(180deg, vars.$pink 30%, vars.$blue 160%);
min-height: 100vh;
padding: 2.5rem;

> h1 {
font-style: normal;
font-size: 2.8rem;
font-weight: 600;
color: vars.$white;
text-align: center;
}
}
1 change: 1 addition & 0 deletions src/styles/vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ $black: #000000;
$blue: #110f47;
$pink: #967785;
$white: #ffffff;
$grey: #d9d9d9;

1 comment on commit 714e9d5

@vercel
Copy link

@vercel vercel bot commented on 714e9d5 Nov 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.