Skip to content

Commit

Permalink
feat: スタイリング
Browse files Browse the repository at this point in the history
  • Loading branch information
haruyan-hopemucci committed Feb 18, 2024
1 parent 365ba0d commit a96d178
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 79 deletions.
16 changes: 16 additions & 0 deletions docs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,20 @@ canvas#output-image {

img[hidden] {
display: none;
}

.history-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 4px;
width: 100%;
}
.history-container .history-item {
-o-object-fit: cover;
object-fit: cover;
}
.history-container .history-item img {
width: 100%;
-o-object-fit: contain;
object-fit: contain;
}/*# sourceMappingURL=style.css.map */
2 changes: 1 addition & 1 deletion docs/css/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 15 additions & 2 deletions docs/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
// left: 1em;
// z-index: -100;
}

}

img#pasted-image {
Expand All @@ -26,4 +25,18 @@ canvas#output-image {

img[hidden] {
display: none;
}
}

.history-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 4px;
width: 100%;
.history-item {
object-fit: cover;
img {
width: 100%;
object-fit: contain;
}
}
}
159 changes: 83 additions & 76 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,85 +28,92 @@
<body>
<main class="container">
<h1>LGTN Generator <small>v0.5.0</small></h1>
<div id="paste-area">
<div id="paste-area-message">
クリップボードにコピーした画像をペーストしてください。
<div class="row">
<div class="col-md-6">
<div id="paste-area">
<div id="paste-area-message">
クリップボードにコピーした画像をペーストしてください。
</div>
</div>
<div>
<div class="form-check form-check-inline">
<input
class="form-check-input"
type="radio"
name="chooseOverlay"
id="inlineRadio1"
value="LGTM"
checked
/>
<label class="form-check-label" for="inlineRadio1"
>LGTM画像を生成</label
>
</div>
<div class="form-check form-check-inline">
<input
class="form-check-input"
type="radio"
name="chooseOverlay"
id="inlineRadio2"
value="LGTN"
/>
<label class="form-check-label" for="inlineRadio2"
>LGTN画像を生成</label
>
</div>
</div>
<div>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="textPosition"
id="textPositionTop"
value="top"
/>
<label class="form-check-label" for="textPositionTop"
>テキスト位置:上</label
>
</div>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="textPosition"
id="textPositionMiddle"
value="middle"
checked
/>
<label class="form-check-label" for="textPositionMiddle"
>テキスト位置:中</label
>
</div>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="textPosition"
id="textPositionBottom"
value="bottom"
/>
<label class="form-check-label" for="textPositionBottom"
>テキスト位置:下</label
>
</div>
</div>
<img id="pasted-image" hidden />
<img id="img__LGTM" src="./img/lgtm.png" hidden />
<img id="img__LGTN" src="./img/lgtn.png" hidden />
<canvas id="output-image" width="400" height="400"></canvas>
</div>
</div>
<div>
<div class="form-check form-check-inline">
<input
class="form-check-input"
type="radio"
name="chooseOverlay"
id="inlineRadio1"
value="LGTM"
checked
/>
<label class="form-check-label" for="inlineRadio1"
>LGTM画像を生成</label
>
</div>
<div class="form-check form-check-inline">
<input
class="form-check-input"
type="radio"
name="chooseOverlay"
id="inlineRadio2"
value="LGTN"
/>
<label class="form-check-label" for="inlineRadio2"
>LGTN画像を生成</label
>
<div class="col-md-6">
<section id="history" class="history">
<h2>History</h2>
<div id="history-container" class="history-container"></div>
</section>
</div>
</div>
<div>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="textPosition"
id="textPositionTop"
value="top"
/>
<label class="form-check-label" for="textPositionTop"
>テキスト位置:上</label
>
</div>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="textPosition"
id="textPositionMiddle"
value="middle"
checked
/>
<label class="form-check-label" for="textPositionMiddle"
>テキスト位置:中</label
>
</div>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="textPosition"
id="textPositionBottom"
value="bottom"
/>
<label class="form-check-label" for="textPositionBottom"
>テキスト位置:下</label
>
</div>
</div>
<img id="pasted-image" hidden />
<img id="img__LGTM" src="./img/lgtm.png" hidden />
<img id="img__LGTN" src="./img/lgtn.png" hidden />
<canvas id="output-image" width="400" height="400"></canvas>
<section id="history" class="history">
<h2>History</h2>
<div id="history-container" class="history-container"></div>
</section>

<div class="alert alert-warning" role="alert">
<h2>使用方法</h2>
<ul>
Expand Down

0 comments on commit a96d178

Please sign in to comment.