Skip to content

Commit d0d022d

Browse files
author
Farzin
committed
Basic Settings Default Cover
1 parent d62939b commit d0d022d

4 files changed

Lines changed: 35 additions & 2 deletions

File tree

src/Blogifier.Admin/Pages/Settings/BasicView.razor

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
<label class="form-label">@_localizer["description"]</label>
2020
<textarea class="form-control" cols="30" rows="5" @bind="Blog.Description" name="description"></textarea>
2121
</div>
22+
<div class="form-item">
23+
<label class="form-label">@_localizer["Default Cover"]</label>
24+
<button class="settings-cover" type="button" onclick="">
25+
<img class="settings-cover-img" id="defaultCover" src="@Constants.DefaultCover" alt="@_localizer["Default Cover"]">
26+
</button>
27+
</div>
2228
<div class="form-item">
2329
<div class="form-check form-switch">
2430
<input class="form-check-input" type="checkbox" @bind="Blog.IncludeFeatured" id="IncludeFeaturedSwitch">

src/Blogifier.Admin/wwwroot/admin/css/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Blogifier.Admin/wwwroot/admin/css/app.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.settings {
2+
&-cover {
3+
height: 10rem;
4+
width: 100%;
5+
background: #fff;
6+
border-radius: 0.25rem;
7+
padding: 0;
8+
border: 0;
9+
overflow: hidden;
10+
box-shadow: 0 0 0 1px transparent;
11+
transition: box-shadow ease-in-out .15s;
12+
border:1px solid transparent;
13+
14+
&-img {
15+
width: 100%;
16+
height: 100%;
17+
object-fit: cover;
18+
object-position: center;
19+
}
20+
21+
&:focus,
22+
&:hover{
23+
outline: none;
24+
box-shadow: 0 0 0 1px $gray-600;
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)