Capital/app/page.tsx

75 lines
2.8 KiB
TypeScript
Raw Normal View History

2024-02-24 08:07:59 +00:00
import {
Avatar,
Box,
Button,
Card, colors,
Container,
Grid,
List,
ListItemAvatar,
ListItemButton,
ListItemText,
Typography
} from "@mui/material";
import { RELATED_ACCOUNTS } from "@/app/consts";
import Image from "next/image";
import Link from "next/link";
2024-02-24 06:16:57 +00:00
export default function Home() {
return (
2024-02-24 08:07:59 +00:00
<Container sx={{ scrollBehavior: "smooth", px: 5 }}>
<Grid
container
id="introduce"
alignItems="center"
sx={{ height: "calc(100vh - 64px)" }}
>
<Grid item xs={12} md={6} sx={{ textAlign: { xs: "center", md: "initial" } }}>
<Typography variant="h3" component="h1" gutterBottom> 👋</Typography>
<Typography paragraph>
SmartSheep Studio
</Typography>
<Button variant="contained" href="#about-us" size="large"></Button>
</Grid>
<Grid item xs={12} md={6} sx={{ display: "flex", justifyContent: "end" }}>
<Box>
2024-02-24 09:33:35 +00:00
<Image src="/smartsheep.svg" alt="Logo" width={256} height={256} />
2024-02-24 08:07:59 +00:00
</Box>
</Grid>
</Grid>
<Grid
container
id="about-us"
alignItems="center"
sx={{ height: "calc(100vh - 64px)" }}
>
<Grid item xs={12} md={6} sx={{ display: "flex", justifyContent: "start" }}>
<Card sx={{ flexGrow: 1, mr: { xs: 0, md: 8 } }}>
<List sx={{ width: "100%", bgcolor: "background.paper" }}>
{RELATED_ACCOUNTS.map((item, idx) => (
<Link key={idx} href={item.link} target="_blank" passHref>
<ListItemButton>
<ListItemAvatar>
<Avatar sx={{ bgcolor: colors.blueGrey[700] }}>{item.icon}</Avatar>
</ListItemAvatar>
<ListItemText primary={item.platform} secondary={item.accountName} />
</ListItemButton>
</Link>
))}
</List>
</Card>
</Grid>
<Grid item xs={12} md={6} sx={{ textAlign: { xs: "center", md: "initial" } }}>
<Typography variant="h3" component="h1" gutterBottom></Typography>
<Typography paragraph>
2019
</Typography>
</Grid>
</Grid>
2024-02-24 06:16:57 +00:00
</Container>
);
}