Skip to content

Commit

Permalink
Add some more copy to landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Aug 17, 2024
1 parent 2d3bb8a commit b4919d8
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 24 deletions.
29 changes: 16 additions & 13 deletions thallium-frontend/src/components/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,39 +1,42 @@
import styled from "styled-components";

const CardContainer = styled.div`
const CardContainer = styled.div<{ $seamless?: boolean; }>`
border: 3px solid ${({ theme }) => theme.borderColor};
border-top: ${({ $seamless }) => $seamless ? "0" : ""};
padding: 16px;
position: relative;
background-color: ${({ theme }) => theme.cardBackgroundColor};
text-align: left;
box-shadow: 10px 10px 0 ${({ theme }) => theme.cardShadow};
margin-top: ${({ $seamless }) => $seamless ? "0px" : "30px"};
`;

const CardTitle = styled.div`
const CardTitle = styled.div<{ $seamless?: boolean; }>`
position: absolute;
top: -16px;
left: 16px;
background-color: ${({ theme }) => theme.cardBackgroundColor};
background: linear-gradient(0deg, ${({ theme }) => theme.cardBackgroundColor} 0%, ${({ theme }) => theme.cardBackgroundColor} 45%, ${({ theme }) => theme.backgroundColor} 45%);
${({ $seamless, theme }) => $seamless ? "" : `background: linear-gradient(0deg, ${theme.cardBackgroundColor} 0%, ${theme.cardBackgroundColor} 45%, ${theme.backgroundColor} 45%)`};
padding: 0 8px;
font-weight: bold;
z-index: 1;
font-size: 1.2em;
`;

interface CardProps {
title: string;
children: React.ReactNode;
title: string;
children: React.ReactNode;
seamless?: boolean;
}

const Card: React.FC<CardProps> = ({ title, children }: CardProps) => {
return (
<CardContainer>
<CardTitle>{title}</CardTitle>
{children}
</CardContainer>
);
const Card: React.FC<CardProps> = ({ title, children, seamless }: CardProps) => {
return (
<CardContainer $seamless={seamless}>
<CardTitle $seamless={seamless}>{title}</CardTitle>
{children}
</CardContainer>
);
};

export default Card;
32 changes: 21 additions & 11 deletions thallium-frontend/src/pages/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,27 @@ import Card from "../components/Card";

const LandingPage = () => {
return (
<Card title="Welcome to Thallium">
<p>
Thallium is a project being developed by Owl Corp.
</p>
<p>
Owl Corp team members can track development progress on the <a href="https://github.com/owl-corp/thallium">GitHub repository</a>.
</p>
<p>
LLAP. 🖖
</p>
</Card>
<>
<Card title="Welcome to Thallium">
<p>
Thallium is a project being developed by Owl Corp.
</p>
<p>
LLAP. 🖖
</p>
</Card>
<Card title="What is Thallium?" seamless>
<p>
Thallium is a giveaway claiming tool for communities backed by Printful.
</p>
</Card>

<Card title="More Information">
<p>
You can keep track of the development progress on the <a href="https://github.com/owl-corp/thallium">GitHub repository</a>.
</p>
</Card>
</>
);
};

Expand Down

0 comments on commit b4919d8

Please sign in to comment.