Skip to content

Commit 463e78d

Browse files
Add gradient icon bubbles to features section (#81)
1 parent 2dd50d3 commit 463e78d

1 file changed

Lines changed: 27 additions & 8 deletions

File tree

test/dummy/app/views/pages/_features.html.erb

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,75 @@
1+
<% icon_class = "l-ui-icon l-ui-icon--xl brightness-0 invert" %>
2+
<% bubble_class = "flex shrink-0 items-center justify-center w-14 h-14 rounded-full bg-gradient-to-br" %>
3+
14
<h2 class="mt-6">Features</h2>
25
<div class="l-ui-grid mt-4">
36
<div class="l-ui-surface flex items-center gap-4">
4-
<%= image_tag "icon_minimal.svg", class: "l-ui-icon l-ui-icon--xl", alt: "", aria: { hidden: true } %>
7+
<div class="<%= bubble_class %> from-black to-black">
8+
<%= image_tag "icon_minimal.svg", class: icon_class, alt: "", aria: { hidden: true } %>
9+
</div>
510
<div>
611
<h3>Minimal style</h3>
712
<p>Monochrome out of the box and fully extensible - override colours, typography, and components to suit your project.</p>
813
</div>
914
</div>
1015
<div class="l-ui-surface flex items-center gap-4">
11-
<%= image_tag "icon_moon.svg", class: "l-ui-icon l-ui-icon--xl", alt: "", aria: { hidden: true } %>
16+
<div class="<%= bubble_class %> from-black to-black">
17+
<%= image_tag "icon_moon.svg", class: icon_class, alt: "", aria: { hidden: true } %>
18+
</div>
1219
<div>
1320
<h3>Dark/light theme</h3>
1421
<p>System preference detection with localStorage persistence and manual toggle.</p>
1522
</div>
1623
</div>
1724
<div class="l-ui-surface flex items-center gap-4">
18-
<%= image_tag "icon_paint.svg", class: "l-ui-icon l-ui-icon--xl", alt: "", aria: { hidden: true } %>
25+
<div class="<%= bubble_class %> from-fuchsia-500 via-pink-500 to-orange-400">
26+
<%= image_tag "icon_paint.svg", class: icon_class, alt: "", aria: { hidden: true } %>
27+
</div>
1928
<div>
2029
<h3>Customisable logo and icons</h3>
2130
<p>Override the default logos and icons to match your brand.</p>
2231
</div>
2332
</div>
2433
<div class="l-ui-surface flex items-center gap-4">
25-
<%= image_tag "icon_device.svg", class: "l-ui-icon l-ui-icon--xl", alt: "", aria: { hidden: true } %>
34+
<div class="<%= bubble_class %> from-sky-500 to-cyan-500">
35+
<%= image_tag "icon_device.svg", class: icon_class, alt: "", aria: { hidden: true } %>
36+
</div>
2637
<div>
2738
<h3>Responsive layout</h3>
2839
<p>Tested thoroughly across form factors, from mobile to ultrawide.</p>
2940
</div>
3041
</div>
3142
<div class="l-ui-surface flex items-center gap-4">
32-
<%= image_tag "icon_eye.svg", class: "l-ui-icon l-ui-icon--xl", alt: "", aria: { hidden: true } %>
43+
<div class="<%= bubble_class %> from-emerald-500 to-teal-500">
44+
<%= image_tag "icon_eye.svg", class: icon_class, alt: "", aria: { hidden: true } %>
45+
</div>
3346
<div>
3447
<h3>WCAG 2.2 AA accessible</h3>
3548
<p>Skip links, focus indicators, ARIA attributes, and 4.5:1 contrast ratios. Read the <%= link_to "latest accessibility audits", "https://github.com/layered-ai-public/layered-ui-rails/blob/main/audits/accessibility", target: "_blank", rel: "noopener noreferrer" %>.</p>
3649
</div>
3750
</div>
3851
<div class="l-ui-surface flex items-center gap-4">
39-
<%= image_tag "icon_lighthouse.svg", class: "l-ui-icon l-ui-icon--xl", alt: "", aria: { hidden: true } %>
52+
<div class="<%= bubble_class %> from-amber-400 to-orange-500">
53+
<%= image_tag "icon_lighthouse.svg", class: icon_class, alt: "", aria: { hidden: true } %>
54+
</div>
4055
<div>
4156
<h3>Google Lighthouse optimised</h3>
4257
<p><code>layered-ui-rails</code> scores a <%= link_to "perfect 100", image_path("lighthouse.webp"), target: "_blank" %> across all four Google Lighthouse categories - performance, accessibility, best practices, and SEO.</p>
4358
</div>
4459
</div>
4560
<div class="l-ui-surface flex items-center gap-4">
46-
<%= image_tag "icon_puzzle.svg", class: "l-ui-icon l-ui-icon--xl", alt: "", aria: { hidden: true } %>
61+
<div class="<%= bubble_class %> from-cyan-400 via-blue-500 to-violet-600">
62+
<%= image_tag "icon_puzzle.svg", class: icon_class, alt: "", aria: { hidden: true } %>
63+
</div>
4764
<div>
4865
<h3>Optional integrations</h3>
4966
<p><%= link_to "Devise", devise_path %> authentication, <%= link_to "Pagy", pagy_path %> pagination, and <%= link_to "Ransack", ransack_path %> search and sort with styled controls.</p>
5067
</div>
5168
</div>
5269
<div class="l-ui-surface flex items-center gap-4">
53-
<%= image_tag "icon_agent.svg", class: "l-ui-icon l-ui-icon--xl", alt: "", aria: { hidden: true } %>
70+
<div class="<%= bubble_class %> from-indigo-500 via-purple-500 to-pink-500">
71+
<%= image_tag "icon_agent.svg", class: icon_class, alt: "", aria: { hidden: true } %>
72+
</div>
5473
<div>
5574
<h3>Agent skill</h3>
5675
<p>Bundled agent skill teaches AI agents to install, configure, and build with <code>layered-ui-rails</code>.</p>

0 commit comments

Comments
 (0)