Skip to content

Commit

Permalink
feat: Add team
Browse files Browse the repository at this point in the history
  • Loading branch information
kovipu committed Sep 11, 2024
1 parent e56b2ad commit 31ddc8f
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const PageWrapper = () => {
return (
<body className={`font-sans min-h-screen ${isIndex ? 'bg-white' : 'bg-grey-light'}`}>
<Nav />
<main className={`max-w-screen ${isIndex ? 'w-[70rem]' : 'w-256'}`}>
<main className={`max-w-screen ${isIndex ? 'w-[74rem]' : 'w-256'}`}>
<Outlet />
</main>
</body>
Expand Down
5 changes: 4 additions & 1 deletion src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ export interface LinkButtonProps {

export const LinkButton = ({ to, className = '', children }: PropsWithChildren<LinkButtonProps>) => (
<Link to={to} className={`${buttonStyle} ${className}`}>{children}</Link>
);

)
export const NativeLinkButton = ({ to, className = '', children }: PropsWithChildren<LinkButtonProps>) => (
<a href={to} className={`${buttonStyle} ${className}`}>{children}</a>
);

export const SelectButtonWrapper = ({ children }: PropsWithChildren) => (
<div className="flex bg-grey p-1 gap-2 rounded-full">{children}</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function Nav() {

return (
<nav
className={`relative mx-auto mb-12 flex justify-between items-center pt-12 pb-6 px-4 ${isIndex ? 'max-w-[70rem]' : 'max-w-screen-lg'}`}
className={`relative mx-auto mb-12 flex justify-between items-center pt-12 pb-6 px-4 ${isIndex ? 'max-w-[74rem]' : 'max-w-screen-lg'}`}
>
<div>
<Link to="/">
Expand Down
Binary file added src/images/konsta.jpeg
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 src/images/teemu.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 48 additions & 3 deletions src/pages/_landing/LandingPage.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
import { LinkButton } from '@components/Button';
import { LinkButton, NativeLinkButton } from '@components/Button';
import CardsImage from '@images/cards.jpg';
import Teemu from '@images/teemu.jpg';
import Konsta from '@images/konsta.jpeg';

const team = [
{
image: Teemu.src,
name: "Teemu Hynnä",
discord: "",
github: "https://github.com/teolhyn"
},
{
image: Konsta.src,
name: "Konsta Purtsi",
discord: "",
github: "https://github.com/kovipu"
}
]

const LandingPage = () => (
<>
<section className="flex flex-row mb-12">
<section className="flex flex-row mb-14">
<div className="w-1/2">
<h1 className="text-[42px] font-medium mb-8">
A trustless loan platform focusing on single-token lending pools.
Expand All @@ -14,7 +31,7 @@ const LandingPage = () => (
<img src={CardsImage.src} alt="" />
</div>
</section>
<section className="border-t-4 flex flex-row">
<section className="border-t-4 flex flex-row my-14">
<div className="w-1/2 pt-14 pr-14 border-r-4">
<p className="text-2xl leading-relaxed mb-14">Laina is currently in the early development stage and is only operating on the Stellar Testnet.</p>
<p className="text-2xl leading-relaxed mb-14">Now that you're here, take a peek.</p>
Expand All @@ -27,7 +44,35 @@ const LandingPage = () => (
</p>
</div>
</section>
<section className="flex flex-row my-14">
<div className="w-1/2">
<h3 className="text-[42px] font-bold mb-14">The Team</h3>
<div className="flex flex-row">
{team.map((member) => (
<TeamMember {...member} />
))}
</div>
</div>
<div className="w-1/2 p-14 my-auto">
<p className="text-xl mb-14">Got a question? Ask us in the Stellar Dev Discord!</p>
<NativeLinkButton to="https://discord.com/invite/stellardev">Join Stellar Disord</NativeLinkButton>
</div>
</section>
</>
);

interface TeamMemberProps {
image: string;
name: string;
discord: string;
github: string;
}

const TeamMember = ({ image, name }: TeamMemberProps) => (
<div className="mr-14">
<img src={image} className="aspect-square rounded grayscale mb-8" />
<p className="text-xl font-semibold">{name}</p>
</div>
)

export default LandingPage;

0 comments on commit 31ddc8f

Please sign in to comment.