Skip to content

Commit

Permalink
:refactor: 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 e148e8d
Show file tree
Hide file tree
Showing 24 changed files with 14 additions and 14 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
8 changes: 4 additions & 4 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 @@ -669,7 +669,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 +685,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
4 changes: 2 additions & 2 deletions layouts/screenshot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,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 +130,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
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 e148e8d

Please sign in to comment.