From c40a0721bde0b4f1c5e0b2f82ceb6ebc0c4e55d7 Mon Sep 17 00:00:00 2001
From: JessieTMossa <76855680+JessieTMossa@users.noreply.github.com>
Date: Thu, 3 Jun 2021 18:43:57 -0500
Subject: [PATCH 01/21] Update App.css
---
src/App.css | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/App.css b/src/App.css
index c5c6e8a..31eaf38 100644
--- a/src/App.css
+++ b/src/App.css
@@ -1,8 +1,10 @@
-.App {
+.App {
+/* aligns all text centered */
text-align: center;
}
.App-logo {
+
animation: App-logo-spin infinite 20s linear;
height: 80px;
}
From f2b6ecff17b94a602a2f116ed3b44034046829ac Mon Sep 17 00:00:00 2001
From: JessieTMossa <76855680+JessieTMossa@users.noreply.github.com>
Date: Thu, 3 Jun 2021 18:51:47 -0500
Subject: [PATCH 02/21] Update App.css
---
src/App.css | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/App.css b/src/App.css
index 31eaf38..1be3e05 100644
--- a/src/App.css
+++ b/src/App.css
@@ -4,27 +4,35 @@
}
.App-logo {
-
+/* logo animation 20 second spin loop */
animation: App-logo-spin infinite 20s linear;
+/* logo height of 80px */
height: 80px;
}
.App-header {
+/* header background color */
background-color: #222;
+/* header height */
height: 150px;
+/* header padding (space between border and element */
padding: 20px;
+/* header text color */
color: white;
}
.App-title {
+/* title font size */
font-size: 1.5em;
}
.App-intro {
+/* intro font size */
font-size: large;
}
@keyframes App-logo-spin {
+/* logo animation spin start & end */
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
From 9898f923b6a1630d44d80fa783431005f3444842 Mon Sep 17 00:00:00 2001
From: JessieTMossa <76855680+JessieTMossa@users.noreply.github.com>
Date: Thu, 3 Jun 2021 19:22:04 -0500
Subject: [PATCH 03/21] Update index.js
---
src/index.js | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/index.js b/src/index.js
index 726c418..8bafe60 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,9 +1,17 @@
-import React from 'react';
+// file used to render app component
+// import react so we can use methods in this file
+import React from 'react';
+// import react-dom, another package we installed, the virtual DOM, important so we can refresh individual elements
import ReactDOM from 'react-dom';
+// import index.css from src file
import './index.css';
+// import App.js from src file
import App from './App';
+// import registerServiceWorker from src file, created during the "npx react-create-app _______" process
+// for functionality during loss of connectivity
import registerServiceWorker from './registerServiceWorker';
-
+// virtual DOM renders the App, root is index.html in public folder
ReactDOM.render(, document.getElementById('root'));
+// calls registerServiceWorker function
registerServiceWorker();
From f9ab65fa9d556b7841c8d6b7d37d69132fa3b1a4 Mon Sep 17 00:00:00 2001
From: JessieTMossa <76855680+JessieTMossa@users.noreply.github.com>
Date: Thu, 3 Jun 2021 19:32:39 -0500
Subject: [PATCH 04/21] Update App.js
---
src/App.js | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/App.js b/src/App.js
index 6472345..b51c6af 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,13 +1,21 @@
+// import react for this project
import React, { Component } from 'react';
+// import app.css file from components folder on line 2
import './App.css';
+// import Header file from components folder on line 2
import Header from './Header';
+// import SectionMain file from components folder on line 2
import SectionMain from './SectionMain';
+// import Aside file from components folder on line 2
import Aside from './Aside';
+// import Footer file from components folder on line 2
import Footer from './Footer';
+// create class-based component
class App extends Component {
-
+// render method
render() {
+// return rendered HTML of the individual sections
return (
@@ -18,5 +26,5 @@ class App extends Component {
);
}
}
-
+// export App so it can be accessed in index.js
export default App;
From e8b68fecd4aaf17bbf20116e32285142b28dbe6a Mon Sep 17 00:00:00 2001
From: JessieTMossa <76855680+JessieTMossa@users.noreply.github.com>
Date: Thu, 3 Jun 2021 20:01:33 -0500
Subject: [PATCH 05/21] Update Header.css
---
src/Header.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/Header.css b/src/Header.css
index 68f29e2..54b8d36 100644
--- a/src/Header.css
+++ b/src/Header.css
@@ -1,3 +1,4 @@
+/* create Header-main class, set header height to 300px */
.Header-main{
height: 300px;
}
From 77b141c04a1bd6d535655209d6cedb7ba6684d93 Mon Sep 17 00:00:00 2001
From: JessieTMossa <76855680+JessieTMossa@users.noreply.github.com>
Date: Thu, 3 Jun 2021 20:06:23 -0500
Subject: [PATCH 06/21] Update Header.js
---
src/Header.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/Header.js b/src/Header.js
index 5c9495c..1a5774d 100644
--- a/src/Header.js
+++ b/src/Header.js
@@ -1,9 +1,14 @@
+// import react and component for use in this file
import React, { Component } from 'react';
+// import Header.css file
import './Header.css';
+// establish class-based component for Header element
class Header extends Component {
+// render style variable and return header with styling
render() {
const style = {
+// grab styling from App.js (defined in return)
width: this.props.width,
backgroundColor: this.props.backColor
}
@@ -15,6 +20,7 @@ class Header extends Component {
}
}
+// export Header component
export default Header;
From f039966f4d0062647c2f7bf6faae1ebe7975fe8c Mon Sep 17 00:00:00 2001
From: JessieTMossa <76855680+JessieTMossa@users.noreply.github.com>
Date: Thu, 3 Jun 2021 20:38:46 -0500
Subject: [PATCH 07/21] Update Aside.css
---
src/Aside.css | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/Aside.css b/src/Aside.css
index d15566c..cd46f89 100644
--- a/src/Aside.css
+++ b/src/Aside.css
@@ -1,4 +1,6 @@
+/* declare class for aside section */
.Aside{
+/* */
height: 300px;
width: 20%;
background: lightgreen;
From ec2efd45a050ebb73b3c62c8c292397261a05eb3 Mon Sep 17 00:00:00 2001
From: JessieTMossa <76855680+JessieTMossa@users.noreply.github.com>
Date: Mon, 7 Jun 2021 18:36:13 -0500
Subject: [PATCH 08/21] Update App.css
---
src/App.css | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/App.css b/src/App.css
index 1be3e05..9dafc0c 100644
--- a/src/App.css
+++ b/src/App.css
@@ -1,8 +1,10 @@
+/* create class "App" */
.App {
/* aligns all text centered */
text-align: center;
}
+/* create class "App-logo */
.App-logo {
/* logo animation 20 second spin loop */
animation: App-logo-spin infinite 20s linear;
@@ -10,6 +12,7 @@
height: 80px;
}
+/* create class "App-header */
.App-header {
/* header background color */
background-color: #222;
@@ -21,11 +24,13 @@
color: white;
}
+/* create class "App-title */
.App-title {
/* title font size */
font-size: 1.5em;
}
+/* create class "App-intro */
.App-intro {
/* intro font size */
font-size: large;
From 3a21f0e37ce35a1eda720175b8c066692a52db04 Mon Sep 17 00:00:00 2001
From: JessieTMossa <76855680+JessieTMossa@users.noreply.github.com>
Date: Mon, 7 Jun 2021 18:39:31 -0500
Subject: [PATCH 09/21] Update index.html
---
public/index.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/public/index.html b/public/index.html
index cd92541..3594f87 100644
--- a/public/index.html
+++ b/public/index.html
@@ -26,6 +26,7 @@
+