Skip to content

Commit ccf153f

Browse files
committed
feat: change about layout and other style choices
1 parent a5ce1db commit ccf153f

File tree

12 files changed

+132
-88
lines changed

12 files changed

+132
-88
lines changed

.github/workflows/build-ci-test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Integration Test (Build)
22

3+
# TODO: add linter
4+
35
on:
46
pull_request:
57
types:

index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
<link rel="preconnect" href="https://fonts.googleapis.com">
66
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
77
<link href="https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap" rel="stylesheet">
8-
<link rel="preconnect" href="https://fonts.googleapis.com">
9-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10-
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
8+
<link href="https://fonts.googleapis.com/css2?family=Nanum+Gothic+Coding:wght@400;700&display=swap" rel="stylesheet">
119
<link rel="icon" type="image/png" href="/favicon.ico">
1210
<meta name="viewport" content="width=device-width, initial-scale=1" />
1311
<meta name="theme-color" content="#000000" />
197 KB
Loading

src/assets/metasprint.jpeg

1.36 MB
Loading

src/components/Carousel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ const Carousel = (props: { children: React.ReactNode[], ref: any, asNavFor: any
1414
};
1515
return (
1616
<Slider {...settings} className="carousel-container" asNavFor={props.asNavFor} responsive={[{
17-
breakpoint: 480,
17+
breakpoint: 990,
1818
settings: {
1919
slidesToShow: 1,
2020
}
2121
}, {
22-
breakpoint: 918,
22+
breakpoint: 1480,
2323
settings: {
2424
slidesToShow: 2,
2525
}

src/pages/About.tsx

Lines changed: 38 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,42 +16,50 @@ function About() {
1616
<section className="topic-section">
1717
<h2 className="section-header-left">About Us</h2>
1818

19-
{/* you can see how bad i am at class names*/}
20-
<p className='vikrant-quote'>
21-
<strong><em>
22-
"The biggest resource we have is the quality of people who choose to participate. That is what must be maximised at all times. Smart people don’t like drudgery, and are generally driven enough to find another way to do something they really want to do, if we get in their way."
23-
</em></strong>
24-
<br />
25-
<br />
26-
- <a href='https://github.com/amrav'>Vikrant Varma</a>, MetaKGP co-founder
27-
</p>
19+
<div className='about-top-container'>
2820

29-
<p className="description">
30-
Metakgp is an <strong>open, student-driven</strong> community at IIT Kharagpur dedicated to improving campus life by sharing knowledge and creating innovative projects. Students from all walks of life come together to <strong>document experiences, build tools, and create resources</strong> that benefit everyone at MetaKGP.
31-
</p>
21+
<div className='about-top-left'>
22+
{/* you can see how bad i am at class names*/}
23+
<p className='vikrant-quote'>
24+
<strong><em>
25+
"The biggest resource we have is the quality of people who choose to participate. That is what must be maximised at all times. Smart people don’t like drudgery, and are generally driven enough to find another way to do something they really want to do, if we get in their way."
26+
</em></strong>
27+
<br />
28+
<br />
29+
- <a href='https://github.com/amrav'>Vikrant Varma</a>, MetaKGP co-founder
30+
</p>
3231

33-
<div className='image-container'>
34-
<img src={GroupPicture} className='metakgp-image' alt='metakgp group picture' />
35-
<figcaption>
36-
A group picture of some active metakgp maintainers <br />
37-
From left to right: Rohan Barsagade, Arpit Bhardwaj, Harsh Khandeparkar, Chirag Ghosh, Shikhar Soni, and Rajiv Harlalka
38-
</figcaption>
32+
<p className="description">
33+
Metakgp is an <strong>open, student-driven</strong> community at IIT Kharagpur dedicated to improving campus life by sharing knowledge and creating innovative projects. Students from all walks of life come together to <strong>document experiences, build tools, and create resources</strong> that benefit everyone at MetaKGP.
34+
</p>
35+
</div>
36+
37+
<div className='image-container'>
38+
<img src={GroupPicture} className='metakgp-image' alt='metakgp group picture' />
39+
<figcaption>
40+
A group picture of some active metakgp maintainers
41+
</figcaption>
42+
</div>
3943
</div>
4044

41-
<p className='description'>
42-
Metakgp hosts <strong>Metasprints</strong> — focused, collaborative sessions where members come together to brainstorm, develop, and enhance projects. These events are a great way for anyone, regardless of experience, to get involved and make a real impact.
43-
</p>
45+
<div className='about-bottom-container'>
46+
<div className='about-bottom-right'>
47+
<p className='description'>
48+
Metakgp hosts <strong>Metasprints</strong> — focused, collaborative sessions where members come together to brainstorm, develop, and enhance projects. These events are a great way for anyone, regardless of experience, to get involved and make a real impact.
49+
</p>
50+
<p className='description'>
51+
If you’re passionate about contributing, learning, or simply making campus life better, join Metakgp and help shape a more open and supportive IIT Kharagpur community!
52+
</p>
53+
</div>
4454

45-
<div className='image-container'>
46-
<img src={MetaSpringImage} className='metakgp-image' alt='metasprint' />
47-
<figcaption>
48-
A metasprint in progress
49-
</figcaption>
55+
<div className='image-container'>
56+
<img src={MetaSpringImage} className='metakgp-image' alt='metasprint' />
57+
<figcaption>
58+
A metasprint in progress
59+
</figcaption>
60+
</div>
5061
</div>
5162

52-
<p className='description'>
53-
If you’re passionate about contributing, learning, or simply making campus life better, join Metakgp and help shape a more open and supportive IIT Kharagpur community!
54-
</p>
5563

5664
<p className='description'>
5765
Get to know more about us and our history
@@ -63,7 +71,7 @@ function About() {
6371
<a href='https://wiki.metakgp.org/w/User:Hargup/Why_metakgp%3F'>Why MetaKGP: by Harsh Gupta</a>
6472
</li>
6573
<li>
66-
<a href='https://wiki.metakgp.org/w/User:Amrav/Why_metakgp%3F'>Why MetaKGP: by Vikrant</a>
74+
<a href='https://wiki.metakgp.org/w/User:Amrav/Why_metakgp%3F'>Why MetaKGP: by Vikrant Varma</a>
6775
</li>
6876
</ul>
6977
</p>

src/pages/Projects.tsx

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -7,50 +7,50 @@ import SortDropdown from "../components/SortDropdown";
77
const Projects = () => {
88
const repoList: REPO_DATA_TYPE[] = RepoData as REPO_DATA_TYPE[]
99
const [sortField, setSortField] = useState("activity");
10-
const [sortType,setSortType]=useState("desc")
10+
const [sortType, setSortType] = useState("desc")
1111
const languages = [...new Set(repoList.map(repo => repo.language))];
1212
const [selectedLanguage, setSelectedLanguage] = useState<string[]>([]);
1313
const [FilteredRepos, setFilteredRepos] = useState<REPO_DATA_TYPE[]>(repoList);
14-
15-
14+
15+
1616
//sorting based on STARS ,FORKS , NAME
1717
// and Also filtered by Language
18-
useEffect ( () => {
19-
let result = repoList.filter((repo) =>
18+
useEffect(() => {
19+
let result = repoList.filter((repo) =>
2020
selectedLanguage.length === 0 || selectedLanguage.includes(repo.language)
21-
);
22-
21+
);
22+
2323
if (sortField === "name") {
24-
25-
result.sort((a, b) => {
26-
const cmp = a.name.toLowerCase().localeCompare(b.name.toLowerCase());
27-
return sortType === "asc" ? cmp : -cmp;
28-
});
29-
30-
}
24+
25+
result.sort((a, b) => {
26+
const cmp = a.name.toLowerCase().localeCompare(b.name.toLowerCase());
27+
return sortType === "asc" ? cmp : -cmp;
28+
});
29+
30+
}
3131
else if (sortField === "stars") {
32-
result.sort((a, b) => {
33-
const cmp = a.stars-b.stars;
34-
return sortType === "asc" ? cmp : -cmp;
35-
});
36-
}
32+
result.sort((a, b) => {
33+
const cmp = a.stars - b.stars;
34+
return sortType === "asc" ? cmp : -cmp;
35+
});
36+
}
3737
else if (sortField === "forks") {
38-
result.sort((a, b) => {
39-
const cmp = a.forks-b.forks;
40-
return sortType === "asc" ? cmp : -cmp;
41-
});
42-
38+
result.sort((a, b) => {
39+
const cmp = a.forks - b.forks;
40+
return sortType === "asc" ? cmp : -cmp;
41+
});
42+
4343
}
4444
else if (sortField === "activity") {
4545
if (sortType === "asc") {
4646
result = result.reverse();
4747
}
48-
4948

50-
}
51-
setFilteredRepos(result)
5249

53-
},[selectedLanguage,sortField,sortType])
50+
}
51+
setFilteredRepos(result)
52+
53+
}, [selectedLanguage, sortField, sortType])
5454

5555

5656

@@ -66,7 +66,7 @@ setFilteredRepos(result)
6666
});
6767
};
6868

69-
69+
// TODO: Add pagination :sob:
7070

7171
return (
7272
<div className="page-container">
@@ -76,28 +76,28 @@ setFilteredRepos(result)
7676
Explore our repositories for projects that may help you, feel free to contribute to which ever ones suit you!
7777
</p>
7878
</section>
79-
<div className="filter-container">
80-
<div className="language-filter">
81-
{languages.map(lang => (
82-
<button
83-
key={lang}
84-
className={`filter-button ${selectedLanguage.includes(lang) ? "active" : ""}`}
85-
onClick={() => toggleLanguage(lang)}
86-
>
87-
{lang}
88-
</button>
89-
))}
90-
91-
</div>
92-
79+
<div className="filter-container">
80+
<div className="language-filter">
81+
{languages.map(lang => (
82+
<button
83+
key={lang}
84+
className={`filter-button ${selectedLanguage.includes(lang) ? "active" : ""}`}
85+
onClick={() => toggleLanguage(lang)}
86+
>
87+
{lang}
88+
</button>
89+
))}
90+
91+
</div>
92+
9393
<SortDropdown
94-
setSortField={setSortField}
94+
setSortField={setSortField}
9595
setSortType={setSortType}
9696
sortField={sortField}
9797
sortType={sortType}
98-
/>
99-
100-
98+
/>
99+
100+
101101
</div>
102102
<CardGrid repos={FilteredRepos} displayMode="all" />
103103
</div>

src/styles/components/FeaturedDisplay.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,10 @@
6969
font-weight: 700;
7070
text-decoration: none;
7171
text-align: center;
72+
transition: background 300ms, color 300ms;
73+
}
74+
75+
.featured-button:hover {
76+
color: #2f2f2f;
77+
background-color: #fff;
7278
}

src/styles/components/RepoCard.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
flex-direction: column;
66
justify-content: center;
77
align-items: center;
8-
background-color: #2f2f2fbf;
8+
background-color: #2f2f2f;
99
border: 1px solid #222;
1010
border-radius: 0.375rem;
1111
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);

src/styles/global.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ body,
66
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
77
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
88
sans-serif;
9-
/* background: #191919; */
9+
/* background: #2f2f2f69; */
1010
background: linear-gradient(90deg, #28313b, #485461);
1111
/* background: linear-gradient(90deg, #2c3e50, #000000); */
1212
animation: gradient_anim 23s ease infinte;
@@ -38,15 +38,15 @@ code {
3838

3939

4040
a:not(.nav-element):not(.active-nav-element):not(.slack-link):not(.metakgp-logo-link):not(.no-highlight) {
41-
color: #00FFFF;
41+
color: #93aff1;
4242
text-decoration: none;
4343
}
4444

4545
a:hover:not(.nav-element):not(.active-nav-element):not(.slack-link):not(.metakgp-logo-link):not(.no-highlight) {
46-
color: #00BFFF;
46+
color: #5fb49c;
4747
text-decoration: underline;
4848
}
4949

5050
a:visited:not(.nav-element):not(.active-nav-element):not(.slack-link):not(.metakgp-logo-link):not(.no-highlight) {
51-
color: #FF00FF;
51+
color: #e75a7c;
5252
}

0 commit comments

Comments
 (0)