aboutsummaryrefslogtreecommitdiffstats
path: root/src/Pages/Read.cshtml
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-11-15 06:20:30 +0100
committerivarlovlie <git@ivarlovlie.no>2022-11-15 06:20:30 +0100
commitaa1e0e321ad64b72d80efcb7984acdf1cd3d6b7a (patch)
tree4abce617ce12dea1ebe9f030d93ebb5f4407cad8 /src/Pages/Read.cshtml
parentadd94527050dc311c4ad117e25dd5e4517b3b887 (diff)
downloadlettnytt-aa1e0e321ad64b72d80efcb7984acdf1cd3d6b7a.tar.xz
lettnytt-aa1e0e321ad64b72d80efcb7984acdf1cd3d6b7a.zip
refactor: Add some styling
Diffstat (limited to 'src/Pages/Read.cshtml')
-rw-r--r--src/Pages/Read.cshtml24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/Pages/Read.cshtml b/src/Pages/Read.cshtml
index 2aecc75..cbbd69a 100644
--- a/src/Pages/Read.cshtml
+++ b/src/Pages/Read.cshtml
@@ -4,23 +4,31 @@
ViewData["Title"] = Model.Source.Title;
}
-<div style="display: flex; justify-content: space-between">
+<div id="art-header" style="display: flex; justify-content: space-between">
<div>
<h1>@Model.Source.Title</h1>
<p>@Model.Source.Subtitle</p>
</div>
- <div style="display: flex; flex-direction: row">
+ <div style="display: flex; flex-direction: column; flex-wrap: nowrap">
<div style="flex-direction:column">
- <small>Publisert: @Model.Source.PublishedAt.ToString("F")</small><br>
- <small>Oppdatert: @Model.Source.UpdatedAt.ToString("F")</small>
+ @if (Model.Source.PublishedAt != default) {
+ <small style="white-space: nowrap">Publisert: @Model.Source.PublishedAt.ToString("dd-MM-yyyy hh:mm:ss")</small>
+ }
+ @if (Model.Source.UpdatedAt != default) {
+ <br/>
+ <small style="white-space: nowrap">Oppdatert: @Model.Source.UpdatedAt.ToString("dd-MM-yyyy hh:mm:ss")</small>
+ }
</div>
- <div style="margin: 0 5px; height: 100%; border: 1px solid black"></div>
+ <div style="margin: 0 5px; border: 0.5px solid black"></div>
<div style="flex-direction:column">
@foreach (var author in Model.Source.Authors) {
- <small><em>@author.Name</em>: @author.Title</small> <br/>
+ <small style="white-space: nowrap"><b>@author.Name</b>: @author.Title</small>
+ <br/>
}
</div>
</div>
</div>
-<hr>
-@Html.Raw(Model.Source.Content) \ No newline at end of file
+
+<div id="art-body">
+ @Html.Raw(Model.Source.Content)
+</div> \ No newline at end of file