Skip to content

Commit 2ce9ba4

Browse files
Add "intro-text" to Hero section
1 parent 92f1ef4 commit 2ce9ba4

File tree

5 files changed

+107
-9
lines changed

5 files changed

+107
-9
lines changed

src/index.html

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,18 @@
205205
</nav>
206206
</header>
207207
<main class="main">
208-
<section id="home" class="section container gap-8 mt-12">
209-
<div class="home-info flex flex-col w-full max-w-[38rem] gap-3">
210-
<h1 class="title min-h-[3.7em] md:min-h-[2.5em]">
211-
Hi, My name is Amir. I'm a Web developer
212-
</h1>
208+
<section id="home" class="section container gap-8 sm:mt-12">
209+
<div class="home-info flex flex-col w-full max-w-[38rem] gap-4">
210+
<div class="flex flex-col justify-end min-h-36 m:min-h-0">
211+
<h1 class="title h-full">
212+
Hi, My name is Amir. I'm a Web developer
213+
</h1>
214+
</div>
215+
<p class="intro-text text-justify opacity-70">
216+
Building modern, responsive websites with clean code and
217+
user-friendly design. Passionate about JavaScript, React, and the
218+
endless possibilities of the web.
219+
</p>
213220
<div class="buttons-wrapper flex flex-row flex-wrap gap-4">
214221
<a href="#about"><button class="button">Who am I?!</button></a>
215222
<a href="#touch"><button class="button">Connect</button></a>
@@ -275,6 +282,7 @@ <h1 class="title min-h-[3.7em] md:min-h-[2.5em]">
275282
<div>146</div>
276283
<div>147</div>
277284
<div>148</div>
285+
<div>149</div>
278286
</div>
279287
<pre
280288
class="code-content"
@@ -284,6 +292,10 @@ <h1 class="title min-h-[3.7em] md:min-h-[2.5em]">
284292
&lt;<span class="tag">h1</span> <span class="attr">class</span>=<span class="string">"title min-h-28 md:min-h-36"</span>&gt;
285293
Hi, My name is Amir. I'm a <span id="role-code-text"></span>
286294
&lt;/<span class="tag">h1</span>&gt;
295+
&lt;<span class="tag">p</span> <span class="attr">class</span>=<span class="string">"intro-text text-justify opacity-70"</span>&gt;
296+
Building modern, responsive websites with clean code and user-friendly design.
297+
Passionate about JavaScript, React, and theendless possibilities of the web.
298+
&lt;/<span class="tag">p</span>&gt;
287299
&lt;<span class="tag">div</span> <span class="attr">class</span>=<span class="string">"buttons-wrapper flex flex-row flex-wrap gap-4"</span>&gt;
288300
&lt;<span class="tag">button</span> <span class="attr">class</span>=<span class="string">"button"</span>&gt;&lt;<span class="tag">a</span> <span class="attr">href</span>=<span class="string">"#about"</span>&gt;Who am I?!&lt;/<span class="tag">a</span>&gt;&lt;/<span class="tag">button</span>&gt;
289301
&lt;<span class="tag">button</span> <span class="attr">class</span>=<span class="string">"button"</span>&gt;&lt;<span class="tag">a</span> <span class="attr">href</span>=<span class="string">"#touch"</span>&gt;Connect&lt;/<span class="tag">a</span>&gt;&lt;/<span class="tag">button</span>&gt;

src/input.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
@apply font-mont-bold;
8484
}
8585

86-
/* Scroll-bar */
86+
/* Main scroll-bar */
8787
body::-webkit-scrollbar {
8888
@apply w-3;
8989
}

src/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ document.addEventListener('DOMContentLoaded', function () {
105105
const initialText = titleElement.textContent.trim();
106106
const rolePart = initialText.split("I'm a ")[1] || "Front-end developer";
107107

108-
const roles = [rolePart, "Graphic Designer"];
108+
const roles = [rolePart, "Graphic Designer", "UI/UX Designer"];
109109

110110
// Create span for title
111111
const titleSpan = document.createElement('span');

src/output.css

Lines changed: 87 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ b {
632632
font-family: montserrat-bold, sans-sarif;
633633
}
634634

635-
/* Scroll-bar */
635+
/* Main scroll-bar */
636636

637637
body::-webkit-scrollbar {
638638
width: 0.75rem;
@@ -1757,6 +1757,30 @@ body::-webkit-scrollbar-thumb {
17571757
height: 100%;
17581758
}
17591759

1760+
.h-28 {
1761+
height: 7rem;
1762+
}
1763+
1764+
.h-\[2em\] {
1765+
height: 2em;
1766+
}
1767+
1768+
.h-\[2\.5em\] {
1769+
height: 2.5em;
1770+
}
1771+
1772+
.max-h-\[3\.7em\] {
1773+
max-height: 3.7em;
1774+
}
1775+
1776+
.max-h-\[2\.5em\] {
1777+
max-height: 2.5em;
1778+
}
1779+
1780+
.max-h-36 {
1781+
max-height: 9rem;
1782+
}
1783+
17601784
.min-h-28 {
17611785
min-height: 7rem;
17621786
}
@@ -1765,6 +1789,30 @@ body::-webkit-scrollbar-thumb {
17651789
min-height: 3.7em;
17661790
}
17671791

1792+
.min-h-24 {
1793+
min-height: 6rem;
1794+
}
1795+
1796+
.min-h-10 {
1797+
min-height: 2.5rem;
1798+
}
1799+
1800+
.min-h-40 {
1801+
min-height: 10rem;
1802+
}
1803+
1804+
.min-h-36 {
1805+
min-height: 9rem;
1806+
}
1807+
1808+
.min-h-\[3\.7rem\] {
1809+
min-height: 3.7rem;
1810+
}
1811+
1812+
.min-h-3 {
1813+
min-height: 0.75rem;
1814+
}
1815+
17681816
.w-12 {
17691817
width: 3rem;
17701818
}
@@ -1875,6 +1923,10 @@ body::-webkit-scrollbar-thumb {
18751923
align-items: center;
18761924
}
18771925

1926+
.justify-end {
1927+
justify-content: flex-end;
1928+
}
1929+
18781930
.justify-center {
18791931
justify-content: center;
18801932
}
@@ -1903,6 +1955,10 @@ body::-webkit-scrollbar-thumb {
19031955
gap: 2rem;
19041956
}
19051957

1958+
.gap-5 {
1959+
gap: 1.25rem;
1960+
}
1961+
19061962
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
19071963
--tw-space-x-reverse: 0;
19081964
margin-right: calc(0.5rem * var(--tw-space-x-reverse));
@@ -2142,6 +2198,18 @@ body::-webkit-scrollbar-thumb {
21422198
opacity: 1;
21432199
}
21442200

2201+
.opacity-80 {
2202+
opacity: 0.8;
2203+
}
2204+
2205+
.opacity-60 {
2206+
opacity: 0.6;
2207+
}
2208+
2209+
.opacity-70 {
2210+
opacity: 0.7;
2211+
}
2212+
21452213
.shadow-btn {
21462214
--tw-shadow: -5px 4px 0px 0px #241c15;
21472215
--tw-shadow-colored: -5px 4px 0px 0px var(--tw-shadow-color);
@@ -2178,6 +2246,12 @@ body::-webkit-scrollbar-thumb {
21782246
transition-duration: 150ms;
21792247
}
21802248

2249+
.transition-all {
2250+
transition-property: all;
2251+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
2252+
transition-duration: 150ms;
2253+
}
2254+
21812255
.duration-1000 {
21822256
transition-duration: 1000ms;
21832257
}
@@ -2286,6 +2360,14 @@ body::-webkit-scrollbar-thumb {
22862360
}
22872361

22882362
@media (min-width: 640px) {
2363+
.sm\:mt-12 {
2364+
margin-top: 3rem;
2365+
}
2366+
2367+
.sm\:min-h-0 {
2368+
min-height: 0px;
2369+
}
2370+
22892371
.sm\:grid-cols-2 {
22902372
grid-template-columns: repeat(2, minmax(0, 1fr));
22912373
}
@@ -2304,6 +2386,10 @@ body::-webkit-scrollbar-thumb {
23042386
min-height: 2.5em;
23052387
}
23062388

2389+
.md\:min-h-0 {
2390+
min-height: 0px;
2391+
}
2392+
23072393
.md\:w-44 {
23082394
width: 11rem;
23092395
}

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
priBlack: '#0f172a',
1515
priGray: '#241c15',
1616

17-
// Github section's color
17+
// Github section color
1818
gitBlack: '#0d1116',
1919
gitWhite: '#fff',
2020
gitGray: '#3d444d',

0 commit comments

Comments
 (0)