-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.jsx
More file actions
194 lines (142 loc) · 4.73 KB
/
Copy pathApp.jsx
File metadata and controls
194 lines (142 loc) · 4.73 KB
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
import React from 'react';
import {render} from 'react-dom';
class App extends React.Component {
render() {
return (
<div>
<Header />
<Budi />
<Info />
<Slide />
<Footer />
</div>
);
}
}
class Header extends React.Component {
render() {
var headDiv = {
position: 'absolute',
overflow: 'hidden',
width:'70em',
height:'400px',
borderRadius: '10px',
boxShadow: '0 2px 30px rgba(black, .2)',
backgroundColor: 'rgba(158, 203, 255, 0.5)',
jusitfyContent: 'center',
alignItems: 'center',
display: 'flex',
top:'20px',
left: '50%',
transform: 'translateX(-50%)'
}
var title = {
position: 'absolute',
textAlign: 'center',
color: 'black',
fontFamily: "'Playfair Display', serif",
textShadow: '0 1px 0 rgba(black, .1)',
textIndent: '.3em',
letterSpacing: '.4em',
textTransform: 'uppercase',
width: '100%',
fontSize: '4em'
}
return (
<div className="cl" style={headDiv}>
<div style={title}>Welcome to Buddi</div>
</div>
);
}
}
class Budi extends React.Component {
render(){
var div2 = {
position: 'absolute',
overflow: 'hidden',
width:'35em',
height:'300px',
borderRadius: '10px',
boxShadow: '0 2px 30px rgba(black, .2)',
backgroundColor: 'rgba(237, 123, 225, 0.5)',
jusitfyContent: 'center',
alignItems: 'center',
display: 'flex',
left: '50%',
transform: 'translate(0%, 420px)'
}
return (
<div style={div2}><h2>Dancing Buddi</h2>
<img src="http://orig11.deviantart.net/306c/f/2012/358/f/6/dancing_panda_by_bianca5-d5p1gcb.gif" alt="Buddi"></img>
</div>
);
}
}
class Info extends React.Component {
render(){
var div3 = {
position: 'absolute',
overflow: 'hidden',
width:'35em',
height:'300px',
borderRadius: '10px',
boxShadow: '0 2px 30px rgba(black, .2)',
backgroundColor: 'rgba(158, 203, 255, 0.5)',
jusitfyContent: 'center',
alignItems: 'center',
display: 'flex',
right: '50%',
transform: 'translate(0%, 420px)'
}
return (
<div style ={div3}> Buddi has been working to develop a solution to combat isses regarding mental wellness. Over then next {3} months, Buddi has plans to change the industry. </div>
);
}
}
class Slide extends React.Component {
render() {
var div4 = {
position: 'absolute',
overflow: 'hidden',
width:'70em',
height:'300px',
borderRadius: '10px',
boxShadow: '0 2px 30px rgba(black, .2)',
backgroundColor: 'rgba(158, 203, 255, 0.5)',
jusitfyContent: 'center',
alignItems: 'center',
display: 'flex',
left: '50%',
transform: 'translate(-50%, 730px)'
}
return (
<div classname = "slideshow" style={div4}>
<h3>Slideshow</h3>
<p>Creating a slideshow has been difficult, as when the code breaks down, it is a little difficult to debug. But, through the creation of our page here, I understand how React works itself, from the ground up - how different components merge together as a whole.
</p>
</div>
);
}
}
class Footer extends React.Component {
render(){
var div5 = {
position: 'absolute',
overflow: 'hidden',
width:'70em',
height:'180px',
borderRadius: '10px',
boxShadow: '0 2px 30px rgba(black, .2)',
backgroundColor: 'rgba(158, 203, 255, 0.5)',
jusitfyContent: 'center',
alignItems: 'center',
display: 'flex',
left: '50%',
transform: 'translate(-50%, 1040px)'
}
return (
<div style={div5}>This would be the footer. Using arrays, it is possible to input all social media quickly - I am working towards that goal</div>
);
}
}
export default App;