diff --git a/src/App.tsx b/src/App.tsx index d22fd3d..84553f1 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,4 +1,5 @@ import { Header } from "./components/Header/Header.tsx"; +import { PhotoBar } from "./components/PhotoBar/PhotoBar.tsx"; import { Footer } from "./components/Footer/Footer.tsx"; import { Navigation } from "./components/Navigation/Navigation.tsx"; import { SampleSection } from "./components/Sections/SampleSection.tsx"; @@ -13,6 +14,7 @@ export const App = () => { {/* sections can go here */} + ); diff --git a/src/components/Footer/Footer.scss b/src/components/Footer/Footer.scss index f56d673..71e5c75 100644 --- a/src/components/Footer/Footer.scss +++ b/src/components/Footer/Footer.scss @@ -1,10 +1,6 @@ @use "../../shared/colors"; #footer { - position: absolute; - left: 0; - right: 0; - bottom: 0; display: flex; flex-direction: row; justify-content: space-between; diff --git a/src/components/PhotoBar/People.ts b/src/components/PhotoBar/People.ts new file mode 100644 index 0000000..3d4dd9b --- /dev/null +++ b/src/components/PhotoBar/People.ts @@ -0,0 +1,47 @@ +export interface IPerson { + name: string; + position: string; + img: string; // images should have square dimensions + link?: string; +} + +const People: ReadonlyArray = [ + { + name: "Branden Ghena", + position: "Professor", + img: "https://www.mccormick.northwestern.edu/images/research-and-faculty/directory/ghena-branden.jpg", + link: "https://brandenghena.com/", + }, + { + name: "FirstName LastName", + position: "Placeholder", + img: "https://www.thispersondoesnotexist.com", + }, + { + name: "FirstName LastName", + position: "Placeholder", + img: "https://www.thispersondoesnotexist.com", + }, + { + name: "FirstName LastName", + position: "Placeholder", + img: "https://www.thispersondoesnotexist.com", + }, + { + name: "FirstName LastName", + position: "Placeholder", + img: "https://www.thispersondoesnotexist.com", + }, + { + name: "FirstName LastName", + position: "Placeholder", + img: "https://www.thispersondoesnotexist.com", + }, + { + name: "FirstName LastName", + position: "Placeholder", + img: "https://www.thispersondoesnotexist.com", + }, +]; + +export default People; diff --git a/src/components/PhotoBar/PhotoBar.scss b/src/components/PhotoBar/PhotoBar.scss new file mode 100644 index 0000000..ace997f --- /dev/null +++ b/src/components/PhotoBar/PhotoBar.scss @@ -0,0 +1,76 @@ +@use "../../shared/colors"; + +#photobar { + margin-top: auto; + overflow: hidden; + display: flex; + flex-direction: column; + justify-content: center; + + h2 { + margin: 0rem; + text-align: center; + } + + .photobar__animation { + animation-name: scroll-left; + animation-timing-function: linear; + animation-iteration-count: infinite; + display: flex; + flex-direction: row; + gap: 4rem; + justify-content: space-evenly; + align-items: center; + padding: 4rem 0rem; + width: max-content; + + a { + color: colors.$global-very-dark-green; + } + + .photobar__flexbox { + display: flex; + flex-direction: column; + flex-shrink: 0; + align-items: center; + background-color: colors.$global-light; + padding: 1rem; + width: 12rem; + + .photobar__image { + img { + width: 100%; + height: 100%; + } + } + + h3 { + font-size: 1rem; + text-align: center; + margin: 0rem; + } + + p { + text-align: center; + margin: 0rem; + } + } + + .photobar__rotate_right { + transform: rotate(5deg); + } + + .photobar__rotate_left { + transform: rotate(-5deg); + } + } +} + +@keyframes scroll-left { + from { + transform: translateX(100vw); + } + to { + transform: translateX(-100%); + } +} diff --git a/src/components/PhotoBar/PhotoBar.tsx b/src/components/PhotoBar/PhotoBar.tsx new file mode 100644 index 0000000..ed97cec --- /dev/null +++ b/src/components/PhotoBar/PhotoBar.tsx @@ -0,0 +1,40 @@ +import "./PhotoBar.scss"; +import { IPerson } from "./People"; +import People from "./People"; + +interface IPhotoBar {} + +export const PhotoBar: React.FC = () => { + const secondsPerPerson = 5; + return ( + + Meet our Team + + {People.map((person: IPerson, i) => ( + + + + + + {person.name} + {person.position} + + + ))} + + + ); +}; + +export default PhotoBar;
{person.position}