Skip to content

Commit f5864b1

Browse files
committed
add landingpage section title
1 parent e6b9718 commit f5864b1

File tree

6 files changed

+12
-64
lines changed

6 files changed

+12
-64
lines changed

src/screens/landing-page/sections/collaboration/LandingPageCollaboration.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ import {Typography} from "@mui/material";
33
import LandingPageSectionWrapper from "../../components/LandingPageSectionWrapper";
44
import VStack from "../../../../components/VStack";
55
import CollaborationBox from "./components/CollaborationBox";
6+
import LandingPageSectionTitle from "../../components/LandingPageSectionTitle";
67

78
const LandingPageCollaboration = ({isDesktop}) => {
89

910
return (
1011
<LandingPageSectionWrapper isDesktop={isDesktop}>
1112
<VStack gap={5} alignItems={'center'}>
12-
<Typography sx={styles.titleText}>
13-
Let's collaborate
14-
</Typography>
13+
<LandingPageSectionTitle title={'Let\'s collaborate'}/>
1514
<VStack gap={5} sx={{maxWidth: '780px'}}>
1615
<Typography sx={styles.text}>
1716
Do you know about some benefits or funding schemes that we are still missing? We would be really

src/screens/landing-page/sections/feedback/LandingPageFeedback.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@ import React from "react";
22
import {Typography} from "@mui/material";
33
import LandingPageSectionWrapper from "../../components/LandingPageSectionWrapper";
44
import VStack from "../../../../components/VStack";
5-
import globalStyles from "../../../../styles/styles";
65
import FeedbackBox from "./components/FeedbackBox";
6+
import LandingPageSectionTitle from "../../components/LandingPageSectionTitle";
77

88
const LandingPageFeedback = ({isDesktop}) => {
99

1010
return (
11-
<LandingPageSectionWrapper backgroundColor={globalStyles.primaryColor} isDesktop={isDesktop}>
11+
<LandingPageSectionWrapper isDesktop={isDesktop}>
1212
<VStack gap={5} alignItems={'center'}>
13-
<Typography sx={styles.titleText}>
14-
Help us improve FörderFunke
15-
</Typography>
13+
<LandingPageSectionTitle title={'Help us improve'}/>
1614
<VStack gap={5} sx={{maxWidth: '780px'}}>
1715
<Typography sx={styles.text}>
1816
Your feedback is essential for us to understand how we can improve your experience with the

src/screens/landing-page/sections/feedback/components/FeedbackBox.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ const FeedbackBox = ({isDesktop}) => {
6868
const styles = {
6969
feedbackBox: {
7070
maxWidth: '780px',
71-
padding: '24px',
72-
borderRadius: '12px',
73-
backgroundColor: 'white'
7471
},
7572
text: {
7673
fontSize: '20px',
Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import React from "react";
2+
import VStack from "../../../../components/VStack";
23
import LandingPageHowItWorksDesktop from "./views/LandingPageHowItWorksDesktop";
34
import LandingPageHowItWorksMobile from "./views/LandingPageHowItWorksMobile";
45
import LandingPageSectionWrapper from "../../components/LandingPageSectionWrapper";
5-
import VStack from "../../../../components/VStack";
6-
import HStack from "../../../../components/HStack";
7-
import {Typography} from "@mui/material";
86
import LandingPageBasics from "./components/LandingPageBasics";
97
import LandingPageWAppButton from "../../components/LandingPageWAppButton";
8+
import LandingPageSectionTitle from "../../components/LandingPageSectionTitle";
109

1110
const LandingPageHowItWorks = ({isDesktop}) => {
1211
const quick_check = `${process.env.PUBLIC_URL}/assets/images/landing-page/current_quickcheck_page.jpg`;
@@ -16,13 +15,7 @@ const LandingPageHowItWorks = ({isDesktop}) => {
1615
return (
1716
<LandingPageSectionWrapper isDesktop={isDesktop}>
1817
<VStack gap={5}>
19-
<VStack>
20-
<HStack justifyContent={'center'} sx={{width: '100%'}}>
21-
<Typography sx={styles.titleText}>
22-
That's how it works
23-
</Typography>
24-
</HStack>
25-
</VStack>
18+
<LandingPageSectionTitle title={'That\'s how it works'}/>
2619
{isDesktop ?
2720
<LandingPageHowItWorksDesktop quick_check={quick_check} benefits_overview={benefits_overview} benefit_page={benefit_page}/>
2821
: <LandingPageHowItWorksMobile quick_check={quick_check} benefits_overview={benefits_overview} benefit_page={benefit_page}/>
@@ -38,17 +31,4 @@ const LandingPageHowItWorks = ({isDesktop}) => {
3831
);
3932
}
4033

41-
const styles = {
42-
titleText: {
43-
fontWeight: 'bold',
44-
fontSize: '36px',
45-
textAlign: 'center',
46-
},
47-
subTitleText: {
48-
fontSize: '28px',
49-
textAlign: 'center',
50-
fontWeight: '300'
51-
}
52-
};
53-
5434
export default LandingPageHowItWorks;

src/screens/landing-page/sections/principles/LandingPagePrinciples.js

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,17 @@ import LandingPagePrinciplesDesktop from "./views/LandingPagePrinciplesDesktop";
44
import LandingPagePrinciplesMobile from "./views/LandingPagePrinciplesMobile";
55
import globalStyles from "../../../../styles/styles";
66
import VStack from "../../../../components/VStack";
7-
import HStack from "../../../../components/HStack";
8-
import {Typography} from "@mui/material";
7+
import LandingPageSectionTitle from "../../components/LandingPageSectionTitle";
98

109
const LandingPagePrinciples = ({isDesktop}) => {
1110
return (
1211
<LandingPageSectionWrapper backgroundColor={globalStyles.primaryColor} isDesktop={isDesktop}>
1312
<VStack gap={5}>
14-
<HStack justifyContent={'center'} sx={{width: '100%'}}>
15-
<Typography sx={styles.titleText}>
16-
Our Principles
17-
</Typography>
18-
</HStack>
13+
<LandingPageSectionTitle title={'Our principles'}/>
1914
{isDesktop ? <LandingPagePrinciplesDesktop/> : <LandingPagePrinciplesMobile/>}
2015
</VStack>
2116
</LandingPageSectionWrapper>
2217
);
2318
}
2419

25-
const styles = {
26-
titleText: {
27-
fontWeight: 'bold',
28-
fontSize: '36px',
29-
textAlign: 'center',
30-
}
31-
};
32-
3320
export default LandingPagePrinciples;
Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,19 @@
11
import React from "react";
22
import VStack from "../../../../components/VStack";
3-
import {Typography} from "@mui/material";
4-
import HStack from "../../../../components/HStack";
53
import LandingPageSectionWrapper from "../../components/LandingPageSectionWrapper";
64
import LandingPageTeamDesktop from "./views/LandingPageTeamDesktop";
75
import LandingPageTeamMobile from "./views/LandingPageTeamMobile";
6+
import LandingPageSectionTitle from "../../components/LandingPageSectionTitle";
87

98
const LandingPageTeam = ({isDesktop}) => {
109
return (
1110
<LandingPageSectionWrapper isDesktop={isDesktop}>
1211
<VStack gap={5}>
13-
<HStack justifyContent={'center'} sx={{width: '100%'}}>
14-
<Typography sx={styles.titleText}>
15-
Let's connect!
16-
</Typography>
17-
</HStack>
12+
<LandingPageSectionTitle title={'Let\'s connect'}/>
1813
{isDesktop ? <LandingPageTeamDesktop/> : <LandingPageTeamMobile/>}
1914
</VStack>
2015
</LandingPageSectionWrapper>
2116
);
2217
}
2318

24-
const styles = {
25-
titleText: {
26-
fontWeight: 'bold',
27-
fontSize: '36px',
28-
textAlign: 'center',
29-
}
30-
};
31-
3219
export default LandingPageTeam;

0 commit comments

Comments
 (0)