parent
63303db18a
commit
760f7297c0
@ -0,0 +1,8 @@ |
||||
import simpleSvgPlaceholder from '@cloudfour/simple-svg-placeholder'; |
||||
|
||||
const defaults = { |
||||
bgColor: '#ccc', |
||||
textColor: '#888', |
||||
} |
||||
|
||||
export const holder = (x, y) => simpleSvgPlaceholder({...defaults, width: x, height: y}); |
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -0,0 +1,38 @@ |
||||
content { |
||||
display: flex; |
||||
flex: flex-shrink; |
||||
flex-grow: 1; |
||||
justify-content: center; |
||||
} |
||||
|
||||
card { |
||||
display: flex; |
||||
flex-direction: column; |
||||
border: 1px solid #eee; |
||||
width: min-content; |
||||
} |
||||
|
||||
card top img { |
||||
padding: 0; |
||||
margin: 0; |
||||
} |
||||
|
||||
card middle { |
||||
padding-left: 0.5rem; |
||||
padding-right: 0.5rem; |
||||
display: flex; |
||||
flex-direction: column; |
||||
justify-content: flex-start; |
||||
} |
||||
|
||||
card middle h4 { |
||||
margin: 0; |
||||
} |
||||
|
||||
card bottom { |
||||
flex-shrink: 0; |
||||
} |
||||
|
||||
card bottom button { |
||||
padding: 0.2rem; |
||||
} |
@ -0,0 +1,20 @@ |
||||
<content> |
||||
<card> |
||||
<top> |
||||
<img src={ holder(16 * 30, 9 * 30) }/> |
||||
</top> |
||||
|
||||
<middle> |
||||
<h4> |
||||
Card Example |
||||
</h4> |
||||
<p>Lorem ipsum dolor sit amet, consectetur |
||||
adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> |
||||
</middle> |
||||
|
||||
<bottom> |
||||
<button><Icon name="check-circle" color="var(--color-bg)" size="24" /></button> |
||||
<button><Icon name="x-circle" color="var(--color-bg)" size="24"/></button> |
||||
</bottom> |
||||
</card> |
||||
</content> |
@ -0,0 +1,36 @@ |
||||
content { |
||||
display: flex; |
||||
flex: flex-shrink; |
||||
flex-grow: 1; |
||||
justify-content: center; |
||||
} |
||||
|
||||
tile { |
||||
padding: 0.5rem; |
||||
display: flex; |
||||
flex-direction: row; |
||||
border: 1px solid #eee; |
||||
max-width: 50vh; /* only for this display, I'd remove this. */ |
||||
} |
||||
|
||||
tile middle { |
||||
padding-left: 0.5rem; |
||||
padding-right: 0.5rem; |
||||
display: flex; |
||||
flex-direction: column; |
||||
justify-content: flex-start; |
||||
flex-shrink: 3; |
||||
} |
||||
|
||||
tile middle h4 { |
||||
margin-top: 0; |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
tile right { |
||||
flex-shrink: 0; |
||||
} |
||||
|
||||
tile right button { |
||||
padding: 0.2rem; |
||||
} |
@ -0,0 +1,20 @@ |
||||
<content> |
||||
<tile> |
||||
<left> |
||||
<img src={ holder(48, 48) }/> |
||||
</left> |
||||
|
||||
<middle> |
||||
<h4> |
||||
Tile Example |
||||
</h4> |
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> |
||||
</middle> |
||||
|
||||
<right> |
||||
<button><Icon name="check-circle" color="var(--color-bg)" size="24" /></button> |
||||
<button><Icon name="x-circle" color="var(--color-bg)" size="24"/></button> |
||||
</right> |
||||
</tile> |
||||
</content> |
||||
|
@ -0,0 +1,69 @@ |
||||
<script> |
||||
import CodeView from '../components/CodeView.svelte'; |
||||
import Icon from '../components/Icon.svelte'; |
||||
|
||||
import { holder } from '../../lib/imgholder.js'; |
||||
</script> |
||||
<style> |
||||
content { |
||||
display: flex; |
||||
flex: flex-shrink; |
||||
flex-grow: 1; |
||||
justify-content: center; |
||||
} |
||||
|
||||
card { |
||||
display: flex; |
||||
flex-direction: column; |
||||
border: 1px solid #eee; |
||||
width: min-content; |
||||
} |
||||
|
||||
card top img { |
||||
padding: 0; |
||||
margin: 0; |
||||
} |
||||
|
||||
card middle { |
||||
padding-left: 0.5rem; |
||||
padding-right: 0.5rem; |
||||
display: flex; |
||||
flex-direction: column; |
||||
justify-content: flex-start; |
||||
} |
||||
|
||||
card middle h4 { |
||||
margin: 0; |
||||
} |
||||
|
||||
card bottom { |
||||
flex-shrink: 0; |
||||
} |
||||
|
||||
card bottom button { |
||||
padding: 0.2rem; |
||||
} |
||||
</style> |
||||
|
||||
<content> |
||||
<card> |
||||
<top> |
||||
<img src={ holder(16 * 30, 9 * 30) }/> |
||||
</top> |
||||
|
||||
<middle> |
||||
<h4> |
||||
Card Example |
||||
</h4> |
||||
<p>Lorem ipsum dolor sit amet, consectetur |
||||
adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> |
||||
</middle> |
||||
|
||||
<bottom> |
||||
<button><Icon name="check-circle" color="var(--color-bg)" size="24" /></button> |
||||
<button><Icon name="x-circle" color="var(--color-bg)" size="24"/></button> |
||||
</bottom> |
||||
</card> |
||||
</content> |
||||
|
||||
<CodeView source="/code/Cards" /> |
@ -0,0 +1,66 @@ |
||||
<script> |
||||
import CodeView from '../components/CodeView.svelte'; |
||||
import Icon from '../components/Icon.svelte'; |
||||
|
||||
import { holder } from '../../lib/imgholder.js'; |
||||
</script> |
||||
<style> |
||||
content { |
||||
display: flex; |
||||
flex: flex-shrink; |
||||
flex-grow: 1; |
||||
justify-content: center; |
||||
} |
||||
|
||||
tile { |
||||
padding: 0.5rem; |
||||
display: flex; |
||||
flex-direction: row; |
||||
border: 1px solid #eee; |
||||
max-width: 50vh; /* only for this display, I'd remove this. */ |
||||
} |
||||
|
||||
tile middle { |
||||
padding-left: 0.5rem; |
||||
padding-right: 0.5rem; |
||||
display: flex; |
||||
flex-direction: column; |
||||
justify-content: flex-start; |
||||
flex-shrink: 3; |
||||
} |
||||
|
||||
tile middle h4 { |
||||
margin-top: 0; |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
tile right { |
||||
flex-shrink: 0; |
||||
} |
||||
|
||||
tile right button { |
||||
padding: 0.2rem; |
||||
} |
||||
</style> |
||||
|
||||
<content> |
||||
<tile> |
||||
<left> |
||||
<img src={ holder(48, 48) }/> |
||||
</left> |
||||
|
||||
<middle> |
||||
<h4> |
||||
Tile Example |
||||
</h4> |
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> |
||||
</middle> |
||||
|
||||
<right> |
||||
<button><Icon name="check-circle" color="var(--color-bg)" size="24" /></button> |
||||
<button><Icon name="x-circle" color="var(--color-bg)" size="24"/></button> |
||||
</right> |
||||
</tile> |
||||
</content> |
||||
|
||||
<CodeView source="/code/Tiles" /> |
@ -0,0 +1,68 @@ |
||||
<script> |
||||
import CodeView from '../components/CodeView.svelte'; |
||||
import Icon from '../components/Icon.svelte'; |
||||
|
||||
import { holder } from '../../lib/imgholder.js'; |
||||
</script> |
||||
<style> |
||||
content { |
||||
display: flex; |
||||
flex: flex-shrink; |
||||
flex-grow: 1; |
||||
justify-content: center; |
||||
} |
||||
|
||||
card { |
||||
display: flex; |
||||
flex-direction: column; |
||||
border: 1px solid #eee; |
||||
width: min-content; |
||||
} |
||||
|
||||
card top img { |
||||
padding: 0; |
||||
margin: 0; |
||||
} |
||||
|
||||
card middle { |
||||
padding-left: 0.5rem; |
||||
padding-right: 0.5rem; |
||||
display: flex; |
||||
flex-direction: column; |
||||
justify-content: flex-start; |
||||
} |
||||
|
||||
card middle h4 { |
||||
margin: 0; |
||||
} |
||||
|
||||
card bottom { |
||||
flex-shrink: 0; |
||||
} |
||||
|
||||
card bottom button { |
||||
padding: 0.2rem; |
||||
} |
||||
</style> |
||||
|
||||
<content> |
||||
<card> |
||||
<top> |
||||
<img src={ holder(16 * 30, 9 * 30) }/> |
||||
</top> |
||||
|
||||
<middle> |
||||
<h4> |
||||
Card Example |
||||
</h4> |
||||
<p>Lorem ipsum dolor sit amet, consectetur |
||||
adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> |
||||
</middle> |
||||
|
||||
<bottom> |
||||
<button><Icon name="check-circle" color="var(--color-bg)" size="24" /></button> |
||||
<button><Icon name="x-circle" color="var(--color-bg)" size="24"/></button> |
||||
</bottom> |
||||
</card> |
||||
</content> |
||||
|
@ -0,0 +1,63 @@ |
||||
<script> |
||||
import Icon from '../components/Icon.svelte'; |
||||
import { holder } from '../../lib/imgholder.js'; |
||||
</script> |
||||
<style> |
||||
content { |
||||
display: flex; |
||||
flex: flex-shrink; |
||||
flex-grow: 1; |
||||
justify-content: center; |
||||
} |
||||
|
||||
tile { |
||||
padding: 0.5rem; |
||||
display: flex; |
||||
flex-direction: row; |
||||
border: 1px solid #eee; |
||||
max-width: 50vh; /* only for this display, I'd remove this. */ |
||||
} |
||||
|
||||
tile middle { |
||||
padding-left: 0.5rem; |
||||
padding-right: 0.5rem; |
||||
display: flex; |
||||
flex-direction: column; |
||||
justify-content: flex-start; |
||||
flex-shrink: 3; |
||||
} |
||||
|
||||
tile middle h4 { |
||||
margin-top: 0; |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
tile right { |
||||
flex-shrink: 0; |
||||
} |
||||
|
||||
tile right button { |
||||
padding: 0.2rem; |
||||
} |
||||
</style> |
||||
|
||||
<content> |
||||
<tile> |
||||
<left> |
||||
<img src={ holder(48, 48) }/> |
||||
</left> |
||||
|
||||
<middle> |
||||
<h4> |
||||
Tile Example |
||||
</h4> |
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> |
||||
</middle> |
||||
|
||||
<right> |
||||
<button><Icon name="check-circle" color="var(--color-bg)" size="24" /></button> |
||||
<button><Icon name="x-circle" color="var(--color-bg)" size="24"/></button> |
||||
</right> |
||||
</tile> |
||||
</content> |
||||
|
Loading…
Reference in new issue