Skip to content
Merged
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
31 changes: 31 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"bootstrap": "^5.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.2",
Expand Down
Binary file added src/assets/community/chef.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/community/gdsc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/community/info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/community/mlsa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/community/ninja.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/community/tech.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 60 additions & 11 deletions src/components/Community.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,64 @@
div.cd{

height: calc(100vh);
background-color: rgb(243, 241, 241); /* Use background color for white */
background-size: cover;
background-position: center;
.cd {
display: flex;
justify-content: space-between;
justify-content: center;
flex-direction: column;
align-items: center;


background-color: black;
padding-top: 6em;
}
h1{
color: rgb(17, 90, 154);

.community_heading {
text-align: center;
font-weight: 1000;
font-size: 2em;
color: #fff;
}

.community_hidden_navbar {
pointer-events: none;
opacity: 0;
z-index: -100;
}

.community_images {
overflow: hidden;
object-fit: contain;
}

.card .community_image {
display: flex;
}

.row .community_card:nth-child(odd) .card .community_image {
justify-content: left !important;
}

.row .community_card:nth-child(even) .card .community_image {
justify-content: right !important;
}

.card {
border: none;
color: white !important;
}

.card img {
border-radius: 0.25rem;
}

.card-title {
font-size: 2em;
}

@media (max-width:768px) {
.row .community_card:nth-child(odd) .card .community_image ,
.row .community_card:nth-child(even) .card .community_image{
justify-content: center !important;
}
.card-title{
font-size: 1.5em;
}
.card-body{
text-align: center;
}
}
94 changes: 88 additions & 6 deletions src/components/Community.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,95 @@
import React from 'react'
import React from 'react';
import './Community.css';

import 'bootstrap/dist/css/bootstrap.min.css';
import tech_image from '../assets/community/tech.png';
import mlsa_image from '../assets/community/mlsa.png';
import chef_image from '../assets/community/chef.png';
import ninja_image from '../assets/community/ninja.png';
import gdsc_image from '../assets/community/gdsc.png';
import info_image from '../assets/community/info.png';

const Community = () => {
const data = [
{
image: tech_image,
title: 'Programming',
subtitle: 'Society',
description: 'Our team is a dynamic group of tech enthusiasts, designers, and innovators, all working together to drive the mission of the Tech Society forward. Meet the individuals who make it all happen!',
leads: 'Leads: Saswat Parasar Behera, Soubhik Gon',
},
{
image: gdsc_image,
title: 'Google Developer',
subtitle: 'Groups ',
description: 'Our team is a dynamic group of tech enthusiasts, designers, and innovators, all working together to drive the mission of the Tech Society forward. Meet the individuals who make it all happen!',
leads: 'Leads: Saswat Parasar Behera, Soubhik Gon',
},
{
image: mlsa_image,
title: 'Microsoft Learn Student',
subtitle: 'Ambassador',
description: 'Our team is a dynamic group of tech enthusiasts, designers, and innovators, all working together to drive the mission of the Tech Society forward. Meet the individuals who make it all happen!',
leads: 'Leads: Saswat Parasar Behera, Soubhik Gon',
},
{
image: chef_image,
title: 'Codechef',
subtitle: '',
description: 'Our team is a dynamic group of tech enthusiasts, designers, and innovators, all working together to drive the mission of the Tech Society forward. Meet the individuals who make it all happen!',
leads: 'Leads: Saswat Parasar Behera, Soubhik Gon',
},
{
image: ninja_image,
title: 'Coding Ninjas',
subtitle: 'Student Club',
description: 'Our team is a dynamic group of tech enthusiasts, designers, and innovators, all working together to drive the mission of the Tech Society forward. Meet the individuals who make it all happen!',
leads: 'Leads: Saswat Parasar Behera, Soubhik Gon',
},
{
image: info_image,
title: 'InfoSec',
subtitle: 'Club',
description: 'Our team is a dynamic group of tech enthusiasts, designers, and innovators, all working together to drive the mission of the Tech Society forward. Meet the individuals who make it all happen!',
leads: 'Leads: Saswat Parasar Behera, Soubhik Gon',
},
];

return (
<div className='cd'>
<h1>community</h1>
<div className="container">
<h1 className='community_heading' aria-label="Communities Section">Communities</h1>
<br /><br />
<div className="row" style={{ justifyContent: 'center' }}>
{data.map((item, index) => {
return (
<div className="col-10 mb-4 community_card" key={index}>
<div className="card mb-3" style={{ background: 'transparent' }}>
<div className="row no-gutters">
<div className={`community_image col-md-4 ${index % 2 === 0 ? '' : 'order-md-2'}`}>
<img src={item.image} className="bd-placeholder-img img-fluid rounded-start" alt={item.title} style={{ maxHeight: '250px', objectFit: 'contain' }}/>
</div>
<div className={`col-md-8 d-flex ${index % 2 === 0 ? '' : 'order-md-1'}`} style={{ alignItems: 'center' }}>
<div className="card-body">
<p className="card-title">
<b>{item.title}</b> {item.subtitle}
</p>
<p className="card-text">{item.description}</p>
<p className="card-text">
<br />
<b>{item.leads}</b>
</p>
</div>
</div>
</div>
</div>
</div>
);
})}
</div>
<br />
</div>
</div>
)
}
);
};

export default Community
export default Community;