Skip to content

Commit adc5b20

Browse files
author
Fernando Tona
committed
Improve responsiveness and alignments. Overall cleanup and organization.
1 parent 5060bac commit adc5b20

2 files changed

Lines changed: 73 additions & 29 deletions

File tree

css/style.css

Lines changed: 70 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/* ===================================
2+
CSS STRUCTURE:
3+
1. Global Styles
4+
2. Layout Components
5+
3. UI Components
6+
4. Media Queries (Responsive)
7+
=================================== */
8+
9+
/* ===================================
10+
1. GLOBAL STYLES
11+
=================================== */
12+
13+
/* Reset and base styles */
14+
a {
15+
text-decoration: none;
16+
}
17+
18+
/* ===================================
19+
2. LAYOUT COMPONENTS
20+
=================================== */
21+
22+
/* Background and animations */
123
.gradient-bg {
224
background: linear-gradient(300deg, #070F2B, #3572EF, #3ABEF9);
325
background-size: 180% 180%;
@@ -18,31 +40,35 @@
1840
}
1941
}
2042

43+
/* Main section layout */
2144
#main {
2245
min-height: 100vh;
2346
display: flex;
2447
align-items: center;
2548
}
2649

27-
a {
28-
text-decoration: none;
29-
}
50+
/* ===================================
51+
3. UI COMPONENTS
52+
=================================== */
3053

54+
/* Button icons */
3155
.btn-icon {
3256
width: 20px;
3357
height: 20px;
3458
margin-right: 8px;
3559
filter: brightness(0) invert(1);
3660
}
3761

38-
/* Styles for LinkedIn button */
62+
/* LinkedIn button */
3963
.btn-linkedin {
4064
background-color: #2856C7;
4165
color: white;
4266
border: 2px solid #2856C7;
4367
display: flex;
4468
align-items: center;
4569
justify-content: center;
70+
min-width: 130px;
71+
width: 130px;
4672
}
4773

4874
.btn-linkedin:hover {
@@ -62,14 +88,16 @@ a {
6288
filter: brightness(0) invert(0);
6389
}
6490

65-
/* Styles for GitHub button */
91+
/* GitHub button */
6692
.btn-github-outline {
6793
background-color: transparent;
6894
color: white;
6995
border: 2px solid white;
7096
display: flex;
7197
align-items: center;
7298
justify-content: center;
99+
min-width: 130px;
100+
width: 130px;
73101
}
74102

75103
.btn-github-outline:hover {
@@ -85,12 +113,48 @@ a {
85113
border-color: #070F2B;
86114
}
87115

88-
89116
.btn-github-outline:hover .btn-icon {
90117
filter: brightness(0) invert(0);
91118
}
92119

93120
.btn-github-outline:focus .btn-icon,
94121
.btn-github-outline:active .btn-icon {
95122
filter: brightness(0) invert(1);
123+
}
124+
125+
/* ===================================
126+
4. MEDIA QUERIES (RESPONSIVE)
127+
=================================== */
128+
129+
/* Tablet and mobile (below 992px) */
130+
@media (max-width: 991.98px) {
131+
.col-10.col-sm-8.col-lg-6 {
132+
display: flex;
133+
justify-content: center;
134+
margin: 0 auto;
135+
}
136+
137+
.col-10.col-sm-8.col-lg-6 img {
138+
margin: 0 auto;
139+
display: block;
140+
}
141+
142+
.col-lg-6 {
143+
text-align: center;
144+
}
145+
146+
.d-grid.gap-2.d-md-flex {
147+
justify-content: center !important;
148+
}
149+
}
150+
151+
/* Small mobile (below 576px) */
152+
@media (max-width: 575.98px) {
153+
.container {
154+
text-align: center;
155+
}
156+
157+
.btn {
158+
margin: 0.25rem !important;
159+
}
96160
}

index.html

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
<div class="container col-xxl-8 px-4 p-5">
1717
<div class="row flex-lg-row-reverse align-items-center g-5 py-5">
1818
<div class="col-10 col-sm-8 col-lg-6">
19-
<img src="./assets/images/fernando-tona-dev-pic.jpg" class="d-block mx-lg-auto img-fluid"
19+
<img src="./assets/images/fernando-tona-dev-pic.jpg" class="d-block mx-auto img-fluid"
2020
alt="Fernando Tona picture" style="max-height: 450px; border-radius: 2%;" loading="lazy">
2121
</div>
2222
<div class="col-lg-6">
2323
<h1 class="display-5 fw-bold lh-1 mb-3" style="color: #070F2B;">Fernando Tona</h1>
24-
<p class="lead" style="color:white">Full Stack Developer | C#/.NET · React · TypeScript · Azure |
25-
Problem-Solver with a Musician’s Discipline</p>
24+
<p class="lead" style="color:white">Software Developer | .NET/C# | Azure</p>
25+
<p class="lead" style="color:white">Problem-Solver with a Musician’s Discipline</p>
2626
<div class="d-grid gap-2 d-md-flex justify-content-md-start">
2727
<a href="https://linkedin.com/in/fernandotona" target="_blank" rel="noopener noreferrer">
2828
<button type="button" class="btn btn-linkedin btn-lg px-4 me-md-2">
@@ -41,26 +41,6 @@ <h1 class="display-5 fw-bold lh-1 mb-3" style="color: #070F2B;">Fernando Tona</h
4141

4242
</section>
4343

44-
45-
<section id="features">
46-
47-
</section>
48-
49-
50-
<section id="testimonial">
51-
52-
</section>
53-
54-
55-
<section id="pricing">
56-
57-
</section>
58-
59-
60-
<section id="footer">
61-
62-
</section>
63-
6444
</body>
6545

6646
</html>

0 commit comments

Comments
 (0)