Skip to content

Commit

Permalink
♻️ image paths
Browse files Browse the repository at this point in the history
  • Loading branch information
manoncarbonnel committed Jun 25, 2024
1 parent b53214e commit 8b04175
Show file tree
Hide file tree
Showing 25 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion components/big-concept.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defineProps({
<style scoped>
.big-concept {
align-items: center;
background: url("../styles/images/bg-home.svg") no-repeat center/contain;
background: url("/bg-home.svg") no-repeat center/contain;
color: #fff;
display: flex;
height: 300px;
Expand Down
2 changes: 1 addition & 1 deletion components/watermark.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<aside class="watermark">
<img class="watermark-logo" src="../styles/images/logo-red.jpg" alt="Logo Shodo" />
<img class="watermark-logo" src="/logo-red.jpg" alt="Logo Shodo" />
<span class="watermark-title">Crafting sustainable code we do</span>
</aside>
</template>
Expand Down
11 changes: 4 additions & 7 deletions example.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Is the color of blood, and because of this it has historically been associated w
```yaml
layout: image-right
image: styles/images/image-illustration-manifeste.png
image: /image-illustration-manifeste.png
```
### A picture is worth a thousand words
Expand Down Expand Up @@ -283,7 +283,7 @@ console.log('Modified text')
```yaml
layout: image
image: styles/images/image-illustration-manifeste.png
image: /image-illustration-manifeste.png
```
Want big impact?
Expand Down Expand Up @@ -316,19 +316,16 @@ layout: three-rows
```
::top::
<strong>89,526,124$</strong>
That’s a lot of money
::center::
<strong>185,244 users</strong>
And a lot of users
::bottom::
<strong>100%</strong>
Total success!
Expand Down Expand Up @@ -669,7 +666,7 @@ database "MySql" {
```yaml
layout: screenshot
layoutClass: laptop
screenshot: styles/images/image-illustration-manifeste.png
screenshot: image-illustration-manifeste.png
```
::left::
Expand All @@ -685,7 +682,7 @@ Show and explain your web, app or software projects using these gadget templates
```yaml
layout: screenshot
layoutClass: mobile
screenshot: styles/images/shodo.io-screenshot.png
screenshot: shodo.io-screenshot.png
```
::left::
Expand Down
2 changes: 1 addition & 1 deletion layouts/image-left.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
---
```yaml
layout: image-left
image: <img-path>
image: /<img-path>
(optional) backgroundSize: default "cover"
```
<content>
Expand Down
2 changes: 1 addition & 1 deletion layouts/image-right.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
---
```yaml
layout: image-right
image: <img-path>
image: /<img-path>
(optional) backgroundSize: default "cover"
```

Expand Down
2 changes: 1 addition & 1 deletion layouts/image.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
---
```yaml
layout: image
image: <img-path>
image: /<img-path>
(optional) backgroundSize: default "cover"
```
-->
Expand Down
7 changes: 4 additions & 3 deletions layouts/screenshot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
---
```yaml
layout: screenshot
(optional) layoutClass: laptop or mobile
(optional) layoutClass: "laptop" or "mobile"
screenshot: <image local name> | <remote url>
```

::left::
Expand Down Expand Up @@ -110,7 +111,7 @@ const props = defineProps({
}

&::after {
background-image: url("styles/images/macbook-air-frame.png");
background-image: url("/macbook-air-frame.png");
background-size: 100%;
background-repeat: no-repeat;
content: "";
Expand All @@ -130,7 +131,7 @@ const props = defineProps({
}

&::after {
background-image: url("styles/images/iphone-15-pro-max-frame.png");
background-image: url("/iphone-15-pro-max-frame.png");
background-size: 56%;
background-repeat: no-repeat;
content: "";
Expand Down
3 changes: 3 additions & 0 deletions layouts/three-rows.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ layout: three-rows

::top::
<strong>Top</strong>

This shows on the top

::center::
<strong>Center</strong>

This shows on the center

::bottom::
<strong>Bottom</strong>

This shows on the bottom
```
-->
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
6 changes: 3 additions & 3 deletions styles/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ html.light .slidev-layout.intro::after,
html.light .slidev-layout.section::after,
html.light .slidev-layout.quote::after,
html.light .slidev-layout.end::after {
background: url("images/Path_Top1-light-mode.svg");
background: url("/brush-stroke-light-mode.svg");
}

html.dark .slidev-layout.cover::after,
html.dark .slidev-layout.intro::after,
html.dark .slidev-layout.section::after,
html.dark .slidev-layout.quote::after,
html.dark .slidev-layout.end::after {
background: url("images/Path_Top1-dark-mode.svg");
background: url("/brush-stroke-dark-mode.svg");
}

.slidev-layout.cover::after,
Expand Down Expand Up @@ -156,7 +156,7 @@ ul li {
width: 48px;

&::before {
content: url("styles/images/arrow.svg");
content: url("/arrow.svg");
height: 24px;
left: 12px;
position: absolute;
Expand Down

0 comments on commit 8b04175

Please sign in to comment.