Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added team file #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Projects from "./components/Home/Projects";
import Footer from "./components/Footer";
import NavMenu from "./components/NavDrop";
import { useState } from "react";
import Team from "./components/team";

function App() {
const [nav, setNav] = useState(false);
Expand Down Expand Up @@ -43,10 +44,11 @@ function App() {
<Route path="/" element={<Home />}></Route>
<Route path="/projects" element={<Projects />}></Route>
</Routes>
<Team></Team>
<Footer />
</BrowserRouter>
</>
);
}

export default App;
export default App;
247 changes: 247 additions & 0 deletions frontend/src/components/Home/team.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
html, body {
margin: 0;
height: 100%;
width: 100%;
color: #717f86;
font-size: 16px;
font-family: 'Open Sans', sans-serif;
font-weight: 400;

}

h1, h2, h3, h4, h5, h6 {
font-family: Open Sans, sans-serif;
font-weight: 700;
color: #4B4B4C;
}

a {
color: #ffffff;
}

a:hover, a:focus {
color: #1E88E5;
}

#team {
height: auto;
width: 100%;
margin-left: auto;
margin-right: auto;
padding-top: 65px;
padding-bottom: 40px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.designation {
font-size: 2.5em;
}

.team-img {
margin: 1px 0px;
transition: .5s ease;
}
.img-circle {
border-radius: 50%;
width: 200px;
}
.team-box {
text-align: center;
}

.member {
float: none;
display: inline-block;
margin-bottom: 1em;
padding-left: 20px;
padding-right: 20px;
}

a.github-profile {
color: #4B4B4C;
}

.bi {
font-size: 150%;
color: #000000;
}

.member h3 {
font-size: 19px;
}

#loader {
z-index: 3;
}
a.link{
margin-right: 10px;
}

@media screen and (max-width: 450px) {
.text-dec {
font-size: 20px;
}
.text-desc {
font-size: 15px;
}
.big-text {
font-size: 30px;
}
.small-text {
font-size: 14px;
}
.intro-para {
font-size: 30px;
}
.header-section p {
font-size: 14px;
}
.heading {
margin-bottom: 20px;
}
.modal-sm {
width: 300px;
}
.navbar-default .navbar-brand {
margin-left: 10px;
}
.banner {
background-attachment: scroll;
}
.btn.contributors{
font-size: 5vw;
}
}

@media screen and (max-width: 767px) {
.navbar-default .navbar-nav>li>a {
text-align: center;
}
}

@media screen and (min-width: 460px) and (max-width: 767px) {
.footerWrapper {
margin-left: 10%;
}
}

@media (max-width: 459px) {
.footerWrapper {
font-size: 14px;
}
.footerhead h3 {
font-size: 20px;
}
#rights {
display: block;
}
}

@media (min-width: 768px) and (max-width: 1199px) {
.smallScreenBottom {
margin-left: 25%;
}
}
@media (min-width: 768px) and (max-width: 1199px) {
.navbar-default .navbar-nav>li {
margin: 0 -5px;
}

}
@media (min-width: 978px) and (max-width: 1199px){
.navbar-default .navbar-nav>li>a {
font-size: 16px;
}
}

@media (min-width: 810px) and (max-width: 980px){
.navbar-default .navbar-nav>li>a {
font-size: 13px;
}
}

@media (min-width: 768px) and (max-width: 812px){
.navbar-default .navbar-nav>li>a {
font-size: 10px;
}
}



@media (min-width: 768px) {
.row2 {
float: right;
width: 380px;
}

.contributor-div {
width: 19.5% !important;
}

.contributor-div .team-img {
padding-left: 20%;
padding-right: 20%;
}
}

@media (max-width: 1199px) {
#about {
height: auto;
}
.aboutColumn {
padding-bottom: 25px;
}
}

@media (max-width: 700px) {
.box .box-content p {
text-align: justify;
}
}

@media (max-width: 450px) {
.tag-title {
font-size: 23px;
}
}

@media (max-width: 768px) and (min-width: 600px) {
.team-img {
padding-left: 150px;
padding-right: 150px;
}
}

@media (max-width: 599px) and (min-width: 500px) {
.team-img {
padding-left: 100px;
padding-right: 100px;
}
}

@media (min-width: 768px) and (max-width: 900px) {
.team-img {
padding-left: 20px;
padding-right: 20px;
}
}

@media (min-width: 1200px) and (max-width: 1300px) {
.team-img {
padding-left: 30px;
padding-right: 30px;
}
}

@media (max-width: 768px) {
.member {
margin-bottom: 2em;
}
}

@media (min-height: 710px) {
#about {
height: auto;
padding-bottom: 120px;
}
}
51 changes: 51 additions & 0 deletions frontend/src/components/Home/team.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import React from 'react';
import team from "./team.json";
import './team.css';
import "bootstrap/dist/css/bootstrap.min.css";

function Team() {
// Group members by position
const membersByPosition = {};

team.forEach((member) => {
if (!membersByPosition[member.position]) {
membersByPosition[member.position] = [];
}
membersByPosition[member.position].push(member);
});

return (
<div className="container contentContainer" id="team">
<h2 className="contentHeader d-flex justify-content-center fw-bold fs-1">Team</h2>
<div className='flex flex-wrap'>
{Object.entries(membersByPosition).map(([position, members]) => (
<div key={position}>
<h4 className="contentHeader designation d-flex justify-content-center fs-1">{position}</h4>
{members.map((member) => (
<div className="row team-box d-flex justify-content-center" key={member.id}>
<div className="col-lg-3 col-sm-4 text-center member">
<img className="img-circle img-responsive img-center team-img" src={`${process.env.PUBLIC_URL}/images/${member.photo_link}`} alt={member.name}/>
<h3 className='mt-2'>{member.name}</h3>
<div className='d-flex justify-content-center mb-3 border-grey border-bottom'>
<a className="link mb-2" target="_blank" href={member.fb_link}>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-facebook" viewBox="0 0 16 16">
<path d="M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951"/>
</svg>
</a>
<a className="link mb-2" target="_blank" href={member.github_link}>
<svg href={member.github_link} xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-github" viewBox="0 0 16 16">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8"/>
</svg>
</a>
</div>
</div>
</div>
))}
</div>
))}
</div>
</div>
);
}

export default Team;