Skip to content

Commit 420ec40

Browse files
committed
Add Contributing card and responsive timeline spacing
- Add Contributing card to Open Source section with link to contribution guidelines - Make timeline card spacing responsive based on viewport height
1 parent 20eefd2 commit 420ec40

File tree

2 files changed

+66
-3
lines changed

2 files changed

+66
-3
lines changed

src/index.css

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,19 @@ code {
107107
.timeline-item {
108108
position: relative;
109109
padding-left: 2rem;
110-
padding-bottom: 2rem;
110+
padding-bottom: 0.5rem;
111+
}
112+
113+
@media (min-height: 900px) {
114+
.timeline-item {
115+
padding-bottom: 1.5rem;
116+
}
117+
}
118+
119+
@media (min-height: 1100px) {
120+
.timeline-item {
121+
padding-bottom: 2rem;
122+
}
111123
}
112124

113125
.timeline-item:last-child {
@@ -133,7 +145,19 @@ code {
133145
.dark-card {
134146
background: transparent;
135147
color: #1a2332;
136-
padding: 1.5rem 0;
148+
padding: 0.5rem 0;
149+
}
150+
151+
@media (min-height: 900px) {
152+
.dark-card {
153+
padding: 1rem 0;
154+
}
155+
}
156+
157+
@media (min-height: 1100px) {
158+
.dark-card {
159+
padding: 1.5rem 0;
160+
}
137161
}
138162

139163
/* Large number styling */

src/pages/HomePage.js

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
22
import { Link as ScrollLink, Element } from 'react-scroll';
33
import { Link as RouterLink } from 'react-router-dom';
44
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
5-
import { faChevronUp, faChevronDown, faEnvelope } from '@fortawesome/free-solid-svg-icons';
5+
import { faChevronUp, faChevronDown, faEnvelope, faCode } from '@fortawesome/free-solid-svg-icons';
66
import { faGithub } from '@fortawesome/free-brands-svg-icons';
77
import logo from '../assets/INESCTEC_logotipo_monocrom_white.png';
88
import Footer from '../components/Footer';
@@ -178,6 +178,23 @@ const HomePage = () => {
178178
Contact Us
179179
</a>
180180
</div>
181+
182+
{/* Card 04 - Contributing */}
183+
<div className="bg-white border border-gray-200 rounded-lg p-4 border-l-4 border-l-dark-blue shadow-sm text-left">
184+
<h2 className="text-base font-bold mb-2 text-gray-900">Contributing</h2>
185+
<p className="text-sm text-gray-600 leading-relaxed mb-3">
186+
Join us in building impactful open-source tools. We welcome contributions from researchers, developers, and enthusiasts worldwide.
187+
</p>
188+
<a
189+
href="https://github.com/INESCTEC/.github/blob/main/documents/contributing.md"
190+
target="_blank"
191+
rel="noopener noreferrer"
192+
className="inline-flex items-center gap-2 px-3 py-1.5 text-sm bg-transparent text-dark-blue font-medium rounded-lg border-2 border-dark-blue hover:bg-dark-blue hover:text-white transition-all duration-300"
193+
>
194+
<FontAwesomeIcon icon={faCode} />
195+
Get Started
196+
</a>
197+
</div>
181198
</div>
182199

183200
{/* Desktop: Timeline layout */}
@@ -238,6 +255,28 @@ const HomePage = () => {
238255
</a>
239256
</div>
240257
</div>
258+
259+
{/* Card 04 - Contributing */}
260+
<div className="timeline-item">
261+
<div className="timeline-chevron">
262+
<FontAwesomeIcon icon={faChevronDown} className="text-dark-blue text-xs" />
263+
</div>
264+
<div className="dark-card text-left">
265+
<h2 className="text-xl font-bold mb-3 text-gray-900">Contributing</h2>
266+
<p className="text-base text-gray-600 leading-relaxed mb-4 text-left">
267+
Join us in building impactful open-source tools. We welcome contributions from researchers, developers, and enthusiasts worldwide.
268+
</p>
269+
<a
270+
href="https://github.com/INESCTEC/.github/blob/main/documents/contributing.md"
271+
target="_blank"
272+
rel="noopener noreferrer"
273+
className="inline-flex items-center gap-2 px-4 py-2 text-base bg-transparent text-dark-blue font-medium rounded-lg border-2 border-dark-blue hover:bg-dark-blue hover:text-white transition-all duration-300"
274+
>
275+
<FontAwesomeIcon icon={faCode} />
276+
Get Started
277+
</a>
278+
</div>
279+
</div>
241280
</div>
242281
</div>
243282
</div>

0 commit comments

Comments
 (0)