Skip to content

Commit 0d07bc3

Browse files
committed
🎈 perf: optimize images performance
1 parent 265d312 commit 0d07bc3

File tree

10 files changed

+12
-11
lines changed

10 files changed

+12
-11
lines changed

public/Datys-logo.webp

-3.87 KB
Binary file not shown.

public/Jygasoft-logo.webp

-6.32 KB
Binary file not shown.

public/MyndGoals-logo.ico

-98.9 KB
Binary file not shown.

public/images/MyndGoals-logo.webp

992 Bytes
Binary file not shown.
-13.7 KB
Binary file not shown.

src/components/Articles.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const allPosts = await Astro.glob('../pages/posts/*.md');
2727
<img
2828
transition:name={post.frontmatter.title}
2929
src={post.frontmatter.image.src}
30-
class="w-48 rounded-xl max-sm:w-full"
30+
class="w-48 rounded-xl max-sm:w-full aspect-video"
3131
alt={post.frontmatter.image.alt}
3232
/>
3333

src/components/Experience.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ const { HEADER_EXPERIENCE, EXPERIENCE } = Astro.props;
2727
EXPERIENCE.map((job) => (
2828
<li class=" mb-20 ms-8">
2929
<div class="flex flex-row items-center">
30-
<div class="absolute start-[-0.9rem] mb-1 h-7 w-7 overflow-hidden rounded-full border border-teal-200 bg-slate-300 shadow-lg shadow-teal-200">
31-
<img src={`/images/${job.logoFile}`} alt="" />
30+
<div class="absolute start-[-0.9rem] mb-1 w-7 overflow-hidden rounded-full border border-teal-200 bg-slate-300 shadow-lg shadow-teal-200">
31+
<img class="aspect-square" src={`/images/${job.logoFile}`} alt="" />
3232
</div>
3333
<h3 class="reveal-experience-info my-0.5 text-xl font-semibold text-teal-200">
3434
{job.ocupation}

src/i18n/en.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"SEO_TITLE": "Carlos Jorge Rodríguez | Website",
55
"SEO_DESCRIPTION": "Carlos Jorge Rodríguez's personal portfolio website. I show my most important github projects. The main goals of these projects is having fun and learn new technologies, good practices and try to make real creative ideas",
66
"INTRO_TITLE": "Hi, I am",
7-
"INTRO_TITLE_AFTER_BR1": "Carlos Jorge,",
8-
"INTRO_TITLE_AFTER_BR2": "Web developer!",
7+
"INTRO_TITLE_AFTER_BR1": "Carlos Jorge",
8+
"INTRO_TITLE_AFTER_BR2": "",
99
"INTRO_SUBTITLE": "Welcome to my personal portfolio!",
10-
"INTRO_DESCRIPTION": "Cuban computer scientist from <b>Havana University</b>. Currently working as full-stack engineer building <b>.net</b> and <b>Vuejs</b> applications. I play with <b>Astro</b> and <b>Rust</b> in my free time",
10+
"INTRO_DESCRIPTION": "Cuban computer scientist from <b>Havana University</b>. Currently working as full-stack engineer building <b>.net</b> and <b>Vuejs</b> applications.",
1111
"PROJECTS_TITLE": "Some projects",
1212
"PROJECTS_TITLE_AFTER_BR": "I've made",
1313
"ABOUT_ME_TITLE": "About",
@@ -57,7 +57,7 @@
5757
"date": "Currently...",
5858
"ocupation": "Fullstack Engineer in Myndgoals",
5959
"description": "Working for Opus EHR a healthcare platform that tracks leads and manages patient data, enhancing client engagement and increasing admissions.",
60-
"logoFile": "MyndGoals-logo.ico"
60+
"logoFile": "MyndGoals-logo.webp"
6161
},
6262
{
6363
"date": "March 2022",

src/i18n/es.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"SEO_DESCRIPTION": "Portafolio personal de Carlos Jorge Rodríguez. Enseño mis proyectos más importantes de github. Mi principal meta con estos proyectos es divertirme programando y aprender nuevas tecnologías, buenas prácticas y tratar de llevar a cabo ideas creativas",
66
"INTRO_TITLE": "Hola, Soy",
77
"INTRO_TITLE_AFTER_BR1": "Carlos Jorge,",
8-
"INTRO_TITLE_AFTER_BR2": "Desarrollador Web!",
8+
"INTRO_TITLE_AFTER_BR2": "",
99
"INTRO_SUBTITLE": "Y este es mi portafolio!",
1010
"INTRO_DESCRIPTION": "Soy un científico de la computación graduado en la <b>Universidad de la Habana</b>. Actualmente trabajo como desarrollador <i>full-stack</i> creando aplicaciones de <b>.net</b> y <b>Vuejs</b>. En mis tiempos libres juego un poco con <b>Astro</b> y <b>Rust</b> ;)",
1111
"PROJECTS_TITLE": "Algunos proyectos",
@@ -57,7 +57,7 @@
5757
"date": "Actualmente...",
5858
"ocupation": "Desarrollador Fullstack en Myndgoals",
5959
"description": "Trabajo para Opus EHR una plataforma de atención médica que rastrea y maneja los datos de los paciente, mejoro el compromiso con el cliente y las admisiones.",
60-
"logoFile": "MyndGoals-logo.ico"
60+
"logoFile": "MyndGoals-logo.webp"
6161
},
6262
{
6363
"date": "Marzo del 2022",

src/layouts/Layout.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ const { SEO_LANG, SEO_LOCALE, SEO_TITLE, SEO_DESCRIPTION } = Astro.props;
4747
as="font"
4848
href="https://fonts.googleapis.com/css?family=Lato:400italic%27&display=swap"
4949
/>
50+
<link rel="sitemap" href="/sitemap-index.xml" />
5051
<meta name="generator" content={Astro.generator} />
5152
<title>{SEO_TITLE}</title>
5253
</head>
53-
<script
54+
<link rel="stylesheet"
5455
is:inline
5556
src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.8.0/flowbite.min.js"
56-
></script>
57+
/>
5758
<body>
5859
<ViewTransitions />
5960
<slot />

0 commit comments

Comments
 (0)