Skip to content

Commit d6e1677

Browse files
committed
style: Fix styling in some components on the home page.
1 parent 964407e commit d6e1677

6 files changed

Lines changed: 49 additions & 78 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<br />
44

55
<div align="center">
6-
<img src="static/logo.png" />
6+
<img src="static/icon.png" height="60" />
77
</div>
88

99
<br />

src/docs/getting-started/introduction.svx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authorUrl: https://github.com/polinema-ui
77
lastUpdated: 20/8/2026
88
---
99

10-
## Siapa Kitaaaaaaaaaaaaa ?
10+
## Siapa Kitaaaaaaaaaaaaa?
1111

1212
Polinema UI adalah kumpulan komponen UI open-source yang gabungin kesederhanaan Bootstrap 5 sama kekuatan utility class-nya Tailwind CSS v4. Terinspirasi dari model komponen shadcn di mana lo punya kepemilikan penuh atas kode, bukan cuma nempel dependency NPM yang kaku Polinema UI ngasih developer kontrol 100% buat kustomisasi desain, cocok banget buat portal akademik, admin dashboard, sampe platform enterprise.
1313

src/routes/(app)/(home)/components/cta.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import { Github01Icon } from "@hugeicons/core-free-icons";
33
import { HugeiconsIcon } from "@hugeicons/svelte";
44
import { Button } from "$lib/components/button";
5-
import { ROUTES } from "$lib/constants/routes";
65
</script>
76

87
<section class="relative w-full scroll-mt-28 overflow-hidden bg-blue-600 px-6 py-20 sm:py-24">
@@ -17,12 +16,13 @@
1716
>
1817
Zaman sekarang masih nulis component dari nol?
1918
</h2>
20-
<p class="max-w-xl font-sans text-base leading-relaxed font-normal text-neutral-600 md:text-[17px]">
19+
<p class="max-w-xl font-sans text-base leading-relaxed font-medium text-neutral-600 md:text-[17px]">
2120
Copy perintahnya, paste di terminal, langsung pakai. Nggak ada setup ribet, nggak ada konfigurasi panjang.
2221
</p>
2322
<div class="mt-2 flex flex-col items-center gap-3 sm:flex-row sm:gap-4">
2423
<Button
25-
href={ROUTES.DOCS}
24+
href="https://github.com/polinema-ui/polinema-ui"
25+
target="_blank"
2626
class="flex cursor-pointer items-center gap-2 rounded-lg border-none bg-blue-600 px-6 py-3 text-sm font-medium text-white shadow-[0_1px_0_rgba(255,255,255,0.2)_inset,0_8px_20px_rgba(37,99,235,0.35)] transition-all duration-200 hover:bg-blue-700 hover:shadow-[0_1px_0_rgba(255,255,255,0.2)_inset,0_12px_24px_rgba(37,99,235,0.4)] active:scale-95 sm:px-7 sm:py-3.5 sm:text-[15px]"
2727
>
2828
<span>Star on GitHub</span>

src/routes/(app)/(home)/components/hero.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
</script>
1111

1212
<section
13-
class="relative flex min-h-screen w-full flex-col items-center justify-center gap-8 overflow-hidden bg-[linear-gradient(180deg,rgba(253,253,252,1)_0%,rgba(244,246,242,1)_100%)] px-4 pt-28 pb-12 sm:px-6 sm:pt-36 sm:pb-16 md:pt-40"
13+
class="relative flex w-full flex-col items-center justify-center gap-8 overflow-hidden bg-[linear-gradient(180deg,rgba(253,253,252,1)_0%,rgba(244,246,242,1)_100%)] px-4 pt-32 pb-20 sm:px-6 sm:pt-40 sm:pb-28"
1414
>
1515
<figure
1616
aria-hidden="true"
17-
class="pointer-events-none absolute inset-x-0 bottom-0 z-0 h-96 w-full mask-[linear-gradient(180deg,transparent_0%,black_15%,black_65%,transparent_98%)] bg-cover bg-position-[center_top] opacity-80 sm:h-120 sm:opacity-90 md:h-135 lg:h-145"
17+
class="pointer-events-none absolute inset-0 top-20 z-0 h-full w-full mask-[linear-gradient(180deg,transparent_0%,black_10%,black_80%,transparent_100%)] bg-cover bg-position-[center_bottom] opacity-80 sm:opacity-90"
1818
style="background-image: url('/elon-musk-migren.webp')"
1919
></figure>
2020
<div
@@ -30,7 +30,7 @@
3030
</span>
3131
</h1>
3232
<p
33-
class="max-w-md font-sans text-sm leading-relaxed font-normal text-balance text-neutral-900 sm:max-w-lg sm:text-base md:text-lg md:text-white"
33+
class="max-w-md font-sans text-sm leading-relaxed font-medium text-balance text-white sm:max-w-lg sm:text-base md:text-lg"
3434
>
3535
Nggak perlu bikin semuanya dari nol. Cari component yang kamu butuhin, lihat contohnya, dan tinggal pakai sesuai
3636
kebutuhan 😉

src/routes/(app)/+layout.svelte

Lines changed: 40 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<script lang="ts">
22
import {
3+
ArrowRight01Icon,
4+
ArrowUpRight01Icon,
35
BootstrapIcon,
46
Cancel01Icon,
57
ChevronDownIcon,
68
GithubIcon,
9+
Linkedin01Icon,
710
Menu01Icon,
811
TailwindcssIcon,
9-
ArrowRight01Icon,
10-
Linkedin01Icon,
11-
ArrowUpRight01Icon,
1212
} from "@hugeicons/core-free-icons";
1313
import { HugeiconsIcon } from "@hugeicons/svelte";
1414
import type { Snippet } from "svelte";
@@ -41,7 +41,7 @@
4141
4242
const footerLinks = ["Home", "Features", "About", "FAQ", "Docs"];
4343
44-
const socials = [
44+
const socials: Array<{ label: string; icon: typeof GithubIcon | typeof Linkedin01Icon; href: string }> = [
4545
{ label: "Github", icon: GithubIcon, href: "https://github.com/polinema-ui/website" },
4646
{ label: "LinkedIn", icon: Linkedin01Icon, href: "#" },
4747
];
@@ -50,7 +50,6 @@
5050
fetchGithubStars("polinema-ui/website").then((count) => (githubStars = count));
5151
5252
const onScroll = () => (scrolled = window.scrollY > 20);
53-
5453
window.addEventListener("scroll", onScroll, { passive: true });
5554
5655
return () => window.removeEventListener("scroll", onScroll);
@@ -66,12 +65,10 @@
6665
<a href={localizeHref("#home")} aria-label="Polinema UI home" class="flex shrink-0 items-center">
6766
<img src="/logo.png" alt="Polinema UI Logo" class="h-4.5 w-auto object-contain sm:h-5" />
6867
</a>
69-
7068
<nav aria-label="Primary navigation" class="hidden md:flex">
7169
<ul class="flex items-center gap-1">
7270
{#each MENUS as item (item.label)}
7371
{@const isActive = activeItem === item.label}
74-
7572
<li>
7673
<a
7774
href={localizeHref(item.href)}
@@ -87,7 +84,6 @@
8784
{/each}
8885
</ul>
8986
</nav>
90-
9187
<aside class="hidden items-center gap-1.5 sm:gap-2 md:flex">
9288
<Button
9389
href={localizeHref("https://github.com/polinema-ui/website")}
@@ -99,7 +95,6 @@
9995
<HugeiconsIcon icon={GithubIcon} size={14} color="#1a1a1a" />
10096
<span class="font-medium">{githubStars}</span>
10197
</Button>
102-
10398
<Root bind:open={dropdownOpen}>
10499
<Trigger
105100
class="flex h-8 cursor-pointer items-center gap-1.5 rounded-lg border border-gray-200/80 bg-white px-2.5 text-xs font-medium text-neutral-800 transition-all hover:bg-gray-100 active:scale-95 sm:h-9 sm:gap-2 sm:px-3 sm:text-[13px]"
@@ -111,12 +106,10 @@
111106
<HugeiconsIcon icon={BootstrapIcon} size={15} color="#7952b3" />
112107
<span class="hidden sm:inline">Bootstrap 5</span>
113108
{/if}
114-
115109
<span class="transition-transform duration-200 {dropdownOpen ? 'rotate-180' : ''}">
116110
<HugeiconsIcon icon={ChevronDownIcon} size={13} color="#1c1c1c" />
117111
</span>
118112
</Trigger>
119-
120113
<Content class="z-50 min-w-36 rounded-xl border border-neutral-200/80 bg-white p-1 shadow-xl">
121114
<Item
122115
onclick={() => (selectedFramework = "Tailwind 4")}
@@ -125,7 +118,6 @@
125118
<HugeiconsIcon icon={TailwindcssIcon} size={15} color="#06b6d4" />
126119
<span>Tailwind 4</span>
127120
</Item>
128-
129121
<Item
130122
onclick={() => (selectedFramework = "Bootstrap 5")}
131123
class="flex cursor-pointer items-center gap-2.5 rounded-lg px-2.5 py-2 text-xs font-medium text-neutral-800 transition-colors select-none hover:bg-[#f4f4f0]"
@@ -136,7 +128,6 @@
136128
</Content>
137129
</Root>
138130
</aside>
139-
140131
<button
141132
type="button"
142133
onclick={() => (mobileMenuOpen = !mobileMenuOpen)}
@@ -160,7 +151,6 @@
160151
<ul class="flex flex-col divide-y divide-neutral-100">
161152
{#each MENUS as item (item.label)}
162153
{@const isActive = activeItem === item.label}
163-
164154
<li>
165155
<a
166156
class="flex items-center justify-between py-4 text-lg font-semibold tracking-tight transition-colors {isActive
@@ -172,8 +162,7 @@
172162
mobileMenuOpen = false;
173163
}}
174164
>
175-
<span>{item.label}</span>
176-
165+
<h5>{item.label}</h5>
177166
{#if isActive}
178167
<span class="h-2 w-2 rounded-full bg-blue-600"></span>
179168
{/if}
@@ -182,8 +171,7 @@
182171
{/each}
183172
</ul>
184173
</nav>
185-
186-
<footer class="flex flex-col gap-3 border-t border-neutral-200/80 pt-5">
174+
<section class="flex flex-col gap-3 border-t border-neutral-200/80 pt-5">
187175
<Button
188176
href={localizeHref("https://github.com/polinema-ui/website")}
189177
target="_blank"
@@ -195,12 +183,10 @@
195183
<HugeiconsIcon icon={GithubIcon} size={18} color="#1a1a1a" />
196184
<span>GitHub Repository</span>
197185
</span>
198-
199186
<span class="rounded-lg bg-neutral-100 px-2 py-0.5 text-xs font-bold text-neutral-800">
200187
{githubStars} ★
201188
</span>
202189
</Button>
203-
204190
<div class="grid grid-cols-2 gap-1.5 rounded-xl bg-neutral-100 p-1.5">
205191
<button
206192
class="flex items-center justify-center gap-2 rounded-lg py-2.5 text-xs font-medium transition-all {selectedFramework ===
@@ -216,7 +202,6 @@
216202
<HugeiconsIcon icon={TailwindcssIcon} size={16} color="#06b6d4" />
217203
<span>Tailwind 4</span>
218204
</button>
219-
220205
<button
221206
class="flex items-center justify-center gap-2 rounded-lg py-2.5 text-xs font-medium transition-all {selectedFramework ===
222207
'Bootstrap 5'
@@ -232,13 +217,12 @@
232217
<span>Bootstrap 5</span>
233218
</button>
234219
</div>
235-
</footer>
220+
</section>
236221
</aside>
237222
{/if}
238223

239224
{@render children()}
240225

241-
<!-- Footer -->
242226
<footer class="bg-white px-5 pt-12 pb-6 text-black sm:px-10 sm:pt-20 lg:px-18">
243227
<div class="mx-auto grid max-w-295 gap-10 md:grid-cols-[1.5fr_.65fr_.85fr] md:gap-20 lg:gap-32">
244228
<section>
@@ -248,84 +232,75 @@
248232
>
249233
Sign up for our newsletter to get latest insights and updates
250234
</h2>
251-
252235
<form class="max-w-75.75" action="#">
253236
<label class="sr-only" for="footer-email">Email address</label>
254-
255237
<input
256-
id="footer-email"
257238
type="email"
258239
placeholder="Enter email address"
259240
required
260241
class="text-blackbg-black focus:border-blackbg-black w-full border-0 border-b border-[#686868] bg-transparent px-0 py-3 text-[15px] outline-none placeholder:text-[#a0a0a0]"
261242
/>
262-
263243
<Button
264-
class="mt-5 flex cursor-pointer items-center gap-2 rounded-lg border-none bg-blue-600 px-6 py-3 text-sm font-medium text-white shadow-[0_1px_0_rgba(255,255,255,0.2)_inset,0_8px_20px_rgba(37,99,235,0.35)] transition-all duration-200 hover:bg-blue-700 hover:shadow-[0_1px_0_rgba(255,255,255,0.2)_inset,0_12px_24px_rgba(37,99,235,0.4)] active:scale-95 sm:px-7 sm:py-3.5 sm:text-[15px]"
244+
class="mt-5 flex cursor-pointer items-center gap-2 rounded-lg border-none bg-blue-600 px-6 py-2! text-xs font-medium text-white shadow-[0_1px_0_rgba(255,255,255,0.2)_inset,0_8px_20px_rgba(37,99,235,0.35)] transition-all duration-200 hover:bg-blue-700 hover:shadow-[0_1px_0_rgba(255,255,255,0.2)_inset,0_12px_24px_rgba(37,99,235,0.4)] active:scale-95 sm:px-7! sm:py-3.5! sm:text-sm"
265245
>
266-
<span>Subscribe Now</span>
246+
Subscribe Now
267247
<HugeiconsIcon icon={ArrowRight01Icon} size={16} color="currentColor" />
268248
</Button>
269249
</form>
270250
</section>
271-
272251
<nav aria-label="Footer links">
273-
<p class="mb-2 text-xs text-[#a0a0a0]">Links</p>
274-
252+
<p class="mb-1 text-xs text-[#a0a0a0] lg:mb-2">Links</p>
275253
{#each footerLinks as link (link)}
276254
<a
277255
href={localizeHref(`#${link.toLowerCase()}`)}
278-
class="block text-[17px] leading-[1.6] transition-opacity hover:opacity-50"
256+
class="block text-sm leading-[1.6] transition-opacity hover:opacity-50 lg:text-base"
279257
>
280258
{link}
281259
</a>
282260
{/each}
283261
</nav>
284-
285262
<section aria-label="Contact information">
286-
<p class="mb-2 text-xs text-[#a0a0a0]">Get In Touch</p>
287-
288-
<a class="block text-lg leading-[1.6] transition-opacity hover:opacity-50" href="mailto:polinemaui@gmail.com">
263+
<p class="mb-1 text-xs text-[#a0a0a0] lg:mb-2">Get In Touch</p>
264+
<a
265+
class="block text-sm leading-[1.6] transition-opacity hover:opacity-50 lg:text-lg"
266+
target="_blank"
267+
href="mailto:polinemaui@gmail.com"
268+
>
289269
polinemaui@gmail.com
290270
</a>
291-
292-
<p class="mt-8 mb-2 text-xs text-[#a0a0a0]">Offline</p>
293-
294-
<address class="max-w-53.75 text-lg leading-[1.45] not-italic">
271+
<p class="mt-6 mb-1 text-xs text-[#a0a0a0] lg:mt-8 lg:mb-2">Offline</p>
272+
<address class="text-sm leading-[1.45] not-italic lg:text-lg">
295273
Politeknik Negeri Malang<br />
296274
Indonesia
297275
</address>
298276
</section>
299277
</div>
300-
301-
<!-- Socials + Brand -->
302278
<div class="mx-auto mt-14 grid max-w-295 items-end gap-10 md:grid-cols-[245px_1fr] md:gap-20 lg:gap-32">
303-
<div class="border-t border-black/10">
279+
<ul class="border-t border-black/10">
304280
{#each socials as social (social.label)}
305-
<a
306-
href={social.href}
307-
target={social.label === "Github" ? "_blank" : undefined}
308-
rel={social.label === "Github" ? "noopener noreferrer" : undefined}
309-
class="flex justify-between border-b border-black/10 py-3 text-sm transition-opacity hover:opacity-50"
310-
>
311-
<span class="flex items-center gap-2">
312-
<HugeiconsIcon icon={social.icon} size={16} strokeWidth={1.8} aria-hidden="true" />
313-
{social.label}
314-
</span>
315-
316-
<HugeiconsIcon icon={ArrowUpRight01Icon} size={16} strokeWidth={1.8} aria-hidden="true" />
317-
</a>
281+
<li>
282+
<a
283+
href={social.href}
284+
target={social.label === "Github" ? "_blank" : undefined}
285+
rel={social.label === "Github" ? "noopener noreferrer" : undefined}
286+
class="flex justify-between border-b border-black/10 py-3 text-sm transition-opacity hover:opacity-50"
287+
>
288+
<span class="flex items-center gap-2">
289+
<HugeiconsIcon icon={social.icon} size={16} strokeWidth={1.8} aria-hidden="true" />
290+
{social.label}
291+
</span>
292+
<HugeiconsIcon icon={ArrowUpRight01Icon} size={16} strokeWidth={1.8} aria-hidden="true" />
293+
</a>
294+
</li>
318295
{/each}
319-
</div>
320-
321-
<div
322-
class="overflow-hidden bg-linear-to-b from-black via-black to-[#ffff] bg-clip-text text-[clamp(5rem,8vw,9rem)] leading-[.75] font-bold -tracking-widest text-transparent"
296+
</ul>
297+
<h2
298+
class="overflow-hidden bg-linear-to-b from-black via-black to-[#ffff] bg-clip-text text-center text-[clamp(3.5rem,11.5vw,8rem)] leading-[.75] font-bold -tracking-widest whitespace-nowrap text-transparent"
323299
>
324300
POLINEMA UI
325-
</div>
301+
</h2>
326302
</div>
327-
328-
<div class="mx-auto mt-12 max-w-295 border-t border-black/10 pt-4 text-center text-xs text-black">
303+
<h6 class="mx-auto mt-12 max-w-295 border-t border-black/10 pt-4 text-center text-xs text-black">
329304
Copyright © Polinema UI. All Rights Reserved
330-
</div>
305+
</h6>
331306
</footer>

src/routes/docs/+layout.svelte

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
104104
return { id, title: heading.textContent ?? "", level: Number(heading.tagName.slice(1)) };
105105
});
106+
106107
updateActiveHeading();
107108
}
108109
@@ -184,7 +185,6 @@
184185
</nav>
185186
</ScrollArea>
186187
</aside>
187-
188188
<main class="mx-auto flex min-h-screen max-w-380 min-w-0 flex-1 flex-col">
189189
<header
190190
class="sticky top-0 z-30 flex items-center justify-between border-b border-neutral-100 bg-white/80 px-6 py-3.5 backdrop-blur-md md:hidden"
@@ -205,7 +205,6 @@
205205
{/if}
206206
</button>
207207
</header>
208-
209208
<div
210209
class="mx-auto grid w-full flex-1 grid-cols-1 gap-10 px-6 py-8 lg:grid-cols-[minmax(0,1fr)_15rem] lg:px-10 xl:grid-cols-[minmax(0,4xl)_17rem] xl:gap-12"
211210
>
@@ -249,15 +248,13 @@
249248
{/if}
250249
</nav>
251250
</div>
252-
253251
<article
254252
bind:this={articleElement}
255253
class="prose max-w-none min-w-0 flex-1 prose-slate prose-headings:scroll-mt-24 prose-h2:mt-8 prose-h2:mb-1 prose-h2:text-2xl prose-h2:font-semibold prose-a:text-blue-600"
256254
>
257255
{@render children()}
258256
</article>
259257
</div>
260-
261258
<aside class="hidden lg:block">
262259
<div class="sticky top-8 space-y-8">
263260
<nav aria-label="On this page" class="border-l border-neutral-200 pl-4 text-sm">
@@ -284,7 +281,6 @@
284281
<p class="text-neutral-400">No sections.</p>
285282
{/if}
286283
</nav>
287-
288284
<section class="rounded-2xl bg-neutral-100 p-5">
289285
<h2 class="text-lg leading-tight font-semibold text-neutral-950">
290286
Gas kalo mau jadi contributor di open source ini

0 commit comments

Comments
 (0)