Skip to content

Commit 292546f

Browse files
author
huycozy
committed
Refactor code structure for improved readability and maintainability
1 parent 2124979 commit 292546f

4 files changed

Lines changed: 36 additions & 1 deletion

File tree

assets/css/style.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,29 @@ header {
180180
margin: 0 auto;
181181
}
182182

183+
.hero-title-row {
184+
display: flex;
185+
align-items: center;
186+
justify-content: center;
187+
gap: 1rem;
188+
margin: 0 auto;
189+
max-width: 100%;
190+
}
191+
192+
.hero-title-row h1 {
193+
margin: 0;
194+
min-width: 0;
195+
}
196+
197+
.hero-app-icon {
198+
width: clamp(64px, 8vw, 88px);
199+
height: clamp(64px, 8vw, 88px);
200+
border-radius: 22%;
201+
flex-shrink: 0;
202+
object-fit: cover;
203+
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
204+
}
205+
183206
.hero-eyebrow {
184207
display: inline-flex;
185208
align-items: center;
@@ -702,6 +725,15 @@ footer {
702725
padding: calc(var(--header-height) + 2rem) 0 3rem;
703726
}
704727

728+
.hero-title-row {
729+
gap: 0.75rem;
730+
}
731+
732+
.hero-app-icon {
733+
width: 56px;
734+
height: 56px;
735+
}
736+
705737
.featured-badges {
706738
margin-top: 2.5rem;
707739
}

assets/images/app-icon.jpg

78.4 KB
Loading

assets/images/appicon.ico

357 KB
Binary file not shown.

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@
174174
<section class="hero">
175175
<div class="container hero-content">
176176
<p class="hero-eyebrow">Safer way to share files on the same network</p>
177-
<h1>A safer alternative to shared folders and SMB for local file sharing.</h1>
177+
<div class="hero-title-row">
178+
<img src="assets/images/app-icon.jpg" alt="Netshare app icon" class="hero-app-icon">
179+
<h1>A safer alternative to shared folders and SMB for local file sharing.</h1>
180+
</div>
178181
<p class="hero-subtitle">
179182
Netshare lets you transfer files between computers, phones, and tablets on the same network
180183
without mounting shared folders, exposing cloud links, or relying on the internet.

0 commit comments

Comments
 (0)