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

Update download section and fix logo in navbar #91

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
86 changes: 86 additions & 0 deletions components/Community.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import styled from "@emotion/styled";
import { SvgIcon, alpha } from "@mui/material";
import { StyledButton } from "../global/button";
import {
GitHub,
Reddit,
Telegram,
Instagram,
Twitter,
} from "@mui/icons-material";
import { DiscordLogo } from "./Icons";

const Card = styled.div`
border-radius: 14px;
max-width: 1250px;
max-height: 420px;
width: 100%;
margin: 0 auto;
padding: 4rem;
text-align: center;
color: ${({ theme }) => theme.palette.text.primary};
background: ${({ theme }) => theme.palette.primary.light};
border: 1.5px solid ${({ theme }) => alpha(theme.palette.text.primary, 0.2)};

@media (max-width: 1250px) {
flex-direction: column;
max-height: 60rem;
}
`;

const CommunityButton = styled(StyledButton)`
border-radius: 8px;
background-color: transparent;
color: ${({ theme }) => theme.palette.text.primary};
flex: auto;
padding: 16px;
margin: 0 8px;
width: 140px;

&:hover {
background: ${({ theme }) => alpha(theme.palette.text.primary, 0.1)};
}
`;

const List = styled.div`
text-align: center;
`;

const Download = () => {
return (
<>
<Card>
<h1>Join the Community!</h1>
<div style={{ height: "3rem" }} />
Copy link
Member

Choose a reason for hiding this comment

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

not super important for this component, but probably should still do for the sake of consistency:

inline styles should be a no-no, not only does it recreate a new object everytime its rendered its just slightly ugly.

<List>
<CommunityButton>
<GitHub />
Github
</CommunityButton>
<CommunityButton>
<SvgIcon component={DiscordLogo} />
Discord
</CommunityButton>
<CommunityButton>
<Reddit />
Reddit
</CommunityButton>
<CommunityButton>
<Telegram />
Telegram
</CommunityButton>
<CommunityButton>
<Instagram />
Instagram
</CommunityButton>
<CommunityButton>
<Twitter />
Twitter
</CommunityButton>
</List>
</Card>
</>
);
};

export default Download;
Loading