-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
103 lines (97 loc) · 4.81 KB
/
index.html
File metadata and controls
103 lines (97 loc) · 4.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Browse CSS gradients by Brandon Himpfen. Search visually appealing gradients, preview each design, and copy ready-to-use CSS code.">
<meta name="robots" content="index,follow">
<meta name="theme-color" content="#5caf47">
<meta property="og:type" content="website">
<meta property="og:title" content="CSS Gradients by Brandon Himpfen">
<meta property="og:description" content="A polished CSS gradient library with quick preview, search, and one-click copy.">
<meta property="og:url" content="https://css-gradients.himpfen.com/">
<meta property="og:image" content="https://www.himpfen.com/content/images/size/w256h256/2026/03/bhicon-transparent-blue.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="CSS Gradients by Brandon Himpfen">
<meta name="twitter:description" content="Search, preview, and copy CSS gradients in a cleaner, more visual experience.">
<link rel="canonical" href="https://css-gradients.himpfen.com/">
<link rel="icon" href="https://www.himpfen.com/content/images/size/w256h256/2026/03/bhicon-transparent-blue.png" type="image/png">
<title>CSS Gradients by Brandon Himpfen</title>
<link rel="stylesheet" href="./style.css">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "CollectionPage",
"name": "CSS Gradients by Brandon Himpfen",
"description": "A searchable collection of CSS gradients with visual previews and copy-ready CSS.",
"url": "https://css-gradients.himpfen.com/",
"publisher": {
"@type": "Organization",
"name": "Brandon Himpfen",
"url": "https://www.himpfen.com/"
}
}
</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X1B0Q53PK1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-X1B0Q53PK1');
</script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2079625064533995" crossorigin="anonymous"></script>
</head>
<body>
<a class="skip-link" href="#main-content">Skip to content</a>
<header class="site-header">
<div class="container hero">
<div class="hero-copy">
<p class="eyebrow"><a href="https://www.himpfen.com" title="Brandon Himpfen">Brandon Himpfen</a> resource</p>
<h1>CSS Gradients</h1>
<p class="hero-text">Explore a curated gradient library for interfaces, landing pages, backgrounds, and digital products. Preview each gradient instantly and copy production-ready CSS with one click.</p>
<div class="hero-meta" aria-label="Library details">
<span class="meta-pill"><strong id="gradient-total">0</strong> gradients</span>
<span class="meta-pill">Ready-to-copy CSS</span>
<span class="meta-pill">Search by hex or keyword</span>
</div>
</div>
<aside class="hero-card">
<h2>Quick tip</h2>
<p>Use the search bar to find gradients by color code or gradient type, then copy the full CSS declaration directly into your project.</p>
</aside>
</div>
</header>
<main id="main-content">
<section class="controls-wrap">
<div class="container controls" role="search" aria-label="Gradient search and filters">
<label class="search-field" for="gradient-search">
<span class="search-label">Search gradients</span>
<input id="gradient-search" type="search" placeholder="Search by hex, linear-gradient, or color values" autocomplete="off">
</label>
<div class="toolbar-actions">
<button id="clear-search" type="button" class="button">Clear</button>
<button id="toggle-view" type="button" class="button" aria-pressed="false">Compact view</button>
</div>
</div>
</section>
<section class="container results-bar" aria-live="polite">
<p id="results-count">Showing 0 gradients</p>
</section>
<section class="container library-section">
<div id="empty-state" class="empty-state" hidden>
<h2>No gradients found</h2>
<p>Try a different hex code or clear the search to browse the full collection.</p>
</div>
<div class="gradient-grid" id="gradientGrid" aria-label="CSS gradient library"></div>
</section>
</main>
<footer class="site-footer">
<div class="container footer-inner">
<p>CSS Gradients by <a href="https://www.himpfen.com/">Brandon Himpfen</a>.</p>
<p class="footer-note"></p>
</div>
</footer>
<div id="copied-alert" class="alert-box" role="status" aria-live="polite" hidden></div>
<script src="./script.js"></script>
</body>
</html>