Skip to content

Commit 419c0bb

Browse files
Introduce mobile and tablet design for the page.
1 parent 1246af6 commit 419c0bb

File tree

4 files changed

+107
-44
lines changed

4 files changed

+107
-44
lines changed

src/components/fundable/index.tsx

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,44 @@ export function getCategoryFromProjectPageName(pageName: string) {
1313
return null;
1414
}
1515

16-
export default function FundableProjects() {
16+
export function MainAreaFundableProjects() {
1717
return (
1818
<div>
19-
<div className="container upper-container-with-margin-top">
20-
21-
<div className="row">
22-
<div className="col col--2">
23-
<MenuSidebar />
24-
</div>
25-
<div className="col col--9 col--offset-1
26-
">
27-
<h1 style={{ padding: "0" }}>Check out our projects available for funding!</h1>
28-
29-
<section id="jupyter-ecosystem">
30-
<ProjectCategory
31-
projectCategoryName={"Jupyter Ecosystem"}
32-
projectCategory={fundableProjectsDetails.jupyterEcosystem}
33-
/>
34-
</section>
35-
<section id="project-management">
36-
<ProjectCategory
37-
projectCategoryName={"Package Management"}
38-
projectCategory={fundableProjectsDetails.packageManagement}
39-
/>
40-
</section>
41-
</div>
19+
<h1 style={{ padding: "0" }}>Check out our projects available for funding!</h1>
20+
21+
<section id="jupyter-ecosystem">
22+
<ProjectCategory
23+
projectCategoryName={"Jupyter Ecosystem"}
24+
projectCategory={fundableProjectsDetails.jupyterEcosystem}
25+
/>
26+
</section>
27+
<section id="project-management">
28+
<ProjectCategory
29+
projectCategoryName={"Package Management"}
30+
projectCategory={fundableProjectsDetails.packageManagement}
31+
/>
32+
</section>
33+
</div>
34+
35+
)
36+
}
37+
38+
export default function FundableProjects() {
39+
return (
40+
41+
<div className="container upper-container-with-margin-top">
42+
<div className="row">
43+
<div className={"col col--2" + " " + styles.menu_sidebar}>
44+
<MenuSidebar />
45+
</div>
46+
<div className={"col col--9 col--offset-1" + " " + styles.main_area_desktop} >
47+
<MainAreaFundableProjects />
48+
</div >
49+
<div className={"col col--12" + " " + styles.main_area_mobile} >
50+
<MainAreaFundableProjects />
4251
</div>
4352
</div>
4453
</div >
4554

46-
4755
);
4856
}

src/components/fundable/styles.module.css

Lines changed: 72 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
.small_project_card {
2-
width: 1020px;
3-
/*margin: var(--ifm-spacing-xl) 0;*/
4-
/*padding: 30px 60px ;*/
5-
margin: var(--ifm-spacing-2xl) 0;
6-
border: 1px solid #ccc;
7-
cursor: pointer;
8-
}
1+
92

103
.small_project_card:hover {
114
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
@@ -68,13 +61,7 @@
6861
z-index: 4000;
6962
}
7063

71-
.large_project_card {
72-
width: 1000px;
73-
height: 900px;
74-
padding: 40px;
75-
overflow-y: auto;
76-
border-radius: 8px;
77-
}
64+
7865

7966
.large_project_card_title {
8067
font-family: var(--ifm-font-family-roboto);
@@ -305,11 +292,39 @@
305292
text-align: center;
306293
}
307294

308-
@media only screen and (max-width: 996px) {
295+
@media only screen and (max-width: 500px) {
309296
/*Mobile*/
310297
.category_header {
311298
font-size: 20px;
312299
}
300+
ul {
301+
display: flex;
302+
justify-content: center;
303+
}
304+
.main_area_desktop {
305+
display: none
306+
}
307+
308+
.menu_sidebar {
309+
display: none
310+
}
311+
312+
.small_project_card {
313+
width: 90vw;
314+
margin: var(--ifm-spacing-2xl) 0;
315+
border: 1px solid #ccc;
316+
cursor: pointer;
317+
padding: 18px;
318+
}
319+
320+
.large_project_card {
321+
width: 90vw;
322+
padding: 40px;
323+
overflow-y: auto;
324+
border-radius: 8px;
325+
padding: var(--ifm-spacing-xl) var(--ifm-spacing-xl);
326+
}
327+
313328

314329
.small_input {
315330
width: 300px;
@@ -322,16 +337,56 @@
322337
height: 160px;
323338
border-radius: 4px;
324339
}
340+
}
325341

342+
@media (min-width: 500px) and (max-width: 996px) {
343+
/*Tablet*/
326344

345+
.small_project_card {
346+
width: 80vw;
347+
margin: var(--ifm-spacing-2xl) 0;
348+
border: 1px solid #ccc;
349+
cursor: pointer;
350+
}
351+
.large_project_card {
352+
width: 80vw;
353+
padding: 40px;
354+
overflow-y: auto;
355+
border-radius: 8px;
356+
padding: var(--ifm-spacing-xl) var(--ifm-spacing-xl);
357+
}
358+
.main_area_desktop {
359+
display: none
360+
}
361+
362+
.menu_sidebar {
363+
display: none
364+
}
365+
327366
}
328367

329368
@media only screen and (min-width: 996px) {
330369
/*Desktop*/
331370
.category_header {
332-
/*font-size: var(--ifm-font-size-secondary-title);*/
333371
font-size: 28px;
334372
}
373+
.small_project_card {
374+
width: 920px;
375+
margin: var(--ifm-spacing-2xl) 0;
376+
border: 1px solid #ccc;
377+
cursor: pointer;
378+
}
379+
380+
.large_project_card {
381+
width: 1000px;
382+
height: 900px;
383+
padding: 40px;
384+
overflow-y: auto;
385+
border-radius: 8px;
386+
}
387+
.main_area_mobile {
388+
display: none;
389+
}
335390
.small_input {
336391
width: 508px;
337392
height: 56px;

static/rss.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/rss_all.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)