Skip to content

Conversation

@johnsBeharry
Copy link
Contributor

Summary

Implements responsive status text for project cards on mobile using CSS-only solution with .hide-mobile spans.

Changes

  • Add .hide-mobile CSS class for mobile (< 640px)
  • Update status pills to show full text on desktop, shortened on mobile:
    • "Active advocacy underway" → "Active advocacy"
    • "Alpha stage, approaching v1 launch" → "Alpha stage"
  • Improve mobile spacing: reduce projects-grid bottom padding, add space between Funding and split sections

Projects Affected

  • Bitcoin Builder Kit
  • Adopting the ₿ symbol
  • Human Bitcoin Addresses
  • Making Privacy Permeate

Technical Details

  • CSS-only, no JavaScript
  • No new YAML properties (HTML in existing status field)
  • Breakpoint: 640px

Add CSS-only solution for displaying longer status text on desktop and shorter text on mobile without JavaScript or additional YAML properties.

Changes:
- Add .hide-mobile CSS class that hides content on mobile (< 640px)
- Update status pills to use hide-mobile spans for conditional text display
- "Active advocacy underway" shows full text on desktop, "Active advocacy" on mobile
- "Alpha stage, approaching v1 launch" shows full text on desktop, "Alpha stage" on mobile

Projects affected:
- Bitcoin Builder Kit: Alpha stage, approaching v1 launch
- Adopting the ₿ symbol: Active advocacy underway
- Human Bitcoin Addresses: Active advocacy underway
- Making Privacy Permeate: Active advocacy underway
Adjust mobile spacing and fix HTML rendering for status pills.

Changes:
- Fix status text spacing: move space outside hide-mobile span for proper rendering
  ("Active advocacy <span>underway</span>" instead of "Active advocacy<span> underway</span>")
- Reduce projects-grid bottom padding on mobile from 60px to 15px
- Add spacing between Funding section and first split section using adjacent sibling selector (p + .split-section)
- Ensures proper spacing hierarchy: projects → funding (tight) → split sections (spaced)

Affected status pills:
- Adopting the ₿ symbol
- Human Bitcoin Addresses
- Making Privacy Permeate
@netlify
Copy link

netlify bot commented Dec 22, 2025

Deploy Preview for bitcoin-design-site ready!

Name Link
🔨 Latest commit c135459
🔍 Latest deploy log https://app.netlify.com/projects/bitcoin-design-site/deploys/6949da92b77b240008de06de
😎 Deploy Preview https://deploy-preview-1208--bitcoin-design-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Replace regular space with &nbsp; in status pills to prevent whitespace collapsing.
Ensures consistent spacing between 'Active advocacy' and 'underway' on desktop.

Browser whitespace collapsing rules can remove spaces at the start of inline
elements like <span>. Using &nbsp; entity forces the space to always render.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants