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="title">@Title</div>
<div class="description">@Description</div>

View File

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

View File

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

View File

@ -10,7 +10,7 @@
<div id="content">
@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>

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
@using Wabbajack.Paths
@using System;
@using System.Collections.Generic;
@using System.Text.Json;
@using Wabbajack.Common
@using Newtonsoft.Json;
@using Newtonsoft.Json.Linq
@page "/"
@page "/"
@layout Shared.MainLayout
<News/>
<div id="content"></div>

View File

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

View File

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