Skip to content

Commit

Permalink
chore: rewrite docs
Browse files Browse the repository at this point in the history
  • Loading branch information
FRSgit committed Mar 28, 2024
1 parent 17d8f2a commit 882a189
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/docs/components/blocks/Banners.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ Four vertical displays in row on desktop.

Hero acts like a layout for your hero section. You can add a main image and any content you want, along with background images for both mobile and desktop. To make the background images look better and load faster, it's best to use images that:

- are 3840px wide with a 16:9 aspect ratio for desktop,
- are 768px wide with a 1:2 aspect ratio for mobile.
- are at least 3840px wide with a 4:1.5 aspect ratio for desktop, e.g. 3840px x 1440px,
- are at least 768px wide with a 3:4 aspect ratio for mobile, e.g. 768px x 1024px.

<Showcase showcase-name="Banners/Hero" style="min-height:620px">

Expand Down
2 changes: 1 addition & 1 deletion apps/preview/next/pages/showcases/Banners/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { SfButton } from '@storefront-ui/react';

export default function Hero() {
return (
<div className="relative min-h-[600px]">
<div className="relative min-h-[576px]">
<picture>
<source srcSet="http://localhost:3100/@assets/hero-bg.png" media="(min-width: 768px)" />
<img
Expand Down
2 changes: 1 addition & 1 deletion apps/preview/nuxt/pages/showcases/Banners/Hero.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="relative min-h-[600px]">
<div class="relative min-h-[576px]">
<picture>
<source srcset="http://localhost:3100/@assets/hero-bg.png" media="(min-width: 768px)" />
<img
Expand Down

0 comments on commit 882a189

Please sign in to comment.