From 23c50078fcc56935e49b571525798a0c0e71460f Mon Sep 17 00:00:00 2001
From: Michael McBride
Date: Sun, 30 Jul 2023 14:55:07 -0400
Subject: [PATCH 01/10] update discord nav link
---
src/components/Events.jsx | 7 +++++--
src/links.js | 9 ++++++---
src/test/__snapshots__/App.test.js.snap | 4 ++--
src/test/components/Footer.test.js | 15 +++++++++++----
src/test/components/Header.test.js | 15 +++++++++++----
.../components/__snapshots__/Footer.test.js.snap | 2 +-
.../components/__snapshots__/Header.test.js.snap | 2 +-
7 files changed, 37 insertions(+), 17 deletions(-)
diff --git a/src/components/Events.jsx b/src/components/Events.jsx
index f4ee7d5..4dd836d 100644
--- a/src/components/Events.jsx
+++ b/src/components/Events.jsx
@@ -23,10 +23,13 @@ function Events() {
Upcoming Events
The "Events" section is under development.
-
+
+
In the meantime, please visit
-
https://www.meetup.com/techlifecolumbus/events/
+
+ https://www.meetup.com/techlifecolumbus/events/
+
and look for FreeCodeCamp Columbus events there!
diff --git a/src/links.js b/src/links.js
index a5eeb68..b944bbf 100644
--- a/src/links.js
+++ b/src/links.js
@@ -2,8 +2,11 @@ export default [
{ href: '/', text: 'Home' },
{ href: '#about', text: 'About' },
{ href: 'https://www.freecodecamp.org/', text: 'FreeCodeCamp' },
- { href: 'https://discord.gg', text: 'Discord' },
+ { href: 'https://discord.gg/aF8skEe9nq', text: 'Discord' },
{ href: 'https://github.com/FCCColumbus', text: 'GitHub' },
{ href: '#events', text: 'Events' },
- { href: 'https://github.com/FCCColumbus/cbus-web/graphs/contributors', text: 'Contributors' },
-]
\ No newline at end of file
+ {
+ href: 'https://github.com/FCCColumbus/cbus-web/graphs/contributors',
+ text: 'Contributors',
+ },
+];
diff --git a/src/test/__snapshots__/App.test.js.snap b/src/test/__snapshots__/App.test.js.snap
index 5b7814d..4661778 100644
--- a/src/test/__snapshots__/App.test.js.snap
+++ b/src/test/__snapshots__/App.test.js.snap
@@ -34,7 +34,7 @@ exports[`App renders 1`] = `
Discord
@@ -318,7 +318,7 @@ exports[`App renders 1`] = `
Discord
diff --git a/src/test/components/Footer.test.js b/src/test/components/Footer.test.js
index d8da0c1..1d228cd 100644
--- a/src/test/components/Footer.test.js
+++ b/src/test/components/Footer.test.js
@@ -1,10 +1,17 @@
-import renderer from "react-test-renderer";
+import renderer from 'react-test-renderer';
-import Footer from "../../components/Footer";
+import Footer from '../../components/Footer';
+import { render, screen } from '@testing-library/react';
-describe("Footer", () => {
- it("renders", () => {
+describe('Footer', () => {
+ it('renders', () => {
const view = renderer.create();
expect(view).toMatchSnapshot();
});
+
+ it('displays "Discord" as the third item', () => {
+ render();
+ const thirdItem = screen.getByText('Discord');
+ expect(thirdItem).toBeInTheDocument();
+ });
});
diff --git a/src/test/components/Header.test.js b/src/test/components/Header.test.js
index 81353be..a9baca5 100644
--- a/src/test/components/Header.test.js
+++ b/src/test/components/Header.test.js
@@ -1,10 +1,17 @@
-import renderer from "react-test-renderer";
+import renderer from 'react-test-renderer';
-import Header from "../../components/Header";
+import Header from '../../components/Header';
+import { render, screen } from '@testing-library/react';
-describe("Header", () => {
- it("renders", () => {
+describe('Header', () => {
+ it('renders', () => {
const view = renderer.create();
expect(view).toMatchSnapshot();
});
+
+ it('displays "Discord" as the third item', () => {
+ render();
+ const thirdItem = screen.getByText('Discord');
+ expect(thirdItem).toBeInTheDocument();
+ });
});
diff --git a/src/test/components/__snapshots__/Footer.test.js.snap b/src/test/components/__snapshots__/Footer.test.js.snap
index 406731b..a31a3db 100644
--- a/src/test/components/__snapshots__/Footer.test.js.snap
+++ b/src/test/components/__snapshots__/Footer.test.js.snap
@@ -20,7 +20,7 @@ exports[`Footer renders 1`] = `
Discord
diff --git a/src/test/components/__snapshots__/Header.test.js.snap b/src/test/components/__snapshots__/Header.test.js.snap
index 9fdeda1..d003e3a 100644
--- a/src/test/components/__snapshots__/Header.test.js.snap
+++ b/src/test/components/__snapshots__/Header.test.js.snap
@@ -31,7 +31,7 @@ exports[`Header renders 1`] = `
Discord
From 6e2c628b07d2c154d46cf8309e63e7b149dd6e6d Mon Sep 17 00:00:00 2001
From: Michael McBride
Date: Sun, 30 Jul 2023 15:22:54 -0400
Subject: [PATCH 02/10] fix formatter changes
---
src/components/Events.jsx | 7 ++-----
src/links.js | 5 +----
src/test/components/Footer.test.js | 15 +++++++--------
src/test/components/Header.test.js | 15 +++++++--------
4 files changed, 17 insertions(+), 25 deletions(-)
diff --git a/src/components/Events.jsx b/src/components/Events.jsx
index 4dd836d..f4ee7d5 100644
--- a/src/components/Events.jsx
+++ b/src/components/Events.jsx
@@ -23,13 +23,10 @@ function Events() {
Upcoming Events
The "Events" section is under development.
-
-
+
In the meantime, please visit
-
- https://www.meetup.com/techlifecolumbus/events/
-
+
https://www.meetup.com/techlifecolumbus/events/
and look for FreeCodeCamp Columbus events there!
diff --git a/src/links.js b/src/links.js
index b944bbf..de5ed1c 100644
--- a/src/links.js
+++ b/src/links.js
@@ -5,8 +5,5 @@ export default [
{ href: 'https://discord.gg/aF8skEe9nq', text: 'Discord' },
{ href: 'https://github.com/FCCColumbus', text: 'GitHub' },
{ href: '#events', text: 'Events' },
- {
- href: 'https://github.com/FCCColumbus/cbus-web/graphs/contributors',
- text: 'Contributors',
- },
+ {href: 'https://github.com/FCCColumbus/cbus-web/graphs/contributors',text:'Contributors' },
];
diff --git a/src/test/components/Footer.test.js b/src/test/components/Footer.test.js
index 1d228cd..fd861ce 100644
--- a/src/test/components/Footer.test.js
+++ b/src/test/components/Footer.test.js
@@ -1,17 +1,16 @@
-import renderer from 'react-test-renderer';
+import renderer from "react-test-renderer";
+import Footer from "../../components/Footer";
+import { render, screen } from "@testing-library/react";
-import Footer from '../../components/Footer';
-import { render, screen } from '@testing-library/react';
-
-describe('Footer', () => {
- it('renders', () => {
+describe("Footer", () => {
+ it("renders", () => {
const view = renderer.create();
expect(view).toMatchSnapshot();
});
- it('displays "Discord" as the third item', () => {
+ it("displays 'Discord' as the third item", () => {
render();
- const thirdItem = screen.getByText('Discord');
+ const thirdItem = screen.getByText("Discord");
expect(thirdItem).toBeInTheDocument();
});
});
diff --git a/src/test/components/Header.test.js b/src/test/components/Header.test.js
index a9baca5..80eb7f6 100644
--- a/src/test/components/Header.test.js
+++ b/src/test/components/Header.test.js
@@ -1,17 +1,16 @@
-import renderer from 'react-test-renderer';
+import renderer from "react-test-renderer";
+import Header from "../../components/Header";
+import { render, screen } from "@testing-library/react";
-import Header from '../../components/Header';
-import { render, screen } from '@testing-library/react';
-
-describe('Header', () => {
- it('renders', () => {
+describe("Header", () => {
+ it("renders", () => {
const view = renderer.create();
expect(view).toMatchSnapshot();
});
- it('displays "Discord" as the third item', () => {
+ it("displays 'Discord' as the third item", () => {
render();
- const thirdItem = screen.getByText('Discord');
+ const thirdItem = screen.getByText("Discord");
expect(thirdItem).toBeInTheDocument();
});
});
From 06eae60df35c689b63233b57180ba5629fedbbdb Mon Sep 17 00:00:00 2001
From: Michael McBride
Date: Tue, 1 Aug 2023 10:08:21 -0400
Subject: [PATCH 03/10] add netlify logo to Footer
---
src/components/Footer.jsx | 1 +
src/index.css | 13 +++++++++++++
src/test/__snapshots__/App.test.js.snap | 14 ++++++++++++++
src/test/components/Footer.test.js | 15 ++++++++++++++-
.../components/__snapshots__/Footer.test.js.snap | 14 ++++++++++++++
5 files changed, 56 insertions(+), 1 deletion(-)
diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx
index 6aa24b1..7dead45 100644
--- a/src/components/Footer.jsx
+++ b/src/components/Footer.jsx
@@ -23,6 +23,7 @@ function Footer() {
Copyright Free Code Camp Columbus 2023 - {new Date().getFullYear()}
+
);
}
diff --git a/src/index.css b/src/index.css
index 7090888..145692f 100644
--- a/src/index.css
+++ b/src/index.css
@@ -213,6 +213,9 @@ th {
}
footer {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-around;
background-color: #97dad0;
padding: 1em 1em 2em 1em;
}
@@ -228,4 +231,14 @@ footer p {
footer p {
margin: 0;
+}
+
+footer .image-wrapper {
+display: inline-block;
+width: 90px;
+margin: 1rem auto 0;
+}
+
+footer img {
+ max-width: 100%;
}
\ No newline at end of file
diff --git a/src/test/__snapshots__/App.test.js.snap b/src/test/__snapshots__/App.test.js.snap
index 5b7814d..def09ab 100644
--- a/src/test/__snapshots__/App.test.js.snap
+++ b/src/test/__snapshots__/App.test.js.snap
@@ -350,6 +350,20 @@ exports[`App renders 1`] = `
Copyright Free Code Camp Columbus 2023 -
2023
+
+
+
+
+
`;
diff --git a/src/test/components/Footer.test.js b/src/test/components/Footer.test.js
index d8da0c1..4d7bc52 100644
--- a/src/test/components/Footer.test.js
+++ b/src/test/components/Footer.test.js
@@ -1,10 +1,23 @@
import renderer from "react-test-renderer";
-
import Footer from "../../components/Footer";
+import { render, screen } from "@testing-library/react";
describe("Footer", () => {
it("renders", () => {
const view = renderer.create();
expect(view).toMatchSnapshot();
});
+
+ it("contains anchor tag with image-wrapper class and correct href", () => {
+ render();
+ const anchorTag = screen.getByTestId("image-wrapper");
+ expect(anchorTag).toBeInTheDocument();
+ expect(anchorTag).toHaveAttribute("href", "https://www.netlify.com");
+ });
+
+ it("contains an image within the anchor tag", () => {
+ render();
+ const footerImage = screen.getByAltText(/Deploys by Netlify/i);
+ expect(footerImage).toBeInTheDocument();
+ });
});
diff --git a/src/test/components/__snapshots__/Footer.test.js.snap b/src/test/components/__snapshots__/Footer.test.js.snap
index 406731b..9a8d99a 100644
--- a/src/test/components/__snapshots__/Footer.test.js.snap
+++ b/src/test/components/__snapshots__/Footer.test.js.snap
@@ -52,5 +52,19 @@ exports[`Footer renders 1`] = `
Copyright Free Code Camp Columbus 2023 -
2023
+
+
+
+
+
`;
From d0a22b9e477850fabfcbd16b57424798a4688832 Mon Sep 17 00:00:00 2001
From: Michael McBride
Date: Wed, 2 Aug 2023 10:23:59 -0400
Subject: [PATCH 04/10] resolve required changes
---
src/links.js | 4 ++--
src/test/App.test.js | 2 +-
src/test/__snapshots__/App.test.js.snap | 4 ++--
src/test/components/Footer.test.js | 10 ++--------
src/test/components/Header.test.js | 10 ++--------
src/test/components/__snapshots__/Footer.test.js.snap | 2 +-
src/test/components/__snapshots__/Header.test.js.snap | 2 +-
7 files changed, 11 insertions(+), 23 deletions(-)
diff --git a/src/links.js b/src/links.js
index de5ed1c..d4696fe 100644
--- a/src/links.js
+++ b/src/links.js
@@ -2,8 +2,8 @@ export default [
{ href: '/', text: 'Home' },
{ href: '#about', text: 'About' },
{ href: 'https://www.freecodecamp.org/', text: 'FreeCodeCamp' },
- { href: 'https://discord.gg/aF8skEe9nq', text: 'Discord' },
+ { href: 'https://discord.com/invite/EXehPVnBYz', text: 'Discord' },
{ href: 'https://github.com/FCCColumbus', text: 'GitHub' },
{ href: '#events', text: 'Events' },
- {href: 'https://github.com/FCCColumbus/cbus-web/graphs/contributors',text:'Contributors' },
+ { href: 'https://github.com/FCCColumbus/cbus-web/graphs/contributors', text:'Contributors' },
];
diff --git a/src/test/App.test.js b/src/test/App.test.js
index d85f70b..3399587 100644
--- a/src/test/App.test.js
+++ b/src/test/App.test.js
@@ -12,7 +12,7 @@ describe("App", () => {
describe("renders links to external sites", () => {
it.each([
['freeCodeCamp.org homepage', 'freecodecamp.org'],
- ['Discord homepage', 'discord.gg'],
+ ['Discord homepage', 'discord.com/invite/EXehPVnBYz'],
['FCCColumbus Github profile', 'github.com/FCCColumbus'],
['FCCColumbus Github contributors', 'github.com/FCCColumbus/cbus-web/graphs/contributors'],
])(`%s`, (_, expected) => {
diff --git a/src/test/__snapshots__/App.test.js.snap b/src/test/__snapshots__/App.test.js.snap
index 4661778..1a691e2 100644
--- a/src/test/__snapshots__/App.test.js.snap
+++ b/src/test/__snapshots__/App.test.js.snap
@@ -34,7 +34,7 @@ exports[`App renders 1`] = `
Discord
@@ -318,7 +318,7 @@ exports[`App renders 1`] = `
Discord
diff --git a/src/test/components/Footer.test.js b/src/test/components/Footer.test.js
index fd861ce..3f55f1d 100644
--- a/src/test/components/Footer.test.js
+++ b/src/test/components/Footer.test.js
@@ -1,16 +1,10 @@
import renderer from "react-test-renderer";
+
import Footer from "../../components/Footer";
-import { render, screen } from "@testing-library/react";
describe("Footer", () => {
it("renders", () => {
const view = renderer.create();
expect(view).toMatchSnapshot();
});
-
- it("displays 'Discord' as the third item", () => {
- render();
- const thirdItem = screen.getByText("Discord");
- expect(thirdItem).toBeInTheDocument();
- });
-});
+});
\ No newline at end of file
diff --git a/src/test/components/Header.test.js b/src/test/components/Header.test.js
index 80eb7f6..2d08697 100644
--- a/src/test/components/Header.test.js
+++ b/src/test/components/Header.test.js
@@ -1,16 +1,10 @@
import renderer from "react-test-renderer";
+
import Header from "../../components/Header";
-import { render, screen } from "@testing-library/react";
describe("Header", () => {
it("renders", () => {
const view = renderer.create();
expect(view).toMatchSnapshot();
});
-
- it("displays 'Discord' as the third item", () => {
- render();
- const thirdItem = screen.getByText("Discord");
- expect(thirdItem).toBeInTheDocument();
- });
-});
+});
\ No newline at end of file
diff --git a/src/test/components/__snapshots__/Footer.test.js.snap b/src/test/components/__snapshots__/Footer.test.js.snap
index a31a3db..d144a1f 100644
--- a/src/test/components/__snapshots__/Footer.test.js.snap
+++ b/src/test/components/__snapshots__/Footer.test.js.snap
@@ -20,7 +20,7 @@ exports[`Footer renders 1`] = `
Discord
diff --git a/src/test/components/__snapshots__/Header.test.js.snap b/src/test/components/__snapshots__/Header.test.js.snap
index d003e3a..e1172ea 100644
--- a/src/test/components/__snapshots__/Header.test.js.snap
+++ b/src/test/components/__snapshots__/Header.test.js.snap
@@ -31,7 +31,7 @@ exports[`Header renders 1`] = `
Discord
From 16dce3745832c6ea42448ce4b757afe3541c7693 Mon Sep 17 00:00:00 2001
From: Michael McBride
Date: Wed, 2 Aug 2023 11:38:48 -0400
Subject: [PATCH 05/10] fix typo in links.js
---
src/links.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/links.js b/src/links.js
index d4696fe..a807cd2 100644
--- a/src/links.js
+++ b/src/links.js
@@ -5,5 +5,5 @@ export default [
{ href: 'https://discord.com/invite/EXehPVnBYz', text: 'Discord' },
{ href: 'https://github.com/FCCColumbus', text: 'GitHub' },
{ href: '#events', text: 'Events' },
- { href: 'https://github.com/FCCColumbus/cbus-web/graphs/contributors', text:'Contributors' },
+ { href: 'https://github.com/FCCColumbus/cbus-web/graphs/contributors', text: 'Contributors' },
];
From 4115ddedd56a3c24de9f86d03d5b8e8adec89e2b Mon Sep 17 00:00:00 2001
From: Michael McBride
Date: Wed, 2 Aug 2023 12:54:45 -0400
Subject: [PATCH 06/10] add netlify logo + link
---
src/components/Footer.jsx | 2 +-
src/index.css | 16 ++++++++--------
src/test/components/Footer.test.js | 15 +--------------
3 files changed, 10 insertions(+), 23 deletions(-)
diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx
index 7dead45..5c0548e 100644
--- a/src/components/Footer.jsx
+++ b/src/components/Footer.jsx
@@ -23,7 +23,7 @@ function Footer() {
Copyright Free Code Camp Columbus 2023 - {new Date().getFullYear()}
-
+
);
}
diff --git a/src/index.css b/src/index.css
index 145692f..1eaf527 100644
--- a/src/index.css
+++ b/src/index.css
@@ -234,11 +234,11 @@ footer p {
}
footer .image-wrapper {
-display: inline-block;
-width: 90px;
-margin: 1rem auto 0;
-}
-
-footer img {
- max-width: 100%;
-}
\ No newline at end of file
+ display: inline-block;
+ width: 90px;
+ margin: 1rem auto 0;
+ }
+
+ footer img {
+ max-width: 100%;
+ }
\ No newline at end of file
diff --git a/src/test/components/Footer.test.js b/src/test/components/Footer.test.js
index 4d7bc52..d8da0c1 100644
--- a/src/test/components/Footer.test.js
+++ b/src/test/components/Footer.test.js
@@ -1,23 +1,10 @@
import renderer from "react-test-renderer";
+
import Footer from "../../components/Footer";
-import { render, screen } from "@testing-library/react";
describe("Footer", () => {
it("renders", () => {
const view = renderer.create();
expect(view).toMatchSnapshot();
});
-
- it("contains anchor tag with image-wrapper class and correct href", () => {
- render();
- const anchorTag = screen.getByTestId("image-wrapper");
- expect(anchorTag).toBeInTheDocument();
- expect(anchorTag).toHaveAttribute("href", "https://www.netlify.com");
- });
-
- it("contains an image within the anchor tag", () => {
- render();
- const footerImage = screen.getByAltText(/Deploys by Netlify/i);
- expect(footerImage).toBeInTheDocument();
- });
});
From 51453b42918cc6c25646d200868598323994ff80 Mon Sep 17 00:00:00 2001
From: Michael McBride
Date: Wed, 2 Aug 2023 18:26:17 -0400
Subject: [PATCH 07/10] fix index.css indentation & failing footer test
---
src/index.css | 8 ++++----
src/test/__snapshots__/App.test.js.snap | 1 -
src/test/components/__snapshots__/Footer.test.js.snap | 1 -
3 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/index.css b/src/index.css
index 1eaf527..f27297e 100644
--- a/src/index.css
+++ b/src/index.css
@@ -237,8 +237,8 @@ footer .image-wrapper {
display: inline-block;
width: 90px;
margin: 1rem auto 0;
- }
+}
- footer img {
- max-width: 100%;
- }
\ No newline at end of file
+footer img {
+ max-width: 100%;
+}
\ No newline at end of file
diff --git a/src/test/__snapshots__/App.test.js.snap b/src/test/__snapshots__/App.test.js.snap
index def09ab..b66012f 100644
--- a/src/test/__snapshots__/App.test.js.snap
+++ b/src/test/__snapshots__/App.test.js.snap
@@ -352,7 +352,6 @@ exports[`App renders 1`] = `
Date: Thu, 3 Aug 2023 13:14:00 -0400
Subject: [PATCH 08/10] update admin section
---
src/components/Members.jsx | 11 ++-
src/index.css | 10 ++-
src/test/__snapshots__/App.test.js.snap | 79 ++++++++++++++++---
.../__snapshots__/Members.test.js.snap | 79 ++++++++++++++++---
4 files changed, 157 insertions(+), 22 deletions(-)
diff --git a/src/components/Members.jsx b/src/components/Members.jsx
index 05c80d2..db199c5 100644
--- a/src/components/Members.jsx
+++ b/src/components/Members.jsx
@@ -1,8 +1,12 @@
function Members() {
const admin = [
- { name: 'John', imgUrl: '/head.png' },
- { name: 'Amy', imgUrl: '/head.png' },
- { name: 'Kevin', imgUrl: '/head.png' },
+ { name: 'John Riley', title: 'Admin & Coding Mentor', imgUrl: 'https://avatars.githubusercontent.com/u/41979303?v=4' },
+ { name: 'Kent Utterback', title: 'Admin Emeritus & Coding Mentor', imgUrl: 'https://avatars.githubusercontent.com/u/17324971?v=4' },
+ { name: 'Amy Bedinghaus', title: 'Admin Emeritus', imgUrl: 'https://avatars.githubusercontent.com/u/28076677?v=4' },
+ { name: 'Austin Truss', title: 'Admin Emeritus', imgUrl: 'https://media.licdn.com/dms/image/C5603AQGQpynBhWiZLA/profile-displayphoto-shrink_200_200/0/1517355585710?e=1696464000&v=beta&t=DrPEzm5U1we4G7qUPoFrAA5gw_MHSN3dU8_02iWZYRA' },
+ { name: 'Kevin Bruland', title: 'Admin Emeritus', imgUrl: 'https://avatars.githubusercontent.com/u/17850505?v=4' },
+ { name: 'Sarah Lilly-Bruland', title: 'Admin Emeritus', imgUrl: 'https://avatars.githubusercontent.com/u/17872422?v=4' },
+ { name: 'Justin Woodward', title: 'Admin Emeritus', imgUrl: 'https://avatars.githubusercontent.com/u/17994108?v=4' },
]
const members = [
{ name: 'John', imgUrl: '/head.png' },
@@ -21,6 +25,7 @@ function Members() {
{member.name}
+
{member.title}
)}
diff --git a/src/index.css b/src/index.css
index f27297e..c28d098 100644
--- a/src/index.css
+++ b/src/index.css
@@ -201,7 +201,7 @@ th {
.member {
height: 140px;
width: 140px;
- padding: .75em;
+ /* padding: .75em; */
border: 1px solid #707070;
background-color: #f5b742;
}
@@ -212,6 +212,14 @@ th {
border-radius: 50%;
}
+.members h4 {
+ margin: 5px 0 5px 0;
+}
+
+.members h5 {
+ margin-top: 15px;
+}
+
footer {
display: flex;
flex-direction: column;
diff --git a/src/test/__snapshots__/App.test.js.snap b/src/test/__snapshots__/App.test.js.snap
index 20cba04..6f01188 100644
--- a/src/test/__snapshots__/App.test.js.snap
+++ b/src/test/__snapshots__/App.test.js.snap
@@ -197,33 +197,94 @@ exports[`App renders 1`] = `
>
- John
+ John Riley
+
+ Admin & Coding Mentor
+
- Amy
+ Kent Utterback
+
+ Admin Emeritus & Coding Mentor
+
+
+ Amy Bedinghaus
+
+
+ Admin Emeritus
+
+
+
+
+
+ Austin Truss
+
+
+ Admin Emeritus
+
+
+
+
+
+ Kevin Bruland
+
+
+ Admin Emeritus
+
+
+
+
+
+ Sarah Lilly-Bruland
+
+
+ Admin Emeritus
+
+
+
+
- Kevin
+ Justin Woodward
+
+ Admin Emeritus
+
diff --git a/src/test/components/__snapshots__/Members.test.js.snap b/src/test/components/__snapshots__/Members.test.js.snap
index d3d6a99..4c4ca2e 100644
--- a/src/test/components/__snapshots__/Members.test.js.snap
+++ b/src/test/components/__snapshots__/Members.test.js.snap
@@ -13,33 +13,94 @@ exports[`Members renders 1`] = `
>
- John
+ John Riley
+
+ Admin & Coding Mentor
+
- Amy
+ Kent Utterback
+
+ Admin Emeritus & Coding Mentor
+
+
+ Amy Bedinghaus
+
+
+ Admin Emeritus
+
+
+
+
+
+ Austin Truss
+
+
+ Admin Emeritus
+
+
+
+
+
+ Kevin Bruland
+
+
+ Admin Emeritus
+
+
+
+
+
+ Sarah Lilly-Bruland
+
+
+ Admin Emeritus
+
+
+
+
- Kevin
+ Justin Woodward
+
+ Admin Emeritus
+
From 80177bd83631a26613fbab93ccecd9f264169948 Mon Sep 17 00:00:00 2001
From: Michael McBride
Date: Fri, 4 Aug 2023 12:14:04 -0400
Subject: [PATCH 09/10] update-admin-css
---
src/components/Members.jsx | 24 ++---
src/index.css | 14 +--
src/test/__snapshots__/App.test.js.snap | 89 ++++++++++++-------
.../__snapshots__/Members.test.js.snap | 89 ++++++++++++-------
4 files changed, 130 insertions(+), 86 deletions(-)
diff --git a/src/components/Members.jsx b/src/components/Members.jsx
index db199c5..0e6bec5 100644
--- a/src/components/Members.jsx
+++ b/src/components/Members.jsx
@@ -1,12 +1,12 @@
function Members() {
const admin = [
- { name: 'John Riley', title: 'Admin & Coding Mentor', imgUrl: 'https://avatars.githubusercontent.com/u/41979303?v=4' },
- { name: 'Kent Utterback', title: 'Admin Emeritus & Coding Mentor', imgUrl: 'https://avatars.githubusercontent.com/u/17324971?v=4' },
- { name: 'Amy Bedinghaus', title: 'Admin Emeritus', imgUrl: 'https://avatars.githubusercontent.com/u/28076677?v=4' },
- { name: 'Austin Truss', title: 'Admin Emeritus', imgUrl: 'https://media.licdn.com/dms/image/C5603AQGQpynBhWiZLA/profile-displayphoto-shrink_200_200/0/1517355585710?e=1696464000&v=beta&t=DrPEzm5U1we4G7qUPoFrAA5gw_MHSN3dU8_02iWZYRA' },
- { name: 'Kevin Bruland', title: 'Admin Emeritus', imgUrl: 'https://avatars.githubusercontent.com/u/17850505?v=4' },
- { name: 'Sarah Lilly-Bruland', title: 'Admin Emeritus', imgUrl: 'https://avatars.githubusercontent.com/u/17872422?v=4' },
- { name: 'Justin Woodward', title: 'Admin Emeritus', imgUrl: 'https://avatars.githubusercontent.com/u/17994108?v=4' },
+ { id: 0, firstName: 'John', lastName: 'Riley', title: 'Admin & Coding Mentor', imgUrl: 'https://avatars.githubusercontent.com/u/41979303?v=4' },
+ { id: 1, firstName: 'Kent', lastName: 'Utterback', title: 'Admin Emeritus & Coding Mentor', imgUrl: 'https://avatars.githubusercontent.com/u/17324971?v=4' },
+ { id: 2, firstName: 'Amy', lastName: 'Bedinghaus', title: 'Admin Emeritus', imgUrl: 'https://avatars.githubusercontent.com/u/28076677?v=4' },
+ { id: 3, firstName: 'Austin', lastName: 'Truss', title: 'Admin Emeritus', imgUrl: 'https://media.licdn.com/dms/image/C5603AQGQpynBhWiZLA/profile-displayphoto-shrink_200_200/0/1517355585710?e=1696464000&v=beta&t=DrPEzm5U1we4G7qUPoFrAA5gw_MHSN3dU8_02iWZYRA' },
+ { id: 4, firstName: 'Kevin', lastName: 'Bruland', title: 'Admin Emeritus', imgUrl: 'https://avatars.githubusercontent.com/u/17850505?v=4' },
+ { id: 5, firstName: 'Sarah', lastName: 'Lilly-Bruland', title: 'Admin Emeritus', imgUrl: 'https://avatars.githubusercontent.com/u/17872422?v=4' },
+ { id: 6, firstName: 'Justin', lastName: 'Woodward', title: 'Admin Emeritus', imgUrl: 'https://avatars.githubusercontent.com/u/17994108?v=4' },
]
const members = [
{ name: 'John', imgUrl: '/head.png' },
@@ -22,20 +22,20 @@ function Members() {
Meet the Admins
{admin.map((member) =>
-
-
-
{member.name}
+
+
{member.firstName}
{member.lastName}
+
{member.title}
)}
-
+
Meet the Contributors
{members.map((member) =>
-
+
{member.name}
)}
diff --git a/src/index.css b/src/index.css
index c28d098..50f9b79 100644
--- a/src/index.css
+++ b/src/index.css
@@ -197,16 +197,18 @@ th {
justify-content: space-evenly;
}
-.admin,
-.member {
- height: 140px;
- width: 140px;
- /* padding: .75em; */
+.member-avatar,
+.admin-avatar {
border: 1px solid #707070;
background-color: #f5b742;
}
-.member {
+.admin-avatar {
+ height: 140px;
+ width: 140px;
+}
+
+.member-avatar {
height: 100px;
width: 100px;
border-radius: 50%;
diff --git a/src/test/__snapshots__/App.test.js.snap b/src/test/__snapshots__/App.test.js.snap
index 6f01188..5a452ce 100644
--- a/src/test/__snapshots__/App.test.js.snap
+++ b/src/test/__snapshots__/App.test.js.snap
@@ -196,92 +196,113 @@ exports[`App renders 1`] = `
className="row"
>
+
+ John
+
+
+ Riley
+
-
- John Riley
-
Admin & Coding Mentor
+
+ Kent
+
+
+ Utterback
+
-
- Kent Utterback
-
Admin Emeritus & Coding Mentor
+
+ Amy
+
+
+ Bedinghaus
+
-
- Amy Bedinghaus
-
Admin Emeritus
+
+ Austin
+
+
+ Truss
+
-
- Austin Truss
-
Admin Emeritus
+
+ Kevin
+
+
+ Bruland
+
-
- Kevin Bruland
-
Admin Emeritus
+
+ Sarah
+
+
+ Lilly-Bruland
+
-
- Sarah Lilly-Bruland
-
Admin Emeritus
+
+ Justin
+
+
+ Woodward
+
-
- Justin Woodward
-
Admin Emeritus
@@ -300,7 +321,7 @@ exports[`App renders 1`] = `
@@ -310,7 +331,7 @@ exports[`App renders 1`] = `
@@ -320,7 +341,7 @@ exports[`App renders 1`] = `
@@ -330,7 +351,7 @@ exports[`App renders 1`] = `
@@ -340,7 +361,7 @@ exports[`App renders 1`] = `
@@ -350,7 +371,7 @@ exports[`App renders 1`] = `
diff --git a/src/test/components/__snapshots__/Members.test.js.snap b/src/test/components/__snapshots__/Members.test.js.snap
index 4c4ca2e..6e9f6a9 100644
--- a/src/test/components/__snapshots__/Members.test.js.snap
+++ b/src/test/components/__snapshots__/Members.test.js.snap
@@ -12,92 +12,113 @@ exports[`Members renders 1`] = `
className="row"
>
+
+ John
+
+
+ Riley
+
-
- John Riley
-
Admin & Coding Mentor
+
+ Kent
+
+
+ Utterback
+
-
- Kent Utterback
-
Admin Emeritus & Coding Mentor
+
+ Amy
+
+
+ Bedinghaus
+
-
- Amy Bedinghaus
-
Admin Emeritus
+
+ Austin
+
+
+ Truss
+
-
- Austin Truss
-
Admin Emeritus
+
+ Kevin
+
+
+ Bruland
+
-
- Kevin Bruland
-
Admin Emeritus
+
+ Sarah
+
+
+ Lilly-Bruland
+
-
- Sarah Lilly-Bruland
-
Admin Emeritus
+
+ Justin
+
+
+ Woodward
+
-
- Justin Woodward
-
Admin Emeritus
@@ -116,7 +137,7 @@ exports[`Members renders 1`] = `
@@ -126,7 +147,7 @@ exports[`Members renders 1`] = `
@@ -136,7 +157,7 @@ exports[`Members renders 1`] = `
@@ -146,7 +167,7 @@ exports[`Members renders 1`] = `
@@ -156,7 +177,7 @@ exports[`Members renders 1`] = `
@@ -166,7 +187,7 @@ exports[`Members renders 1`] = `
From 53af70771fbb22bfd837612b1b0b930956d4d3da Mon Sep 17 00:00:00 2001
From: Michael McBride
Date: Tue, 8 Aug 2023 08:33:29 -0400
Subject: [PATCH 10/10] add members id property, fix css
---
src/components/Members.jsx | 14 +++++++-------
src/index.css | 3 +--
2 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/src/components/Members.jsx b/src/components/Members.jsx
index 0e6bec5..5d3f726 100644
--- a/src/components/Members.jsx
+++ b/src/components/Members.jsx
@@ -9,12 +9,12 @@ function Members() {
{ id: 6, firstName: 'Justin', lastName: 'Woodward', title: 'Admin Emeritus', imgUrl: 'https://avatars.githubusercontent.com/u/17994108?v=4' },
]
const members = [
- { name: 'John', imgUrl: '/head.png' },
- { name: 'Ismael', imgUrl: '/head.png' },
- { name: 'Nirvignesh', imgUrl: '/head.png' },
- { name: 'Tijana', imgUrl: '/head.png' },
- { name: 'Jennifer', imgUrl: '/head.png' },
- { name: 'Kellan', imgUrl: '/head.png' },
+ { id: 0, name: 'John', imgUrl: '/head.png' },
+ { id: 1, name: 'Ismael', imgUrl: '/head.png' },
+ { id: 2, name: 'Nirvignesh', imgUrl: '/head.png' },
+ { id: 3, name: 'Tijana', imgUrl: '/head.png' },
+ { id: 4, name: 'Jennifer', imgUrl: '/head.png' },
+ { id: 5, name: 'Kellan', imgUrl: '/head.png' },
]
return (
@@ -34,7 +34,7 @@ function Members() {
Meet the Contributors
{members.map((member) =>
-
+
{member.name}
diff --git a/src/index.css b/src/index.css
index 50f9b79..477b0dd 100644
--- a/src/index.css
+++ b/src/index.css
@@ -197,8 +197,7 @@ th {
justify-content: space-evenly;
}
-.member-avatar,
-.admin-avatar {
+.avatar {
border: 1px solid #707070;
background-color: #f5b742;
}