We got a gallery.

This commit is contained in:
Unnoen 2022-01-10 02:50:35 +11:00
parent 7419fc75a5
commit 60f4de0fdc
No known key found for this signature in database
GPG Key ID: 8F8E42252BA20553
8 changed files with 24 additions and 16 deletions

View File

@ -1,4 +1,5 @@
<div class="item" style="background-image: url(@ImageURL);"> <div class="item">
<img src="@ImageURL" alt="@Title Image">
<div class="info"> <div class="info">
<div class="title">@Title</div> <div class="title">@Title</div>
<div class="description">@Description</div> <div class="description">@Description</div>

View File

@ -1,7 +1,16 @@
.item { .item {
width: 150px; width: 400px;
height: 100px; height: 400px;
border-radius: 0.75rem; border-radius: 0.75rem;
overflow: hidden;
margin: 1rem;
img {
width: 100%;
height: 225px;
object-fit: cover;
border-radius: 0.75rem;
}
.info { .info {
.title { .title {

View File

@ -1,6 +1,7 @@
<nav> <nav>
<a href="">Home</a> <a href="">Home</a>
<a href="/gallery">Gallery</a> <a href="/gallery">Gallery</a>
<a href="">Install</a>
<a href="">Compile</a> <a href="">Compile</a>
<a href="">Settings</a> <a href="">Settings</a>
</nav> </nav>

View File

@ -10,7 +10,7 @@
<div id="content"> <div id="content">
@foreach (ModListItem item in listItems) @foreach (ModListItem item in listItems)
{ {
<ModListItem ImageURL=@item.ImageURL Title=@item.Title Description=@item.Description></ModListItem> <ModlistItem ImageURL=@item.ImageURL Title=@item.Title Description=@item.Description></ModlistItem>
} }
</div> </div>

View File

@ -0,0 +1,6 @@
#content {
width: 100%;
display: flex;
flex-flow: row wrap;
justify-content: space-evenly;
}

View File

@ -1,13 +1,4 @@
@using Wabbajack.Paths.IO @page "/"
@using Wabbajack.Paths
@using System;
@using System.Collections.Generic;
@using System.Text.Json;
@using Wabbajack.Common
@using Newtonsoft.Json;
@using Newtonsoft.Json.Linq
@page "/"
@layout Shared.MainLayout @layout Shared.MainLayout
<News/> <News/>
<div id="content"></div> <div id="content"></div>

View File

@ -6,7 +6,7 @@
<div class="main"> <div class="main">
<Sidebar/> <Sidebar/>
<div class="content"> <div class="page">
@Body @Body
</div> </div>

View File

@ -7,7 +7,7 @@
min-height: 100vh; min-height: 100vh;
} }
.content { .page {
padding: 0.5rem; padding: 0.5rem;
flex: 1 1 0; flex: 1 1 0;
} }