|
1 | 1 | <template> |
2 | | - <div> |
| 2 | + <div class="snav-demo-page"> |
3 | 3 | <h1>Portfolio</h1> |
4 | | - <p>This is the Portfolio page. The active indicator in the navigation above should be sitting under "Portfolio".</p> |
| 4 | + <p>This is the Portfolio page. The active indicator in the navigation above should be sitting under "Portfolio". Maximum image load to stress-test navigation behaviour.</p> |
| 5 | + |
| 6 | + <h2>Spotlight Work</h2> |
| 7 | + <div class="snav-demo-grid snav-demo-grid--dense"> |
| 8 | + <NuxtImg v-for="n in 9" :key="n" :src="`/images/rotating-carousel/image-${n}.webp`" :alt="`Portfolio piece ${n}`" width="600" height="600" loading="lazy" class="snav-demo-img snav-demo-img--square" /> |
| 9 | + </div> |
| 10 | + |
| 11 | + <h2>Featured Looks</h2> |
| 12 | + <div class="snav-demo-grid snav-demo-grid--wide"> |
| 13 | + <NuxtImg src="/images/banners/banner-ginger.jpeg" alt="Ginger look" width="800" height="500" loading="lazy" class="snav-demo-img" /> |
| 14 | + <NuxtImg src="/images/banners/banner-light-brunette.webp" alt="Light brunette look" width="800" height="500" loading="lazy" class="snav-demo-img" /> |
| 15 | + <NuxtImg src="/images/banners/banner-mid-brown.webp" alt="Mid brown look" width="800" height="500" loading="lazy" class="snav-demo-img" /> |
| 16 | + <NuxtImg src="/images/rotating-carousel/35-light-brown-highlights.webp" alt="Light brown highlights" width="800" height="500" loading="lazy" class="snav-demo-img" /> |
| 17 | + <NuxtImg src="/images/rotating-carousel/55-woman-garden-backdrop.webp" alt="Garden backdrop" width="800" height="500" loading="lazy" class="snav-demo-img" /> |
| 18 | + <NuxtImg src="/images/rotating-carousel/indian-pink-stripe.webp" alt="Pink stripe" width="800" height="500" loading="lazy" class="snav-demo-img" /> |
| 19 | + <NuxtImg src="/images/rotating-carousel/spanish-green-stripe.webp" alt="Green stripe" width="800" height="500" loading="lazy" class="snav-demo-img" /> |
| 20 | + </div> |
| 21 | + |
| 22 | + <h2>Hero Series</h2> |
| 23 | + <div class="snav-demo-grid"> |
| 24 | + <NuxtImg v-for="hero in ['hero-blonde', 'hero-dark', 'hero-hair', 'hero-red']" :key="hero" :src="`/images/page/hero/${hero}.jpg`" :alt="hero" width="600" height="400" loading="lazy" class="snav-demo-img" /> |
| 25 | + </div> |
5 | 26 | </div> |
6 | 27 | </template> |
7 | 28 |
|
8 | 29 | <script setup lang="ts"> |
9 | 30 | definePageMeta({ layout: "site-navigation-demo" }); |
10 | 31 | useHead({ title: "SiteNavigation Demo — Portfolio" }); |
11 | 32 | </script> |
| 33 | + |
| 34 | +<style lang="css"> |
| 35 | +.snav-demo-img--square { |
| 36 | + aspect-ratio: 1 / 1; |
| 37 | +} |
| 38 | +
|
| 39 | +.snav-demo-grid--dense { |
| 40 | + grid-template-columns: repeat(3, 1fr); |
| 41 | + gap: 0.8rem; |
| 42 | +} |
| 43 | +</style> |
0 commit comments