Skip to content

Commit e6cfa39

Browse files
committed
home page layout
1 parent 9b260e5 commit e6cfa39

File tree

2 files changed

+64
-82
lines changed

2 files changed

+64
-82
lines changed

frontend/pages/index.js

Lines changed: 60 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
GridItem,
1414
Image as ChakraImage,
1515
VStack,
16-
HStack,
1716
Accordion,
1817
Icon,
1918
Spacer,
@@ -170,11 +169,17 @@ const Homepage = () => {
170169
boxSize="full"
171170
pt={["130px", "152px"]}
172171
pb={10}
173-
px="5%"
174172
flexDir="column"
175173
>
176174
<Stack textAlign="center" alignItems="center" w="100%">
177175
<Link
176+
onClick={() => {
177+
buttonReport(
178+
"tech-crunch",
179+
"front-and-center",
180+
"landing"
181+
);
182+
}}
178183
mb="60px"
179184
isExternal
180185
href="https://www.crypto-reporter.com/press-releases/moonstream-to-wins-techcrunch-pitch-off-earning-a-spot-at-disrupt-2023-39287/
@@ -224,6 +229,7 @@ const Homepage = () => {
224229
<Center>
225230
<Button
226231
variant="orangeGradient"
232+
px={["20px", "20px", "30px"]}
227233
onClick={() => {
228234
buttonReport(
229235
"Boost",
@@ -239,6 +245,7 @@ const Homepage = () => {
239245
<Center>
240246
<Button
241247
variant="whiteOutline"
248+
px={["20px", "20px", "30px"]}
242249
onClick={() => {
243250
buttonReport(
244251
"Discord",
@@ -253,82 +260,58 @@ const Homepage = () => {
253260
</Center>
254261
</Stack>
255262
</Stack>
256-
<Box w={["100%", "70%", "60%"]}>
257-
<HStack h="100%" alignItems="flex-start">
258-
<Flex w={["50%", "43%"]} h={["auto", "100%"]}>
259-
<Flex w="100%">
260-
<Stack
261-
direction={["column", "column", "row"]}
262-
textAlign={["center", "center", "left"]}
263-
>
264-
<Text
265-
fontSize={[
266-
"xl",
267-
"xl",
268-
"2xl",
269-
"5xl",
270-
"5xl",
271-
"5xl",
272-
]}
273-
fontWeight="medium"
274-
pr={4}
275-
>
276-
&gt;$4b
277-
</Text>
278-
<Text
279-
w="100%"
280-
alignSelf={[
281-
"flex-start",
282-
"flex-start",
283-
"center",
284-
]}
285-
fontSize={["sm", "md"]}
286-
>
287-
transaction volume
288-
<br />
289-
and growing
290-
</Text>
291-
</Stack>
292-
</Flex>
293-
</Flex>
294-
<Center w={["50%", "57%"]} h="100%">
295-
<Flex w="100%" justifyContent="right">
296-
<Stack
297-
direction={["column", "column", "row"]}
298-
textAlign={["center", "center", "left"]}
299-
>
300-
<Text
301-
fontSize={[
302-
"xl",
303-
"xl",
304-
"2xl",
305-
"5xl",
306-
"5xl",
307-
"5xl",
308-
]}
309-
fontWeight="medium"
310-
pr={4}
311-
>
312-
&gt;44k
313-
</Text>
314-
<Text
315-
w="100%"
316-
alignSelf={[
317-
"flex-start",
318-
"flex-start",
319-
"center",
320-
]}
321-
fontSize={["sm", "md"]}
322-
>
323-
active users in game economies
324-
<br />
325-
built with our engine
326-
</Text>
327-
</Stack>
328-
</Flex>
263+
<Grid
264+
maxW="737px"
265+
textAlign={["center", "center", "left"]}
266+
gridTemplateColumns={[
267+
"1fr 1fr",
268+
"1fr 1fr",
269+
"auto auto",
270+
]}
271+
gridGap={["20px", "20px", "40px"]}
272+
>
273+
<Flex
274+
direction={["column", "column", "row"]}
275+
minW={["50%", "50%", "0px"]}
276+
>
277+
<Text
278+
fontSize={["24", "24", "40"]}
279+
fontWeight="500"
280+
pr={["0px", "0px", "20px"]}
281+
>
282+
&gt;$4b
283+
</Text>
284+
<Center>
285+
<Text
286+
fontSize={["14px", "14px", "18px"]}
287+
lineHeight={["18px", "18px", "23px"]}
288+
>
289+
transaction volume
290+
<br />
291+
and growing
292+
</Text>
293+
</Center>
294+
</Flex>
295+
<Flex direction={["column", "column", "row"]}>
296+
<Text
297+
fontSize={["24", "24", "40"]}
298+
fontWeight="500"
299+
pr={["0px", "0px", "20px"]}
300+
>
301+
&gt;44k
302+
</Text>
303+
<Center>
304+
<Text
305+
fontSize={["14px", "14px", "18px"]}
306+
lineHeight={["18px", "18px", "23px"]}
307+
>
308+
active users in game economies
309+
<br />
310+
built with our engine
311+
</Text>
329312
</Center>
330-
</HStack>
331-
</Box>
313+
</Flex>
314+
</Grid>
332315
</Flex>
333316
</Box>
334317
</chakra.header>

frontend/src/components/LandingBarMobile.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,12 @@ const LandingBarMobile = () => {
3232
direction="column"
3333
width={"100%"}
3434
justifyContent={ui.isLoggedIn ? "center" : "space-between"}
35+
p="12px 7% 10px 7%"
3536
>
3637
<Flex
3738
width={"100%"}
3839
alignItems="center"
3940
flex="flex: 0 0 100%"
40-
pl="10px"
41-
pr="27px"
4241
mt={ui.isLoggedIn ? "0px" : "12px"}
4342
>
4443
<RouterLink href="/" passHref>
@@ -107,15 +106,15 @@ const LandingBarMobile = () => {
107106
justifyContent="center"
108107
w="100%"
109108
variant="link"
110-
spacing={4}
111-
flexGrow={0.5}
109+
// spacing={4}
110+
// flexGrow={0.5}
112111
>
113112
{SITEMAP.map((item, idx) => {
114113
return (
115114
<React.Fragment key={`Fragment-${idx}`}>
116115
{item.type !== PAGETYPE.FOOTER_CATEGORY && item.children && (
117116
<Menu>
118-
<MenuButton variant="mobile" mb="0px" p="0px" as={Button}>
117+
<MenuButton variant="mobile" m="0px" p="0px" as={Button}>
119118
{item.title}
120119
</MenuButton>
121120
<Portal>

0 commit comments

Comments
 (0)