Skip to content

Commit fae37f9

Browse files
authored
Merge pull request #38 from Code-the-Dream-School/exploreprojects-responsive
Exploreprojects responsive
2 parents d841ead + 2d6bc25 commit fae37f9

File tree

5 files changed

+61
-6
lines changed

5 files changed

+61
-6
lines changed

db.json

+13
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@
1313
"liveDemoURL": "livedemolink",
1414
"comments": "",
1515
"date": "2025-01-09T05:54:37.266Z"
16+
},
17+
{
18+
"id": "029f",
19+
"title": "asdasda",
20+
"githubURL": "asdasdasd",
21+
"description": "sdasd",
22+
"frameworks": [
23+
"HTML / CSS",
24+
"Node.js"
25+
],
26+
"liveDemoURL": "asdsada",
27+
"comments": "asddsaads",
28+
"date": "2025-01-18T18:58:46.100Z"
1629
}
1730
]
1831
}

src/styles/ExploreProjects.css

+21
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,25 @@
7373
.comments-img{
7474
width: 30px;
7575
height: auto;
76+
}
77+
78+
@media (max-width: 768px) {
79+
.explore-projects-container{
80+
margin-top: 120px;
81+
min-width: 370px;
82+
}
83+
.ep-header{
84+
text-align: center;
85+
font-size: 32px;
86+
}
87+
.projects-grid {
88+
margin-top: 48px;
89+
display: flex;
90+
flex-direction: column;
91+
justify-content: center;
92+
align-items: center;
93+
gap: 30px;
94+
width: 100%;
95+
margin-left: 0px;
96+
}
7697
}

src/styles/Homepage.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ h1{
194194
}
195195
.sections-container{
196196
margin-top: 120px;
197-
min-width: 390px;
197+
min-width: 370px;
198198
}
199199
.content-area-responsive{
200200
display: flex;

src/styles/ShareAProject.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
@media (max-width: 768px) {
6464
.share-project-container{
65-
min-width: 380px;
65+
min-width: 370px;
6666
flex-direction: column;
6767
margin-top: 120px;
6868
}
@@ -83,7 +83,7 @@
8383
margin-bottom: 8px;
8484
z-index: 2;
8585
position: relative;
86-
font-size: 20px;
86+
font-size: 18px;
8787
}
8888
.thumbs-up {
8989
z-index: 1; /* Place the image behind the text */
@@ -93,7 +93,7 @@
9393
.sp-info-text {
9494
position: relative; /* Ensure text remains above the image */
9595
z-index: 2;
96-
font-size: 10px;
96+
font-size: 12px;
9797
line-height: 20px;
9898
}
9999
.sp-form-header{

src/views/ExploreProjects.jsx

+23-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ import {
44
Badge,
55
Button,
66
IconButton,
7-
Stack } from "@chakra-ui/react";
7+
Stack
8+
} from "@chakra-ui/react";
9+
import {
10+
MenuContent,
11+
MenuItem,
12+
MenuRoot,
13+
MenuSeparator,
14+
MenuTrigger,
15+
} from "../components/ui/menu";
816
import Comments from "../components/Comments";
917

1018

@@ -51,7 +59,20 @@ const ExploreProjects = () => {
5159
<div className='like-comment-details'>
5260
<Stack>
5361
<IconButton className='details-button' variant="unstyled">
54-
<img className="details-img" src="./images/details.svg" alt='details'></img>
62+
<MenuRoot>
63+
<MenuTrigger asChild>
64+
<img className="details-img" src="./images/details.svg" alt='details'></img>
65+
</MenuTrigger>
66+
<MenuContent className="menu-content">
67+
<MenuItem>
68+
Remove
69+
</MenuItem>
70+
<MenuSeparator />
71+
<MenuItem value="new-txt2" as="a">
72+
Report ⚠️
73+
</MenuItem>
74+
</MenuContent>
75+
</MenuRoot>
5576
</IconButton>
5677
<IconButton className='like-button' variant="unstyled">
5778
<img className="like-img" src="./images/like.svg" alt='like'></img>

0 commit comments

Comments
 (0)