Skip to content

Commit 5112457

Browse files
committed
seven functions added
1 parent 2e003b8 commit 5112457

2 files changed

Lines changed: 86 additions & 1 deletion

File tree

src/App.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,36 @@
2222
from { transform: rotate(0deg); }
2323
to { transform: rotate(360deg); }
2424
}
25+
26+
.foot {
27+
position: absolute;
28+
right: 0;
29+
bottom: 0;
30+
left: 0;
31+
background-color: lightgrey;
32+
padding: 1em;
33+
}
34+
35+
.zac {
36+
position: relative;
37+
background-color: lightgrey;
38+
padding: 1em;
39+
}
40+
41+
.sidebarleft {
42+
position: absolute;
43+
top: 215px;
44+
left: 0;
45+
bottom: 0;
46+
background-color: powderblue;
47+
padding: 1em;
48+
}
49+
50+
.sidebarright {
51+
position: absolute;
52+
top: 215px;
53+
right: 0;
54+
bottom: 0;
55+
background-color: powderblue;
56+
padding: 1em;
57+
}

src/App.js

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,71 @@ import React from "react";
22
import logo from "./logo.svg";
33
import "./App.css";
44

5+
function Marquee() {
6+
return (
7+
<marquee> Welcome back Mr Messnier</marquee>
8+
);
9+
}
10+
11+
function AddH3() {
12+
return (
13+
<h3> Enjoy your stay </h3>
14+
);
15+
}
16+
17+
function AddH4() {
18+
return (
19+
<h4> Learn something when you are here <br />
20+
Ivo will be disappointed if you do not </h4>
21+
);
22+
}
23+
24+
function AddFooter() {
25+
return (
26+
<footer className="foot"> This site was made by someone at ACA then
27+
editied by Scott Foster </footer>
28+
);
29+
}
30+
31+
function ZacMarquee() {
32+
return (
33+
<marquee className="zac"> Glad you are back Zac </marquee>
34+
);
35+
}
36+
37+
function SidebarLeft() {
38+
return (
39+
<h6 className="sidebarleft"> This is a sidebar </h6>
40+
);
41+
}
42+
43+
function SidebarRight() {
44+
return (
45+
<h6 className="sidebarright"> This is a sidebar </h6>
46+
);
47+
}
48+
549
function App() {
650
return (
751

852
<div className="App">
953
<div className="App-header">
1054
<img src={logo} className="App-logo" alt="logo" />
1155
<h2>Welcome to React</h2>
12-
<marquee> Welcome back Mr Messnier</marquee>
56+
<Marquee />
1357
</div>
58+
<ZacMarquee />
59+
<AddH3 />
60+
<AddH4 />
1461
<p className="App-intro">
1562
To get started, edit <code>src/App.js</code> and save to reload.
1663
</p>
64+
<SidebarLeft />
65+
<SidebarRight />
66+
<AddFooter />
1767
</div>
68+
69+
1870
);
1971
}
2072

0 commit comments

Comments
 (0)