Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

refactor: move /images to /src/public/images #265

Merged
merged 1 commit into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/docs/src/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@

これらのファイルが `create-vue` で作成されます。

![Vite App](../images/vite-app.png)
![Vite App](/images/vite-app.png)
14 changes: 7 additions & 7 deletions packages/docs/src/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

このハンズオンでは、簡単な商品の一覧を表示し、購入する商品を選択できるプログラムを作成します。プログラムを作成する過程で Vue.js の基本を学べます。

![vue-app](../images/sample.png)
![vue-app](/images/sample.png)

> このハンズオンを完了した場合の完成イメージは [こちら](https://handson-example.vuejs-jp.org/) で確認できます。

Expand Down Expand Up @@ -38,13 +38,13 @@ index.html
</noscript>
<div id="app">
<header class="header">
<img src="../images/logo.svg" alt="" />
<img src="/images/logo.svg" alt="" />
<h1>Vue.js ハンズオン</h1>
</header>
<main class="main">
<div class="item">
<div class="thumbnail">
<img src="../images/item1.jpg" alt="" />
<img src="/images/item1.jpg" alt="" />
</div>
<div class="description">
<h2>アボカドディップバケット</h2>
Expand All @@ -56,7 +56,7 @@ index.html
</div>
<div class="item">
<div class="thumbnail">
<img src="../images/item2.jpg" alt="" />
<img src="/images/item2.jpg" alt="" />
</div>
<div class="description">
<h2>あの日夢見たホットケーキ</h2>
Expand All @@ -68,7 +68,7 @@ index.html
</div>
<div class="item">
<div class="thumbnail">
<img src="../images/item3.jpg" alt="" />
<img src="/images/item3.jpg" alt="" />
</div>
<div class="description">
<h2>HOP WTR</h2>
Expand All @@ -80,7 +80,7 @@ index.html
</div>
<div class="item">
<div class="thumbnail">
<img src="../images/item4.jpg" alt="" />
<img src="/images/item4.jpg" alt="" />
</div>
<div class="description">
<h2>チーズフレンチフライ</h2>
Expand Down Expand Up @@ -200,7 +200,7 @@ body {
```html
<div class="item">
<div class="thumbnail">
<img src="../images/item1.jpg" alt="" />
<img src="/images/item1.jpg" alt="" />
</div>
<div class="description">
<h2>アボカドディップバケット</h2>
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/src/rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ code .

アプリケーションのメニューで Visual Studio Code を起動し、「ファイル」-「フォルダーを開く」で自分の環境のプロジェクトディレクトリを選択します。

![vscode](../images/vscode.png)
![vscode](/images/vscode.png)

## 画像ファイルの配置

次に、ハンズオンで使う商品の画像を用意しましょう。ハンズオン用の画像ファイル([vue3-lab-handson-images.zip](./vue3-lab-handson-images.zip 'vue3-lab-handson.zip'))をダウンロードおよび解凍します。
次に、ハンズオンで使う商品の画像を用意しましょう。ハンズオン用の画像ファイル([vue3-lab-handson-images.zip](/vue3-lab-handson-images.zip 'vue3-lab-handson.zip'))をダウンロードおよび解凍します。

あらかじめ作成しておいた Vue.js プロジェクトを開き、 `public` ディレクトリの下に `images` ディレクトリを新しく作成します。作成した `images` ディレクトリの中に、先ほど解凍した画像ファイルをすべてコピーします。

Expand Down
4 changes: 2 additions & 2 deletions packages/docs/src/v-for.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const tasks = ref(['タスクA', 'タスクB', 'タスクC'])
・タスクC
```

![v-for 構文の出力例](../images/v_for_result1.png)
![v-for 構文の出力例](/images/v_for_result1.png)

## 複数の商品をレンダリング

Expand Down Expand Up @@ -164,7 +164,7 @@ v-for を使った template タグは DOM 要素としてレンダリングさ

このように `v-for` を使うことで、以下のように商品を複数レンダリングできるようになりました。

![複数の商品をレンダリングの出力例](../images/v_for_result2.png)
![複数の商品をレンダリングの出力例](/images/v_for_result2.png)

<PlusOne />

Expand Down
Loading