Skip to content

Commit d1c0911

Browse files
author
huycozy
committed
Refactor homepage layout by adding featured badges section and removing outdated IndieHunt badge. Update styles for improved layout and responsiveness.
1 parent 940c1ed commit d1c0911

2 files changed

Lines changed: 56 additions & 47 deletions

File tree

assets/css/style.css

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ header {
170170
min-height: 100vh;
171171
display: flex;
172172
align-items: center;
173-
padding-top: var(--header-height);
173+
padding: var(--header-height) 0 4rem;
174174
text-align: center;
175175
background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
176176
}
@@ -192,6 +192,7 @@ header {
192192
justify-content: center;
193193
flex-wrap: wrap;
194194
align-items: center;
195+
margin-bottom: 0.25rem;
195196
}
196197

197198
/* Store Badges */
@@ -240,25 +241,42 @@ header {
240241
flex-shrink: 0;
241242
}
242243

243-
.indiehunt-badge {
244+
.featured-badges {
245+
margin-top: 4.5rem;
246+
width: 100%;
247+
display: flex;
248+
justify-content: center;
249+
}
250+
251+
.featured-badges-grid {
244252
display: flex;
245253
justify-content: center;
246-
padding: 2rem 1.5rem 0;
254+
align-items: center;
255+
gap: 1.25rem;
256+
flex-wrap: wrap;
257+
width: fit-content;
258+
max-width: 100%;
259+
padding: 1.25rem 1.5rem;
260+
border: 1px solid rgba(255, 255, 255, 0.08);
261+
border-radius: 20px;
262+
background: rgba(255, 255, 255, 0.03);
263+
backdrop-filter: blur(10px);
247264
}
248265

249-
.indiehunt-badge a {
266+
.featured-badges-grid a {
250267
display: inline-flex;
251268
transition: transform 0.2s, opacity 0.2s;
252269
}
253270

254-
.indiehunt-badge a:hover {
271+
.featured-badges-grid a:hover {
255272
transform: translateY(-2px);
256273
opacity: 0.9;
257274
}
258275

259-
.indiehunt-badge img {
276+
.featured-badges-grid img {
260277
display: block;
261-
max-width: 100%;
278+
width: auto;
279+
max-width: min(265px, 100%);
262280
height: auto;
263281
}
264282

@@ -549,4 +567,20 @@ footer {
549567
width: min(100%, 320px);
550568
min-height: 56px;
551569
}
570+
571+
.hero {
572+
min-height: auto;
573+
align-items: flex-start;
574+
padding: calc(var(--header-height) + 2rem) 0 3rem;
575+
}
576+
577+
.featured-badges {
578+
margin-top: 2.5rem;
579+
}
580+
581+
.featured-badges-grid {
582+
flex-direction: column;
583+
gap: 1rem;
584+
padding: 1.25rem 1rem;
585+
}
552586
}

index.html

Lines changed: 15 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,24 @@ <h1>Fast, private file sharing on your local network.</h1>
7878
<img src="assets/images/Mac_App_Store_Badge.png" alt="Download on Mac App Store">
7979
</a>
8080
</div>
81+
<div class="featured-badges" aria-label="Launch badges">
82+
<div class="featured-badges-grid">
83+
<a href="https://www.producthunt.com/products/netshare-share-file-in-local?embed=true&amp;utm_source=badge-featured&amp;utm_medium=badge&amp;utm_campaign=badge-netshare-share-file-in-local"
84+
target="_blank" rel="noopener noreferrer">
85+
<img alt="NetShare-share file in local - Private and no internet needed | Product Hunt"
86+
width="250" height="54"
87+
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1157930&amp;theme=light&amp;t=1780107635738">
88+
</a>
89+
<a href="https://indiehunt.io/project/netshare-fast-private-local-file-sharing" target="_blank"
90+
rel="noopener">
91+
<img src="https://indiehunt.io/badges/indiehunt-badge-dark.svg" alt="Featured on IndieHunt"
92+
width="265" height="58">
93+
</a>
94+
</div>
95+
</div>
8196
</div>
8297
</section>
8398

84-
<div class="indiehunt-badge">
85-
<a href="https://indiehunt.io/project/netshare-fast-private-local-file-sharing" target="_blank"
86-
rel="noopener">
87-
<img src="https://indiehunt.io/badges/indiehunt-badge-dark.svg" alt="Featured on IndieHunt"
88-
width="265" height="58">
89-
</a>
90-
</div>
91-
9299
<!-- Value Propositions -->
93100
<section id="features">
94101
<div class="container">
@@ -183,38 +190,6 @@ <h3>Dev teams & studios</h3>
183190
</div>
184191
</section>
185192

186-
<!-- Architecture -->
187-
<section class="architecture">
188-
<div class="container arch-content">
189-
<h2>Designed for local-first today. <br>Ready for more tomorrow.</h2>
190-
<p>Netshare is built with a local-first architecture that priorities simplicity, performance, and
191-
privacy.</p>
192-
<p>For advanced use cases, Netshare can be extended to support self-hosted deployments and team
193-
environments.</p>
194-
</div>
195-
</section>
196-
197-
<!-- Closing CTA -->
198-
<section style="text-align: center;">
199-
<div class="container">
200-
<h2>Your network. Your data. Your control.</h2>
201-
<p style="margin: 1rem auto 2rem; max-width: 600px;">
202-
Download Netshare and start sharing files instantly — without relying on the cloud.
203-
</p>
204-
<div class="hero-actions" style="justify-content: center;">
205-
<a href="#" class="store-badge link-android" target="_blank">
206-
<img src="assets/images/GooglePlay_Badge.png" alt="Get it on Google Play">
207-
</a>
208-
<a href="#" class="store-badge link-ios" target="_blank">
209-
<img src="assets/images/App_Store_Badge.png" alt="Download on the App Store">
210-
</a>
211-
<a href="#" class="store-badge link-macos" target="_blank">
212-
<img src="assets/images/Mac_App_Store_Badge.png" alt="Download on Mac App Store">
213-
</a>
214-
</div>
215-
</div>
216-
</section>
217-
218193
<div class="coffee-support" style="text-align: center; padding: 2rem 0; color: #a1a1aa;">
219194
💙 If you liked this app, consider <a href="https://buymeacoffee.com/huynguyennovem" target="_blank"
220195
rel="noopener" style="color: #007bff; text-decoration: underline;">buying me a coffee</a>

0 commit comments

Comments
 (0)