Skip to content

Commit 330cf07

Browse files
committed
Cambio emojis por iconos
1 parent cf37a23 commit 330cf07

2 files changed

Lines changed: 62 additions & 10 deletions

File tree

assets/css/styles.css

Lines changed: 52 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -468,24 +468,54 @@ p{
468468
height: 140px;
469469
border-radius: calc(var(--radius) - 4px);
470470
margin: -4px -4px 12px -4px;
471+
471472
display:flex;
472473
align-items:center;
473474
justify-content:center;
475+
476+
position: relative;
477+
overflow: hidden;
478+
479+
/* Colores por defecto del thumb (se pueden “tunear” por clase) */
480+
--a: rgba(124,58,237,.35);
481+
--b: rgba(34,211,238,.22);
482+
483+
/* Fondo: rejilla + luces + base */
474484
background:
475-
radial-gradient(circle at 0% 0%, rgba(124,58,237,.35), transparent 55%),
476-
radial-gradient(circle at 100% 100%, rgba(34,211,238,.22), transparent 55%),
485+
/* grid (rejilla) */
486+
repeating-linear-gradient(
487+
0deg,
488+
rgba(255,255,255,.06) 0 1px,
489+
transparent 1px 22px
490+
),
491+
repeating-linear-gradient(
492+
90deg,
493+
rgba(255,255,255,.06) 0 1px,
494+
transparent 1px 22px
495+
),
496+
/* glow corners */
497+
radial-gradient(circle at 0% 0%, var(--a), transparent 55%),
498+
radial-gradient(circle at 100% 100%, var(--b), transparent 55%),
499+
/* base */
477500
linear-gradient(135deg, #050816, #0b0f14);
478501
}
479-
.project-thumb span{
480-
font-size: 42px;
481-
filter: drop-shadow(0 8px 24px rgba(0,0,0,.6));
502+
503+
/* capa para “suavizar” un poco el grid */
504+
.project-thumb::after{
505+
content:"";
506+
position:absolute;
507+
inset:0;
508+
background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.06), transparent 60%);
509+
pointer-events:none;
482510
}
511+
483512
.project-card .tech{
484513
margin: 12px 0;
485514
display:flex;
486515
flex-wrap:wrap;
487516
gap:6px;
488517
}
518+
489519
.project-card .tech span{
490520
background: rgba(255,255,255,.08);
491521
padding: 6px 10px;
@@ -500,12 +530,29 @@ p{
500530
margin: 10px 0 22px;
501531
color: var(--muted);
502532
}
533+
503534
.project-card details summary{
504535
cursor:pointer;
505536
color: #c4b5fd;
506537
font-weight: 700;
507538
}
508539

540+
.project-icon{
541+
position: relative;
542+
z-index: 1;
543+
544+
font-size: 56px;
545+
color: rgba(255,255,255,.92);
546+
547+
filter: drop-shadow(0 10px 26px rgba(0,0,0,.55));
548+
opacity: .95;
549+
}
550+
551+
.project-thumb.thumb-powerapps{ --a: rgba(196,181,253,.38); --b: rgba(34,211,238,.20); }
552+
.project-thumb.thumb-desktop{ --a: rgba(148,163,184,.30); --b: rgba(196,181,253,.22); }
553+
.project-thumb.thumb-android{ --a: rgba(34,197,94,.22); --b: rgba(244,114,182,.18); }
554+
555+
509556
/* =========================================================
510557
CV
511558
========================================================= */

assets/js/app.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,24 +191,27 @@ function getProjectItems() {
191191
why: proj.p1_why,
192192
link: "https://github.com/SebiGitHub/WEB-DE-PROTOCOLOS-HSJD",
193193
tech: ["PowerApps", "SharePoint", "VBScript", "Access", "Excel"],
194-
emoji: "🧩",
194+
icon: "fa-solid fa-diagram-project",
195+
thumbClass: "thumb-powerapps"
195196
},
196197
{
197198
title: proj.p2_title,
198199
desc: proj.p2_desc,
199200
why: proj.p2_why,
200201
link: "https://github.com/SebiGitHub/AvaloniaCatalogoWinForms",
201202
tech: ["Avalonia", "WinForms", "Visual Studio"],
202-
emoji: "🪄",
203+
icon: "fa-solid fa-cubes-stacked",
204+
thumbClass: "thumb-desktop"
203205
},
204206
{
205207
title: proj.p3_title,
206208
desc: proj.p3_desc,
207209
why: proj.p3_why,
208210
link: "https://github.com/SebiGitHub/Agenda",
209211
tech: ["Android", "Kotlin", "SQLite/Room"],
210-
icon: "fa-solid fa-calendar-days"
211-
},
212+
icon: "fa-solid fa-calendar-days",
213+
thumbClass: "thumb-android"
214+
}
212215
];
213216
}
214217

@@ -234,7 +237,9 @@ function renderProjects() {
234237

235238
stage.innerHTML = `
236239
<div class="card project-card">
237-
<div class="project-thumb"><span>${p.emoji}</span></div>
240+
<div class="project-thumb ${p.thumbClass || ""}">
241+
<i class="project-icon ${p.icon}" aria-hidden="true"></i>
242+
</div>
238243
239244
<h3>${p.title}</h3>
240245
<p>${p.desc}</p>

0 commit comments

Comments
 (0)