|
| 1 | +--- |
| 2 | +import Layout from "../../layouts/Layout.astro"; |
| 3 | +import Header from "../../components/Header"; |
| 4 | +import MainWrapper from "../../layouts/MainWrapper.astro"; |
| 5 | +import Aside from "../../components/Aside.astro"; |
| 6 | +import Content from "../../layouts/Content.astro"; |
| 7 | +import Footer from "../../components/Footer"; |
| 8 | +import NavButton from '../../components/NavButton.astro'; |
| 9 | +--- |
| 10 | + |
| 11 | +<Layout title="Interactive card demo | Fluffle"> |
| 12 | + <Header /> |
| 13 | + |
| 14 | + <MainWrapper> |
| 15 | + <Aside /> |
| 16 | + |
| 17 | + <main> |
| 18 | + <Content title="Interactive card demo"> |
| 19 | + <p> |
| 20 | + Try the features in action with this interactive example. Edit the code and see the results in real-time. |
| 21 | + </p> |
| 22 | + |
| 23 | + <br> |
| 24 | + |
| 25 | + <p> |
| 26 | + This demo showcases a real app with an interactive playground containing a card component built with nested styles and <code>rem</code> units, demonstrating how to structure complex layouts in a clean and maintainable way. |
| 27 | + </p> |
| 28 | + |
| 29 | + <iframe |
| 30 | + src="https://snack.expo.dev/@bibliolabs_official/react-native-fluffle---interactive-card-demo?platform=ios&theme=dark" |
| 31 | + width="100%" |
| 32 | + height="600" |
| 33 | + style="border: 1px solid hsl(330, 50%, 70%); border-radius: 1rem; margin-top: 1rem;" |
| 34 | + allow="clipboard-write" |
| 35 | + loading="lazy" |
| 36 | + title="React Native Fluffle Demo" |
| 37 | + /> |
| 38 | + |
| 39 | + <h3>What to try</h3> |
| 40 | + <ul> |
| 41 | + <li>Use the buttons to interact with the card component in the playground tab</li> |
| 42 | + <li>Modify the padding and margin values in the style definitions to see how spacing affects the layout</li> |
| 43 | + <li>Change colors in the style definitions to customize the card appearance</li> |
| 44 | + <li>Adjust font sizes to see how <code>rem</code> units scale proportionally</li> |
| 45 | + <li>Explore the nested style structure to understand how hierarchy improves organization</li> |
| 46 | + </ul> |
| 47 | + |
| 48 | + <NavButton |
| 49 | + prev={{ title: 'Features | rem units', href: '/features/rem' }} |
| 50 | + next={{ title: 'Roadmap | Shorthands', href: '/roadmap/shorthands' }} |
| 51 | + /> |
| 52 | + </Content> |
| 53 | + </main> |
| 54 | + </MainWrapper> |
| 55 | + |
| 56 | + <Footer /> |
| 57 | +</Layout> |
0 commit comments