aboutsummaryrefslogtreecommitdiff
path: root/build/stripe-menu-css/index.html
diff options
context:
space:
mode:
authorbt <bt@btxx.org>2024-06-08 13:22:19 -0400
committerbt <bt@btxx.org>2024-06-08 13:22:19 -0400
commitdcfb172704f3afb68a30425029ec834be2883274 (patch)
tree02ac480745db802d7af03f3213a0c568322170e3 /build/stripe-menu-css/index.html
parente146f8a64c793c337999ce316b16ebe5fe6f2dab (diff)
More content porting, on-going markdown changes for lowdown support
Diffstat (limited to 'build/stripe-menu-css/index.html')
-rw-r--r--build/stripe-menu-css/index.html51
1 files changed, 28 insertions, 23 deletions
diff --git a/build/stripe-menu-css/index.html b/build/stripe-menu-css/index.html
index 44d7ef3..1f16e6e 100644
--- a/build/stripe-menu-css/index.html
+++ b/build/stripe-menu-css/index.html
@@ -1,39 +1,44 @@
<!doctype html>
-<html lang="en" id="top">
+<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="data:,">
<title>Stripe Menu Dropdowns (CSS)</title>
- <link href="https://bt.ht/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
- <style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{overflow:auto;}table{text-align:left;width:100%;}</style>
+ <link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
+ <link href="/rss.xml" type="application/rss+xml" rel="alternate" title="RSS feed for blog posts" />
+<style>*{box-sizing:border-box;}body{font-family:sans-serif;line-height:1.33;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{border:1px solid;overflow:auto;padding:5px;}table{text-align:left;width:100%;}.footnotes{font-size:90%;}</style>
</head>
<nav>
- <a href="#menu">Menu &darr;</a>
+ <a href="#menu">Menu &darr;</a>
</nav>
<main>
-<h1>Stripe Menu Dropdowns (CSS)</h1>
+<h1 id="stripe-menu-dropdowns-css">Stripe Menu Dropdowns (CSS)</h1>
+
<p>2020-03-31</p>
-<p>In a previous article I wrote, <a href="blog/minimal-css-menu">Minimal CSS: Dropdown Menus</a>, I showed how you could create a basic menu dropdown with only 121 bytes of CSS. While this demo is great for simple text-based menu dropdowns, it doesn't show just how complex (in a good way) you can make CSS-only menus. So, let's do just that.</p>
-<h2>What we want to emulate</h2>
-<p>I think, like most designers, that the UI and web design work from the <a href="https://stripe.com/">Stripe</a> team is pretty fantastic. Their clean approach using subtle animations and minimal elements make for a pleasant experience. Unfortunately, there is <i>one problem</i> with their current dropdown menus on their main website:</p>
-<p><b>They don't work if JavaScript is disabled.</b></p>
-<p>But we can easily fix that. So enough chit-chat, let's rip-off their menu design and recreate it with only CSS!</p>
-<h3>Original (<a href="https://stripe.com">Stripe Website</a>)</h3>
-<p><figure>
- <img src="/public/images/stripe-default-menu.webp" alt="Stripe default menu">
- <figcaption>Stripe's default menu dropdown (using both CSS & JavaScript) (<a href="/public/images/stripe-default-menu.webp">direct link to image</a>)</figcaption>
-</figure></p>
-<h3>Our recreation (<a href="https://codepen.io/bradleytaunt/full/ExjMjLL">CodePen Demo</a>)</h3>
-<p><figure>
- <img src="/public/images/stripe-recreated.webp" alt="Stripe menu recreated">
- <figcaption>Our recreation with pure CSS (zero JavaScript) (<a href="/public/images/stripe-recreated.webp">direct link to image</a>)</figcaption>
-</figure></p>
-<p>Although our redesign is far from an exact replica (some subtle animations are missing which could always be added) - it's still impressive what you can do with some bare-bones CSS. Just something to keep in mind the next time you decide to reach for a JavaScript library to implement a similar design.</p>
-<h2>See it live in action</h2>
-<p>Load in the CodePen below and play around with the menu dropdown. Feel free to re-use, break. share or <i>steal</i> this for any and all purposes. Enjoy!</p>
+
+<p>In a previous article I wrote, <a href="blog/minimal-css-menu">Minimal CSS: Dropdown Menus</a>, I showed how you could create a basic menu dropdown with only 121 bytes of CSS. While this demo is great for simple text-based menu dropdowns, it doesn&#8217;t show just how complex (in a good way) you can make CSS-only menus. So, let&#8217;s do just that.</p>
+
+<h2 id="what-we-want-to-emulate">What we want to emulate</h2>
+
+<p>I think, like most designers, that the UI and web design work from the <a href="https://stripe.com/">Stripe</a> team is pretty fantastic. Their clean approach using subtle animations and minimal elements make for a pleasant experience. Unfortunately, there is one problem with their current dropdown menus on their main website:</p>
+
+<p>They don&#8217;t work if JavaScript is disabled.</p>
+
+<p>But we can easily fix that. So enough chit-chat, let&#8217;s rip-off their menu design and recreate it with only CSS!</p>
+
+<h3 id="original-stripe-website">Original (<a href="https://stripe.com">Stripe Website</a>)</h3>
+
+<h3 id="our-recreation-codepen-demo">Our recreation (<a href="https://codepen.io/bradleytaunt/full/ExjMjLL">CodePen Demo</a>)</h3>
+
+<p>Although our redesign is far from an exact replica (some subtle animations are missing which could always be added) - it&#8217;s still impressive what you can do with some bare-bones CSS. Just something to keep in mind the next time you decide to reach for a JavaScript library to implement a similar design.</p>
+
+<h2 id="see-it-live-in-action">See it live in action</h2>
+
+<p>Load in the CodePen below and play around with the menu dropdown. Feel free to re-use, break. share or steal this for any and all purposes. Enjoy!</p>
+
<p><a href="https://codepen.io/bradleytaunt/pen/ExjMjLL">Live CodePen Example</a></p>
<footer role="contentinfo">
<h2>Menu Navigation</h2>