Los article parecidos al mockup, creada sección de juegos
authorVladImpaler <fake@email.com>
Fri, 21 Apr 2023 19:42:57 +0000 (13:42 -0600)
committerVladImpaler <fake@email.com>
Fri, 21 Apr 2023 19:42:57 +0000 (13:42 -0600)
themes/droda/assets/css/main.css
themes/droda/layouts/_default/article.html
themes/droda/layouts/_default/list.html

index 2998fa7d8eb32d05c330b3b0a3bfe59d3148890d..f18e78206894e82ada680bbdb46140bccc12eafd 100644 (file)
@@ -19,8 +19,8 @@
 
 :root {
    --bgColorDark: #0e0e0e;
-   --bgColorMidDark: #353b43;
-   --bgColorLightDark: #4f5864;
+   --bgColorMidDark: #292e35;
+   --bgColorLightDark: #373d46;
    --bgColorLight: #D2D2D2;
    --bgColorBlue: #1b6694;
    --bgColorSalamandra: rgb(236, 162, 143);
@@ -212,6 +212,7 @@ main {
    background-position-x: right;
    background-position-y: bottom;
    background-repeat: no-repeat;
+   overflow-y: auto;
 }
 
 /* Regla que aplica solo a firefox */
@@ -227,19 +228,39 @@ main hr {
    width: 100%;
 }
 
-.articles {
+main div {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: space-between;
 }
 
-.articles article {
-   width: 30rem;
-   border: 1px solid;
-   border-radius: 0.5rem;
-   padding: 1rem;
+main div > article {
+   display: inline-block;
+   width: calc(50% - 2rem);
    margin: 1rem;
+   border-radius: 0.5rem;
+
+   max-height: 20rem;
+   min-height: 20rem;
+
+   background-color: var(--bgColorLightDark);
+   box-shadow: 0 4px 1px 0.2px var(--bgColorDark);
+
+   overflow-y: auto;
+}
+
+main div > article img {
+   width: 100%;
+   min-height: 12rem;
+   max-height: 12rem;
+   background-color: var(--bgColorLight);
+}
+
+main div > article span {
+   padding: 0 1rem;
+   word-break: break-all;
+   display: block;
 }
 
 .content table {
index 970cf536f5921d73dba7371258746e6f838d8a6c..c39d399b253f036aafbec8fdd768fcc45a32fa55 100644 (file)
@@ -1,5 +1,8 @@
 <article>
-  <p>{{ .Description }}</p>
-  <hr>
-  <a href="{{ .Permalink }}">{{ .Title }}</a>
+  <img src="{{ .Params.image | absURL }}">
+  <span>
+    <a href="{{ .Permalink }}">{{ .Title }}</a>
+    <hr>
+    <p>{{ .Description }}</p>
+  </span>
 </article>
index 8ef3831a39d95ece4ee8d12a7ec02fc4da0fbf0d..aec3c2118f519a42dc82b4f4ee7a8d9d95f5a8c2 100644 (file)
@@ -1,6 +1,6 @@
 {{ define "main" }}
 <main>
-  <div class="articles">
+  <div>
     {{ $paginator := .Paginate (where .Data.Pages "Section" .Section) }}
     {{ range $paginator.Pages }}
     {{ .Render "article" }}