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

Add link to UTD Trends #65

Merged
merged 1 commit into from
Nov 11, 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 client/public/nebula-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions client/public/nebula-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions client/src/components/Core.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,35 @@ const Footer = styled.div`
}
`;

const TrendsLink = styled.a`
background: url("/nebula-bg.png") right / cover, black;
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.25rem;
margin-bottom: 0.5rem;
border-radius: 1.5rem;
color: white;
text-shadow: 0 0 4px rgb(0 0 0 / 0.6);
box-shadow: 0 2px 6px rgb(0 0 0 / 0.2);
transition: transform cubic-bezier(0.4, 0, 0.2, 1) 150ms, box-shadow cubic-bezier(0.4, 0, 0.2, 1) 150ms;
&:hover {
color: white;
box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
transform: scale(1.01);
}
`;

const TrendsText = styled.p`
line-height: 1.375rem;
margin-bottom: 0;
`;

const NebulaLogo = styled.img`
height: 1.375rem;
filter: drop-shadow(0 0 4px rgb(0 0 0 / 0.6));
`;

interface CoreProps {
children: ReactNode;
}
Expand All @@ -57,6 +86,10 @@ function Core({ children }: CoreProps) {
<Container>
<Body>{children}</Body>
<Footer>
<TrendsLink href="https://trends.utdnebula.com/" target={"blank"}>
<NebulaLogo src="/nebula-logo.svg" />
<TrendsText>Compare everything in one place with <b>UTD Trends</b></TrendsText>
</TrendsLink>
<p>
Built with <HeartTwoTone twoToneColor="#eb2f96" /> by{" "}
<a href="https://www.acmutd.co" target={"blank"}>ACM Dev</a>. Raw data available{" "}
Expand Down