mirror of
https://github.com/withastro/astro.git
synced 2025-03-17 23:11:29 -05:00
fix: remove images from example
This commit is contained in:
parent
3d307bf2af
commit
5ec589f220
4 changed files with 31 additions and 5 deletions
14
examples/router/src/components/Box.astro
Normal file
14
examples/router/src/components/Box.astro
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
const { color = "red" } = Astro.props;
|
||||
---
|
||||
|
||||
<div class="box" />
|
||||
|
||||
<style define:vars={{ color }}>
|
||||
.box {
|
||||
--size: 400px;
|
||||
width: var(--size);
|
||||
height: var(--size);
|
||||
background: var(--color);
|
||||
}
|
||||
</style>
|
|
@ -1,3 +1,7 @@
|
|||
<h3>One</h3>
|
||||
---
|
||||
import Box from '../../../components/Box.astro'
|
||||
---
|
||||
|
||||
<img src="https://images.unsplash.com/photo-1608178398319-48f814d0750c" width="640">
|
||||
<h3>Two</h3>
|
||||
|
||||
<Box color="red" />
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
<h3>Three</h3>
|
||||
---
|
||||
import Box from '../../../components/Box.astro'
|
||||
---
|
||||
|
||||
<img src="https://images.unsplash.com/photo-1462331940025-496dfbfc7564" width="640">
|
||||
<h3>Two</h3>
|
||||
|
||||
<Box color="blue" />
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
---
|
||||
import Box from '../../../components/Box.astro'
|
||||
---
|
||||
|
||||
<h3>Two</h3>
|
||||
|
||||
<img src="https://images.unsplash.com/photo-1610296669228-602fa827fc1f" width="640">
|
||||
<Box color="green" />
|
||||
|
|
Loading…
Add table
Reference in a new issue