Skip to content

Commit

Permalink
Merge pull request #3 from moudev/style/update-imagex-layout
Browse files Browse the repository at this point in the history
style: update image-x layout
  • Loading branch information
moudev committed Oct 26, 2021
2 parents 2326123 + dbaacdc commit 89cc3db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions example.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ layout: intro

---
layout: image-x
image: 'https://source.unsplash.com/collection/94734566/600x600'
image: 'https://user-images.githubusercontent.com/13499566/138951075-018e65d5-b5fe-4200-9ea7-34315b1764da.jpg'
imageOrder: 1
---

Expand All @@ -102,7 +102,7 @@ image 600x600

---
layout: image-x
image: 'https://source.unsplash.com/collection/94734566/1080x1920'
image: 'https://user-images.githubusercontent.com/13499566/138950866-7d2addb2-fe3f-41f5-aab6-d35688516612.jpg'
imageOrder: 2
---

Expand Down Expand Up @@ -194,7 +194,7 @@ Hover on the bottom-left corner to see the navigation's controls panel

---
layout: image-right
image: 'https://source.unsplash.com/collection/94734566/1920x1080'
image: 'https://user-images.githubusercontent.com/13499566/138950614-52ec045b-aa93-4d52-91df-b782cc9c7143.jpg'
---

# Code
Expand Down
2 changes: 1 addition & 1 deletion layouts/image-x.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default defineComponent({
<div class="w-1/2 flex justify-center items-center p-8 max-h-md object-cover" :class="imageOrder">
<img :src="image" class="rounded-2xl border-image h-full object-cover" />
</div>
<div class="w-1/2 flex items-center" :class="textAlignment">
<div class="w-1/2 flex flex-col justify-center" :class="textAlignment">
<slot />
</div>
</div>
Expand Down

0 comments on commit 89cc3db

Please sign in to comment.