2
2
import GithubIcon from ' @components/icons/github-icon.astro' ;
3
3
import LinkedinIcon from ' @components/icons/linkedin-icon.astro' ;
4
4
import { GITHUB_URL , LINKEDIN_URL } from ' @constants/urls.ts' ;
5
+ import { getI18n } from ' @i18n/index' ;
6
+
7
+ const { currentLocale } = Astro ;
8
+
9
+ const i18n = getI18n ({ currentLocale });
5
10
---
6
11
7
12
<section class =" home" id =" home" >
8
13
<div class =" main-title" >
9
- <h1 class =" title" >Hello there!<span >✌️</span ></h1 >
10
- <h2 class =" title" >I'm <span class =" subtitle-name" >Marco Cruz</span ></h2 >
11
- <span class =" title-job" >Frontend Developer</span >
14
+ <h1 class =" title" >{ i18n .HERO_SECTION .TITLE } <span >✌️</span ></h1 >
15
+ <h2 class =" title" >
16
+ { i18n .HERO_SECTION .SUBTITLE_NORMAL }
17
+ <span class =" subtitle-name" >
18
+ { i18n .HERO_SECTION .SUBTITLE_EMPHASIS }
19
+ </span >
20
+ </h2 >
21
+ <span class =" title-job" >
22
+ { i18n .HERO_SECTION .JOB_TITLE }
23
+ </span >
12
24
<div class =" bottom" >
13
25
<a
14
26
class =" btn"
15
27
href =" pdf/cv.pdf"
16
28
download =" cv - marco cruz.pdf"
17
- aria-label =" Download CV " >
18
- Download CV
29
+ aria-label ={ i18n . HERO_SECTION . CV . ARIA_LABEL } >
30
+ { i18n . HERO_SECTION . CV . BTN_TEXT }
19
31
</a >
20
32
<div class =" social" >
21
33
<a target =" _blank" href ={ GITHUB_URL } class =" icon" aria-label =" Github" >
@@ -27,9 +39,8 @@ import { GITHUB_URL, LINKEDIN_URL } from '@constants/urls.ts';
27
39
</div >
28
40
</div >
29
41
</div >
30
- <figure >
31
- <img src =" me.webp" alt =" profile-image" class =" profile" >
32
- </figure >
42
+
43
+ <img src =" me.webp" alt ={ i18n .HERO_SECTION .IMAGE .ALT } class =" profile" >
33
44
</section >
34
45
35
46
<style >
@@ -126,32 +137,25 @@ import { GITHUB_URL, LINKEDIN_URL } from '@constants/urls.ts';
126
137
color: var(--font-color-2);
127
138
}
128
139
129
- .home figure {
130
- display: inline-block;
131
- box-sizing: border-box;
132
- width: 30rem;
133
- height: 28rem;
134
- }
135
-
136
140
img {
137
141
object-fit: cover;
138
- width: 100% ;
139
- height: 100% ;
142
+ width: 30rem ;
143
+ height: 28rem ;
140
144
border-radius: 63% 37% 48% 52% / 60% 57% 43% 40%;
141
145
border: 3px solid var(--primary-color);
142
146
box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
143
147
background: #3b82f6;
144
148
}
145
149
146
150
@media (max-width: 1024px) {
147
- .home figure {
151
+ img.profile {
148
152
width: 28rem;
149
153
height: 23rem;
150
154
}
151
155
}
152
156
153
157
@media (max-width: 900px) {
154
- .home figure {
158
+ img.profile {
155
159
width: 28rem;
156
160
height: 23rem;
157
161
}
@@ -174,7 +178,8 @@ import { GITHUB_URL, LINKEDIN_URL } from '@constants/urls.ts';
174
178
span.title-job {
175
179
font-size: 28px;
176
180
}
177
- .home figure {
181
+
182
+ img.profile {
178
183
width: 18rem;
179
184
height: 18rem;
180
185
}
@@ -191,7 +196,8 @@ import { GITHUB_URL, LINKEDIN_URL } from '@constants/urls.ts';
191
196
span.title-job {
192
197
font-size: 28px;
193
198
}
194
- .home figure {
199
+
200
+ img.profile {
195
201
width: 14rem;
196
202
height: 14rem;
197
203
}
0 commit comments