Skip to content

Commit 9dfcfb0

Browse files
committed
Correcion boton de hoja de vida
1 parent 58b50f7 commit 9dfcfb0

File tree

3 files changed

+63
-63
lines changed

3 files changed

+63
-63
lines changed
File renamed without changes.

public/files/Stoman-Resume.pdf

-476 KB
Binary file not shown.

src/components/shared/AppBanner.vue

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,74 @@
11
<script>
22
import feather from 'feather-icons';
3-
43
export default {
5-
name: 'Home',
6-
data: () => {
7-
return {
8-
theme: '',
9-
};
10-
},
11-
created() {
12-
this.theme = localStorage.getItem('theme') || 'light';
13-
},
14-
mounted() {
15-
feather.replace();
16-
this.theme = localStorage.getItem('theme') || 'light';
17-
},
18-
updated() {
19-
feather.replace();
20-
},
21-
methods: {
22-
descargarHojaDeVida() {
23-
const hojaDeVidaURL = 'file/Miguel-Resume.pdf';
24-
this.descargarArchivo(hojaDeVidaURL, 'Miguel-Resume.pdf');
25-
},
26-
27-
descargarArchivo(url, nombre) {
28-
const link = document.createElement('a');
29-
link.href = url;
30-
link.download = nombre;
31-
32-
document.body.appendChild(link);
33-
link.click();
34-
35-
document.body.removeChild(link);
36-
},
37-
},
4+
name: 'Home',
5+
data: () => {
6+
return {
7+
theme: '',
8+
};
9+
},
10+
created() {
11+
this.theme = localStorage.getItem('theme') || 'light';
12+
},
13+
mounted() {
14+
feather.replace();
15+
this.theme = localStorage.getItem('theme') || 'light';
16+
},
17+
updated() {
18+
feather.replace();
19+
},
3820
};
3921
</script>
4022

4123
<template>
42-
<section class="flex flex-col sm:justify-between items-center sm:flex-row mt-12 sm:mt-10">
43-
<!-- Banner left contents -->
44-
<div class="w-full md:w-1/3 text-left">
45-
<!-- ... (código anterior) ... -->
46-
<div class="flex justify-center sm:block">
47-
<a
48-
@click.prevent="descargarHojaDeVida"
49-
download="Miguel-Resume.pdf"
50-
href="file/Miguel-Resume.pdf"
51-
class="flex justify-center items-center w-36 sm:w-48 mt-12 mb-6 sm:mb-0 text-lg border border-indigo-200 dark:border-ternary-dark py-2.5 sm:py-3 shadow-lg rounded-lg bg-indigo-50 focus:ring-1 focus:ring-indigo-900 hover:bg-indigo-500 text-gray-500 hover:text-white duration-500"
52-
aria-label="Download Resume"
53-
>
54-
<i
55-
data-feather="arrow-down-circle"
56-
class="ml-0 sm:ml-1 mr-2 sm:mr-3 w-5 sm:w-6 duration-100"
57-
></i>
58-
<span
59-
class="text-sm sm:text-lg font-general-medium duration-100"
60-
>Descargar CV</span
61-
></a
62-
>
63-
</div>
64-
</div>
24+
<section
25+
class="flex flex-col sm:justify-between items-center sm:flex-row mt-12 sm:mt-10"
26+
>
27+
<!-- Banner left contents -->
28+
<div class="w-full md:w-1/3 text-left">
29+
<h1
30+
class="font-general-semibold text-3xl md:text-3xl xl:text-4xl text-center sm:text-left text-ternary-dark dark:text-primary-light uppercase"
31+
>
32+
Hola, soy Miguel Ramos
33+
</h1>
34+
<p
35+
class="font-general-medium mt-2 text-lg sm:text-xl xl:text-2xl text-center sm:text-left leading-none text-gray-400"
36+
>
37+
Un desarrollador full-stack y entusiasta del diseño
38+
</p>
39+
<div class="flex justify-center sm:block">
40+
<a
41+
download="Miguel-Resume.pdf"
42+
href="/files/Miguel-Resume.pdf"
43+
class="flex justify-center items-center w-36 sm:w-48 mt-12 mb-6 sm:mb-0 text-lg border border-indigo-200 dark:border-ternary-dark py-2.5 sm:py-3 shadow-lg rounded-lg bg-indigo-50 focus:ring-1 focus:ring-indigo-900 hover:bg-indigo-500 text-gray-500 hover:text-white duration-500"
44+
aria-label="Download Resume"
45+
>
46+
<i
47+
data-feather="arrow-down-circle"
48+
class="ml-0 sm:ml-1 mr-2 sm:mr-3 w-5 sm:w-6 duration-100"
49+
></i>
50+
<span
51+
class="text-sm sm:text-lg font-general-medium duration-100"
52+
>Descargar CV</span
53+
></a
54+
>
55+
</div>
56+
</div>
6557

66-
<!-- Banner right illustration -->
67-
<div class="w-full md:w-2/3 text-right float-right">
68-
<img v-if="theme === 'light'" src="@/assets/images/developer.svg" alt="Developer" />
69-
<img v-else src="@/assets/images/developer-dark.svg" alt="Developer" />
70-
</div>
71-
</section>
58+
<!-- Banner right illustration -->
59+
<div class="w-full md:w-2/3 text-right float-right">
60+
<img
61+
v-if="theme === 'light'"
62+
src="@/assets/images/developer.svg"
63+
alt="Developer"
64+
/>
65+
<img
66+
v-else
67+
src="@/assets/images/developer-dark.svg"
68+
alt="Developer"
69+
/>
70+
</div>
71+
</section>
7272
</template>
7373

7474
<style scoped>

0 commit comments

Comments
 (0)