-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Test
fit
value against Regex to avoid conflicts with fit=cover
- Loading branch information
1 parent
a346151
commit 0c0f3e2
Showing
4 changed files
with
546 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,74 @@ | ||
<template> | ||
<div> | ||
<nuxt-picture src="rhino.jpg" /> | ||
<nuxt-picture src="opera.webp" /> | ||
<nuxt-picture src="opera.webp" :modifiers="{ noProcess: true }" /> | ||
</div> | ||
<div> | ||
<figure> | ||
<figcaption>Original image:</figcaption> | ||
<nuxt-picture src="rhino.jpg" /> | ||
</figure> | ||
|
||
<figure> | ||
<figcaption>Resampled image:</figcaption> | ||
<nuxt-picture width="200" src="rhino.jpg" /> | ||
</figure> | ||
|
||
<figure> | ||
<figcaption>Resampled image with forced height:</figcaption> | ||
<nuxt-picture width="200" height="200" src="rhino.jpg" /> | ||
</figure> | ||
|
||
<figure> | ||
<figcaption>Native image:</figcaption> | ||
<nuxt-picture src="opera.webp" /> | ||
</figure> | ||
|
||
<figure> | ||
<figcaption>Cropped image:</figcaption> | ||
<nuxt-picture :modifiers="{crop: '1:1'}" src="opera.webp" /> | ||
</figure> | ||
|
||
<figure> | ||
<figcaption>Fitted image:</figcaption> | ||
<nuxt-picture fit="50x50" src="opera.webp" /> | ||
<nuxt-picture fit="50x150" :modifiers="{align: 'lb'}" src="opera.webp" /> | ||
<nuxt-picture fit="50x150" :modifiers="{align: 'b'}" src="opera.webp" /> | ||
<nuxt-picture fit="50x150" :modifiers="{align: 'rb'}" src="opera.webp" /> | ||
</figure> | ||
|
||
<figure> | ||
<figcaption>Bad fitted image:</figcaption> | ||
<nuxt-picture fit="invalid" src="opera.webp" /> | ||
</figure> | ||
|
||
<figure> | ||
<figcaption>Contrasted image:</figcaption> | ||
<nuxt-picture :modifiers="{contrast: 10}" src="opera.webp" /> | ||
</figure> | ||
|
||
<figure> | ||
<figcaption>Flipped image:</figcaption> | ||
<nuxt-picture :modifiers="{flip: 'v'}" src="opera.webp" /> | ||
</figure> | ||
|
||
<figure> | ||
<figcaption>Greyscaled image:</figcaption> | ||
<nuxt-picture :modifiers="{grayscale: true}" src="opera.webp" /> | ||
</figure> | ||
|
||
<figure> | ||
<figcaption>No process image:</figcaption> | ||
<nuxt-picture :modifiers="{noProcess: true}" src="opera.webp" /> | ||
</figure> | ||
</div> | ||
</template> | ||
<script setup></script> | ||
<style lang="css"> | ||
figure { | ||
display: block; | ||
margin: 1rem 0; | ||
padding: 0; | ||
border: 0; | ||
vertical-align: baseline; | ||
} | ||
figcaption { | ||
display: block; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.