Skip to content

Commit

Permalink
0.4.7: improve front page
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Jun 12, 2022
1 parent 5fb65a1 commit 346f010
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langame-website",
"version": "0.4.6",
"version": "0.4.7",
"private": true,
"dependencies": {
"@emotion/react": "^11.7.1",
Expand Down
72 changes: 55 additions & 17 deletions src/views/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@ const Home = () => {
alignItems="center"
justifyContent="center"
spacing={4}

>
<Grid item>
<Grid item
xs={4}
>
<Discord />
</Grid>
<Grid item>
<Grid item
xs={4}
>
<Grid container
direction="row"
alignItems="center"
Expand Down Expand Up @@ -62,17 +67,62 @@ const Home = () => {
</Button>
</Tooltip>
</Grid>
<Grid item>
<Tooltip title="See what Langame Discord members answered to Langames">
<Button
startIcon={<ReadMore/>}
variant="outlined"
color="primary"
onClick={() => {
const url = "https://langame.notion.site/3fb80c46b8b046509644cfcd427961b1?v=9bd6caeb4c34406d8806ff58143f388e";
// go to url
window.open(url, "_blank", "noopener");
}}
>
Member answers
</Button>
</Tooltip>
</Grid>
</Grid>
</Grid>

<Grid item>
<DiscordSamples />
<Grid item
xs={12}
>
<Grid container
spacing={2}
>
<Grid item
xs={6}
>
<DiscordSamples
style={{
height: "400px",
}}
/>
</Grid>

<Grid item
xs={6}
>
<Timeline
dataSource={{ sourceType: "profile", screenName: "langame_ai" }}
options={{
theme: "dark",
height: "400px",
width: "100%",
}}
/>
</Grid>
</Grid>
</Grid>




<Grid item>
<Grid item
xs={12}
>
<Grid container
direction="column"
alignItems="center"
Expand Down Expand Up @@ -105,18 +155,6 @@ const Home = () => {
</Grid>
</Grid>
</Grid>

<Grid item>
<Timeline
dataSource={{ sourceType: "profile", screenName: "langame_ai" }}
options={{
theme: "dark",
height: "400px",
width: "100%",
}}
/>
</Grid>

</Grid>

</>
Expand Down

0 comments on commit 346f010

Please sign in to comment.