Skip to content

Commit a4e60e6

Browse files
committed
feat: added statistics section to landing
1 parent 296d9a0 commit a4e60e6

File tree

7 files changed

+522
-826
lines changed

7 files changed

+522
-826
lines changed

package-lock.json

Lines changed: 339 additions & 820 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/img/watchit_statistics.svg

Lines changed: 99 additions & 0 deletions
Loading

src/assets/img/watchit_statistics_white.svg

Lines changed: 1 addition & 0 deletions
Loading

src/i18n/langs/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"LANDING_MENU_DOCS":"Docs",
88
"LANDING_MAIN_TITLE":"Discover Watchit",
99
"LANDING_MAIN_SUBTITLE":"A new era for cinema begins here. Filmmakers have total control over their creations and reap the benefits directly through our unique distribution model. Start your journey, get inspired, and transform: Power to the creators, magic for the viewers.",
10+
"LANDING_STATISTICS_TITLE":"Master your data",
11+
"LANDING_STATISTICS_SUBTITLE":"Explore our statistics dashboard, designed for content creators to monitor the performance of their films. Access detailed audience analysis, performance metrics, real-time revenue and trend comparisons, all in one interface intuitive that simplifies strategic decision making and enhances your success on the platform.",
1012
"LANDING_JOIN_US":"Join us!",
1113
"LANDING_JOIN_US_BUTTON":"Watchit Marketplace",
1214
"LANDING_JOIN_US_1_TITLE":"0xBlockbuster Rental Market",

src/i18n/langs/es.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"LANDING_MENU_DOCS":"Documentación",
88
"LANDING_MAIN_TITLE":"Descubre Watchit",
99
"LANDING_MAIN_SUBTITLE":"Una nueva era para el cine comienza aquí. Los cineastas tienen control total sobre sus creaciones y obtienen beneficios directamente a través de nuestro modelo de distribución único. Empieza tu viaje, inspírate y transforma: Poder para los creadores, magia para los espectadores.",
10+
"LANDING_STATISTICS_TITLE":"Domina tus datos",
11+
"LANDING_STATISTICS_SUBTITLE":"Explora nuestro dashboard de estadísticas, diseñado para que los creadores de contenido puedan monitorear el rendimiento de sus películas. Accede a análisis de audiencia detallados, métricas de rendimiento, ingresos en tiempo real y comparativas de tendencias, todo en una interfaz intuitiva que simplifica la toma de decisiones estratégicas y potencia tu éxito en la plataforma.",
1012
"LANDING_JOIN_US":"Únete a nosotros!",
1113
"LANDING_JOIN_US_BUTTON":"Mercado Watchit",
1214
"LANDING_JOIN_US_1_TITLE":"Conoce 0xBlockbuster",

src/pages/Landing/LandingView.tsx

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { Helmet } from 'react-helmet'
1010
import 'animate.css/animate.min.css'
1111

1212
// PROJECT IMPORTS
13-
import LandingPartners from '@pages/Landing/components/LandingPartners'
1413
import LandingDistribution from '@pages/Landing/components/LandingDistribution'
1514
import LandingHeader from '@pages/Landing/components/LandingHeader'
1615
import LandingCoin from '@pages/Landing/components/LandingCoin'
@@ -20,11 +19,10 @@ import LandingApp from '@pages/Landing/components/LandingApp'
2019
import Footer from '@components/Footer'
2120
import LandingSection, { PointsSx } from '@pages/Landing/components/LandingSection'
2221
import LandingPopCorn from '@pages/Landing/components/LandingPopcorn'
23-
import LandingAwesome from '@pages/Landing/components/LandingAwesome'
2422
import LandingMission from '@pages/Landing/components/LandingMission'
25-
import LandingFAQ from '@pages/Landing/components/LandingFAQ'
2623
import LandingRoadmap from '@pages/Landing/components/LandingRoadmap'
2724
import LandingRenting from "@pages/Landing/components/LandingRenting";
25+
import LandingStatistics from "@pages/Landing/components/LandingStatistics";
2826

2927
// ===========================|| LANDING - VIEW ||=========================== //
3028

@@ -62,12 +60,12 @@ export const LandingView: FC = (props): JSX.Element => {
6260
<LandingSection sx={Background2Sx}>
6361
<LandingCoin />
6462
</LandingSection>
63+
<LandingSection sx={Background3Sx}>
64+
<LandingStatistics />
65+
</LandingSection>
6566
<LandingSection sx={Background1Sx}>
6667
<LandingRoadmap />
6768
</LandingSection>
68-
{/*<LandingSection sx={Background2Sx}>*/}
69-
{/* <LandingFAQ />*/}
70-
{/*</LandingSection>*/}
7169
<LandingSection sx={Background2Sx}>
7270
<LandingTeam />
7371
</LandingSection>
@@ -79,6 +77,15 @@ export const LandingView: FC = (props): JSX.Element => {
7977
)
8078
}
8179

80+
const Background3Sx: SxProps<Theme> = {
81+
backgroundColor: (theme) => Object.is(theme.palette.mode, 'light')
82+
? theme.palette.background.paper
83+
: theme.palette.background.default,
84+
backgroundImage: (theme) => Object.is(theme.palette.mode, 'light')
85+
? 'linear-gradient(0deg, #fff 0%, #b8d2e4 0%)'
86+
: 'linear-gradient(0deg, rgba(0,25,44,1) 0%, #070113 0%)'
87+
}
88+
8289
const Background1Sx: SxProps<Theme> = {
8390
backgroundColor: (theme) => Object.is(theme.palette.mode, 'light')
8491
? theme.palette.background.paper
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// REACT IMPORTS
2+
import React, { FC } from 'react'
3+
4+
// MUI IMPORTS
5+
import { Grid, Container, Box, styled, BoxProps, useTheme } from '@mui/material'
6+
7+
// THIRD PARTY IMPORTS
8+
import { AnimationOnScroll } from 'react-animation-on-scroll'
9+
10+
// PROJECT IMPORTS
11+
import LandingStaticsLight from '@assets/img/watchit_statistics_white.svg'
12+
import LandingStatics from '@assets/img/watchit_statistics.svg'
13+
import LandingInfo from '@pages/Landing/components/LandingInfo'
14+
import { Translation } from '@src/i18n'
15+
16+
// ===========================|| LANDING - STATISTICS ||=========================== //
17+
18+
const LandingStatistics: FC = (): JSX.Element => {
19+
const theme = useTheme()
20+
const isThemeLight = Object.is(theme.palette.mode, 'light')
21+
22+
return (
23+
<Container sx={{ zIndex: 2 }}>
24+
<Grid
25+
container spacing={3} justifyContent='center' alignItems='center'
26+
sx={{ flexDirection: { xs: 'column-reverse', sm: 'row' }, flexWrap: { xs: 'nowrap', sm: 'wrap' } }}
27+
>
28+
<Grid item width='100%' xs={12} sm={6} zIndex={10}>
29+
<AnimationOnScroll animateIn='animate__bounceInLeft' animateOut='animate__fadeOut'>
30+
<LandingInfo
31+
title={<Translation target='LANDING_STATISTICS_TITLE' />}
32+
subTitle={<Translation target='LANDING_STATISTICS_SUBTITLE' />}
33+
/>
34+
</AnimationOnScroll>
35+
</Grid>
36+
<Grid item xs={12} sm={6} zIndex={10} width='100%'>
37+
<AnimationOnScroll
38+
animateIn='animate__fadeIn' animateOut='animate__fadeOut'
39+
style={{ width: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center' }}
40+
>
41+
<LandingStatisticsImage>
42+
{
43+
isThemeLight ? <LandingStaticsLight /> : <LandingStatics />
44+
}
45+
</LandingStatisticsImage>
46+
</AnimationOnScroll>
47+
</Grid>
48+
</Grid>
49+
</Container>
50+
)
51+
}
52+
53+
export const LandingStatisticsImage = styled(Box)<BoxProps>(({ theme }) => ({
54+
zIndex: 2,
55+
width: '100%',
56+
maxWidth: '30rem',
57+
svg: {
58+
width: '100%',
59+
height: 'auto'
60+
},
61+
[theme.breakpoints.down('sm')]: {
62+
maxWidth: '19rem'
63+
}
64+
}))
65+
66+
export default LandingStatistics

0 commit comments

Comments
 (0)