Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frit Ravich to Master #57

Merged
merged 7 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/Partners/frit_ravich.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion src/app/components/SponsorsAndPartners.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export default function SponsorsAndPartners() {
imageSrc={"/Sponsors/flanks.svg"}
imageAlt={"flanks"}
sponsorLink={"https://www.flanks.io/"}
smallPadding
/>
</KiloBox>
<KiloBox>
Expand All @@ -97,6 +98,7 @@ export default function SponsorsAndPartners() {
imageSrc={"/Partners/upc.svg"}
imageAlt={"upc"}
sponsorLink={"https://www.upc.edu/"}
smallPadding
/>
</MiliBox>
<MiliBox>
Expand Down Expand Up @@ -132,6 +134,7 @@ export default function SponsorsAndPartners() {
imageSrc={"/Partners/coeinf.png"}
imageAlt={"coeinf"}
sponsorLink={"https://enginyeriainformatica.cat/dones-coeinf/"}
smallPadding
/>
</MiliBox>
<MiliBox>
Expand All @@ -142,7 +145,12 @@ export default function SponsorsAndPartners() {
/>
</MiliBox>
<MiliBox>
<SponsorUnrevealed />
<SponsorLogo
imageSrc={"/Partners/frit_ravich.png"}
imageAlt={"fritravich"}
sponsorLink={"https://www.fritravich.com/en/"}
smallPadding
/>
</MiliBox>
</SponsorRow>
</Section>
Expand Down
9 changes: 5 additions & 4 deletions src/app/genericComponents/Sponsors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ const BoxContainerUnrevealed = styled.div`
cursor: help;
`;

const SponsorImage = styled.img`
const SponsorImage = styled.img<{ smallPadding?: boolean }>`
width: 100%;
height: 100%;
object-fit: contain;
padding: ${SpacingS};
padding: ${(props) => (props.smallPadding ? SpacingXS : SpacingS)};
`;

const HoverText = styled(BodyBold)`
Expand All @@ -95,14 +95,15 @@ interface SponsorLogoProps {
imageSrc: string;
imageAlt: string;
sponsorLink: string;
smallPadding?: boolean;
}

export function SponsorLogo(props: SponsorLogoProps) {
const { imageSrc, imageAlt, sponsorLink } = props;
const { imageSrc, imageAlt, sponsorLink, smallPadding } = props;

return (
<BoxContainer href={sponsorLink} target="_blank" rel="noopener noreferrer">
<SponsorImage src={imageSrc} alt={imageAlt} />
<SponsorImage src={imageSrc} alt={imageAlt} smallPadding={smallPadding} />
<HoverText>Go to website</HoverText>
</BoxContainer>
);
Expand Down
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const metadata: Metadata = {
creator: "@hackupc",
title: "HackUPC 2024 | May 3-5 | Student hackathon Barcelona",
description:
"36 hours student hackathon in Barcelona in May starting on the 3th ending the 5th",
"36 hours student hackathon in Barcelona in May starting on the 3rd ending the 5th",
images: {
url: "https://hackupc.com/ogimage.png?v=2024",
secureUrl: "https://hackupc.com/ogimage.png?v=2024",
Expand All @@ -37,7 +37,7 @@ export const metadata: Metadata = {
siteName: "HackUPC",
locale: "en_GB",
description:
"36 hours student hackathon in Barcelona in May starting on the 3th ending the 5th",
"36 hours student hackathon in Barcelona in May starting on the 3rd ending the 5th",
url: "https://hackupc.com",
images: {
url: "https://hackupc.com/ogimage.png?v=2024",
Expand Down
Loading