Skip to content

Commit c821e3c

Browse files
committed
Update on Projects*
1 parent 8877df8 commit c821e3c

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

src/Projects.css

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
transform: scale(1.15);
133133
}
134134

135-
/* ── Card ──────────────────────────────────────────────── */
135+
/*Card */
136136
.proj-card {
137137
background: var(--project-surface);
138138
border: 1px solid var(--project-border);
@@ -143,7 +143,6 @@
143143
0 1px 0 rgba(255,255,255,0.04) inset;
144144
will-change: transform, opacity;
145145
}
146-
147146
/* Enter state (default visible) */
148147
.proj-card.enter {
149148
animation: cardEnter 0.42s var(--project-ease) both;
@@ -339,7 +338,12 @@
339338
margin: 0 auto;
340339
align-items: start;
341340
}
342-
341+
@media (width<512px) {
342+
.projects-grid{
343+
width: auto;
344+
padding: 0;
345+
}
346+
}
343347
/* Cards stretch to fill their grid cell */
344348
.proj-card {
345349
width: clamp(700px, 30%, 380px);
@@ -471,11 +475,12 @@
471475
display: flex;
472476
justify-content: center;
473477
padding: 1.5rem 0 2rem;
478+
color: var(--project-accent);
474479
}
475480

476481
.view-more-btn {
477482
background: transparent;
478-
border: 1px solid rgba(255, 255, 255, 0.2);
483+
border: 1px solid rgba(255, 255, 255, 0.4);
479484
color: inherit;
480485
padding: 0.6rem 1.8rem;
481486
border-radius: 999px;

src/Projects.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function ProjectCard({ project, onReadmeOpen }) {
197197
);
198198
}
199199

200-
const VISIBLE_COUNT = 4;// no of projects tiles to display
200+
const VISIBLE_COUNT = 3;// no of projects tiles to display
201201

202202
export default function Projects() {
203203
const [activeTab, setActiveTab] = useState("hardware");
@@ -280,7 +280,7 @@ export default function Projects() {
280280
>
281281
{showAll
282282
? `Show Less ↑`
283-
: `View More (${filteredProjects.length - VISIBLE_COUNT} more) ↓`}
283+
: `View More ↓`}
284284
</button>
285285
</div>
286286
)}

0 commit comments

Comments
 (0)