@@ -114,6 +114,32 @@ title: Brag Document
114114 border-left : 5px solid var (--color-primary );
115115 text-shadow : 0 2px 10px rgba (36 , 181 , 255 , 0.2 );
116116}
117+ /* ── Ongoing / En cours ──────────────────────────── */
118+ .project-card--ongoing {
119+ border : 1px solid rgba (76 , 175 , 80 , 0.4 );
120+ box-shadow : 0 0 20px rgba (76 , 175 , 80 , 0.12 ), inset 0 0 30px rgba (76 , 175 , 80 , 0.04 );
121+ }
122+ .badge-ongoing {
123+ display : inline-flex ;
124+ align-items : center ;
125+ gap : 0.35rem ;
126+ font-size : 0.7rem ;
127+ font-weight : 700 ;
128+ text-transform : uppercase ;
129+ letter-spacing : 0.6px ;
130+ color : #81c784 ;
131+ background : rgba (76 , 175 , 80 , 0.15 );
132+ border : 1px solid rgba (76 , 175 , 80 , 0.35 );
133+ border-radius : 20px ;
134+ padding : 0.15rem 0.65rem ;
135+ vertical-align : middle ;
136+ margin-left : 0.5rem ;
137+ animation : ongoing-pulse 2.5s ease-in-out infinite ;
138+ }
139+ @keyframes ongoing-pulse {
140+ 0% , 100% { opacity : 1 ; }
141+ 50% { opacity : 0.6 ; }
142+ }
117143</style >
118144<header class =" page-header " >
119145 <div class =" page-header__bg " role =" presentation " aria-hidden =" true " ></div >
@@ -170,51 +196,14 @@ title: Brag Document
170196</div >
171197<div class =" project-list " >
172198{% assign projects_sorted = site.data.brag.projects | sort: "sort_key" | reverse %}
173- {% assign system_current_year = "now" | date: "%Y" | plus: 0 %}
174199{% assign current_year = '' %}
175200{% for project in projects_sorted %}
176201{% assign project_year = project.sort_key | divided_by: 10000 %}
177- {% if project_year == 9999 %}
178- {% assign display_year = system_current_year %}
179- {% else %}
180- {% assign display_year = project_year %}
181- {% endif %}
182-
183- {% if display_year != current_year %}
184- <h3 class =" year-separator " >{{ display_year }}</h3 >
185- {% assign current_year = display_year %}
186- {% endif %}
187- <div class =" project-card " data-impact-type =" {{ project.impact.type | default: 'other' }} " >
188- <div class =" project-card__main " >
189- <div class =" project-card__header-flex " >
190- <h3 >{{ project.title }}</h3 >
191- {% if project.logo %}
192- <img src =" {{ project.logo }} " alt =" {{ project.title }} logo " class =" project-card__logo " style =" height : 32px ; width : auto ; object-fit : contain ; margin-left : 1rem ; border-radius : 4px ;" />
193- {% endif %}
194- </div >
195- <div class =" project-card__impact " ><i class =" {{ project.impact.icon }} " aria-hidden =" true " ></i > {{ project.impact.text }}</div >
196- {% for paragraph in project.paragraphs %}
197- <p >{{ paragraph }}</p >
198- {% endfor %}
199- <div class =" project-card__tags " >
200- {% for tag in project.tags %}
201- <span class =" {{ tag.class | default: 'tag' }} " >{{ tag.label }}</span >
202- {% endfor %}
203- </div >
204- </div >
205- <div class =" project-card__side " >
206- {% if project.date_lines %}
207- {% for line in project.date_lines %}
208- <span class =" project-card__date " >{{ line }}</span >
209- {% endfor %}
210- {% elsif project.date %}
211- <span class =" project-card__date " >{{ project.date }}</span >
202+ {% if project_year != current_year %}
203+ <h3 class =" year-separator " >{{ project_year }}</h3 >
204+ {% assign current_year = project_year %}
212205{% endif %}
213- {% for link in project.links %}
214- <a class =" project-card__link " href =" {{ link.url }} " target =" _blank " rel =" noopener " ><i class =" {{ link.icon }} " aria-hidden =" true " ></i > {{ link.label }}</a >
215- {% endfor %}
216- </div >
217- </div >
206+ {% include brag-project-card.html project=project %}
218207{% endfor %}
219208
220209</div >
@@ -232,47 +221,14 @@ title: Brag Document
232221</div >
233222<div class =" project-list " >
234223{% assign opensource_sorted = site.data.brag.opensource | sort: "sort_key" | reverse %}
235- {% assign system_current_year = "now" | date: "%Y" | plus: 0 %}
236224{% assign current_year = '' %}
237225{% for item in opensource_sorted %}
238226{% assign item_year = item.sort_key | divided_by: 10000 %}
239- {% if item_year == 9999 %}
240- {% assign display_year = system_current_year %}
241- {% else %}
242- {% assign display_year = item_year %}
243- {% endif %}
244-
245- {% if display_year != current_year %}
246- <h3 class =" year-separator " >{{ display_year }}</h3 >
247- {% assign current_year = display_year %}
248- {% endif %}
249- <div class =" project-card " data-impact-type =" {{ item.impact.type | default: 'other' }} " >
250- <div class =" project-card__main " >
251- <div class =" project-card__header-flex " >
252- <h3 >{{ item.title }}</h3 >
253- {% if item.logo %}
254- <img src =" {{ item.logo }} " alt =" {{ item.title }} logo " class =" project-card__logo " style =" height : 32px ; width : auto ; object-fit : contain ; margin-left : 1rem ; border-radius : 4px ;" />
255- {% endif %}
256- </div >
257- <div class =" project-card__impact " ><i class =" {{ item.impact.icon }} " aria-hidden =" true " ></i > {{ item.impact.text }}</div >
258- {% for paragraph in item.paragraphs %}
259- <p >{{ paragraph }}</p >
260- {% endfor %}
261- <div class =" project-card__tags " >
262- {% for tag in item.tags %}
263- <span class =" {{ tag.class | default: 'tag' }} " >{{ tag.label }}</span >
264- {% endfor %}
265- </div >
266- </div >
267- <div class =" project-card__side " >
268- {% if item.date %}
269- <span class =" project-card__date " >{{ item.date }}</span >
227+ {% if item_year != current_year %}
228+ <h3 class =" year-separator " >{{ item_year }}</h3 >
229+ {% assign current_year = item_year %}
270230{% endif %}
271- {% for link in item.links %}
272- <a class =" project-card__link " href =" {{ link.url }} " target =" _blank " rel =" noopener " ><i class =" {{ link.icon }} " aria-hidden =" true " ></i > {{ link.label }}</a >
273- {% endfor %}
274- </div >
275- </div >
231+ {% include brag-project-card.html project=item %}
276232{% endfor %}
277233
278234</div >
0 commit comments