forked from technojam/technojam-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sds
150 lines (136 loc) · 5.34 KB
/
sds
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
import React, { Component, useState } from 'react';
//material ui component
import { Grid, Typography, Hidden } from "@material-ui/core";
import Button from "@material-ui/core/Button";
import Container from '@material-ui/core/Container';
import '../style.css';
import { Color } from '../color';
import "../style.css";
const style = {
overFlow: "hidden",
marginTop: "60px",
marginBottom: "-30px",
square: {
border: "4px solid #ff0000c9",
padding: "20px",
borderRadius: "15px",
marginTop: "87px",
minWidth: "500px",
marginLeft:"30px"
},
square1: {
border: "2px solid red",
minWidth:"285px",
marginTop:"57px"
},
back: {
width: "100%",
height: "100%",
backgroundSize: "cover",
backgroundPositionX: "0%",
},
button: {
color: "white",
backgroundColor: "#ff3b01f5",
padding: '10px 23px',
borderRadius: '8px',
fontSize: '14px',
fontWeight: '600'
},
};
/* FIXME: When the target will be decided, remove the rel attribute.
* It has been added here for security reasons.
* Reference: https://mathiasbynens.github.io/rel-noopener/
*/
const Homepage = () => {
const [content] = useState([
{
content: "Technology makes it doable for individuals to achieve management over everything, except over technology. Technology is such a lot of fun, however, the likelihood of drowning in it's high. Our goal is to assist, nurture future developers and leaders and build a pool of extremely good school personnel, that is quickly employable by the business and facilitate spur innovation. We help students perceive up-to-date engineering. Explore completely different areas of interest. Produce social connections wherever students with numerous technology experience come together and share knowledge.",
title: "About us",
cta: "./events",
buttonname: "Know more",
backgroundImageUrl: "https://tj-static.s3.ap-south-1.amazonaws.com/110-01+(1)+(1).jpg",
backgroundImageUrlM: "https://tj-static.s3.ap-south-1.amazonaws.com/mobile-100-01+(1).jpg"
}
]);
return (
<div style={style} >
<Container maxWidth='xl'>
{content.map(item => (
<div>
<Hidden smDown>
<div
style={{
...style.back,
backgroundImage: `url(${item.backgroundImageUrl})`
}}
key={item.title}>
<Grid container xs={6} sm={3} md={3}>
<div style={style.square}>
<div className='home_grid'>
<Typography variant='h3' className='letter_spacing' style={{ color: "#000000cf", fontWeight: "900", fontSize: "36px" }}>
{item.title}
</Typography><br/>
<Typography
variant='body2'
className='home_grid_typo'
style={{
fontSize: '19px',
color: '#000000bf',
fontWeight: '500',
lineHeight: 1.7
}}>
{item.content}
</Typography>
<br />
<Button variant='contained' style={style.button}>
{item.buttonname} <a src={item.cta} target='_blank' rel='noopener noreferrer' />
</Button>
</div>
</div>
</Grid>
</div>
</Hidden>
<Hidden mdUp>
<div style={{
...style.back,
backgroundImage: `url(${item.backgroundImageUrlM})`
}}>
<Grid container xs={6} sm={3} md={3}>
<div style={style.square1}>
<div className='home_grid letter_spacing'>
<Typography
variant='h3'
style={{
color: 'black',
fontSize: '28px',
lineHeight:"2"
}}>
{item.title}
</Typography>
<Typography
variant='body2'
className='home_grid_typo'
style={{
fontSize: '16px',
color: 'black',
lineHeight:"1.6"
}}>
{item.content}
</Typography>
<Button variant='contained' style={style.button}>
{item.buttonname} <a href={item.cta} target='_blank' />
</Button>
</div>
</div>
</Grid>
</div>
</Hidden>
</div>
))
}
</Container>
</div >
);
};
export default Homepage;