Skip to content

Commit 9813cb3

Browse files
jamdelionchunzg
andcommitted
Add block and cat components and try to get different size blocks
Co-authored-by: chunzg <[email protected]>
1 parent f6514bf commit 9813cb3

File tree

3 files changed

+238
-0
lines changed

3 files changed

+238
-0
lines changed

public/cat.svg

Lines changed: 193 additions & 0 deletions
Loading

src/Block.svelte

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<script>
2+
// export let name;
3+
// import
4+
// let heig
5+
</script>
6+
7+
<div></div>
8+
<style>
9+
div {
10+
border: solid 1px black;
11+
height: 75px;
12+
width: 200px;
13+
background-color: red;
14+
}
15+
16+
/* @media (min-width: 640px) {
17+
div {
18+
max-width: none;
19+
}
20+
} */
21+
</style>

src/Cat.svelte

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<script>
2+
// export let name;
3+
</script>
4+
5+
<!-- <div> -->
6+
<img src='cat.svg' alt='a cat'>
7+
<!-- </div> -->
8+
9+
<style>
10+
img {
11+
height: 150px;
12+
}
13+
/* div {
14+
border: solid 1px black;
15+
height: 200px;
16+
width: 240px;
17+
} */
18+
19+
/* @media (min-width: 640px) {
20+
div {
21+
max-width: none;
22+
}
23+
} */
24+
</style>

0 commit comments

Comments
 (0)