diff --git a/README.md b/README.md index 6c9d984..e0b70d6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # zola-ludwig +The theme needs some translation keys to be put on the `config.toml` file to work: +```toml +default-language = "es" +[translations] +date-published = "Publicado en" +[languages.en.translations] +date-published = "Published on" +``` diff --git a/sass/forkawesome/_icons.scss b/sass/forkawesome/_icons.scss index 528e845..c5a16d8 100644 --- a/sass/forkawesome/_icons.scss +++ b/sass/forkawesome/_icons.scss @@ -48,7 +48,7 @@ // .#{$fa-css-prefix}-barcode:before { content: fa-content($fa-var-barcode); } // .#{$fa-css-prefix}-tag:before { content: fa-content($fa-var-tag); } // .#{$fa-css-prefix}-tags:before { content: fa-content($fa-var-tags); } -// .#{$fa-css-prefix}-book:before { content: fa-content($fa-var-book); } +.#{$fa-css-prefix}-book:before { content: fa-content($fa-var-book); } // .#{$fa-css-prefix}-bookmark:before { content: fa-content($fa-var-bookmark); } // .#{$fa-css-prefix}-print:before { content: fa-content($fa-var-print); } // .#{$fa-css-prefix}-camera:before { content: fa-content($fa-var-camera); } @@ -121,7 +121,7 @@ // .#{$fa-css-prefix}-warning:before, // .#{$fa-css-prefix}-exclamation-triangle:before { content: fa-content($fa-var-exclamation-triangle); } // .#{$fa-css-prefix}-plane:before { content: fa-content($fa-var-plane); } -// .#{$fa-css-prefix}-calendar:before { content: fa-content($fa-var-calendar); } +.#{$fa-css-prefix}-calendar:before { content: fa-content($fa-var-calendar); } // .#{$fa-css-prefix}-random:before { content: fa-content($fa-var-random); } // .#{$fa-css-prefix}-comment:before { content: fa-content($fa-var-comment); } // .#{$fa-css-prefix}-magnet:before { content: fa-content($fa-var-magnet); } diff --git a/sass/main.scss b/sass/main.scss index 74bcae3..2d75c6d 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -1,15 +1,26 @@ html { height: 100vh; -} - -body { - margin: 0; - background-color: rgb(80, 80, 80); - color: rgb(255, 255, 255); + text-rendering:optimizeLegibility; font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-size: 16pt; + color: rgb(255, 255, 255); +} + +a { + color: rgb(255, 255, 255); + text-decoration: none; + font-weight: bold; +} + +a:hover { + color: rgb(242,132,14); +} + +body { + margin: 0; + background-color: rgb(80, 80, 80); } main.home { @@ -17,6 +28,31 @@ main.home { display: flex; } +main.article { + width: 66vw; + max-width: 850px; + margin-left: auto; + margin-right: auto; + font-size: 14pt; +} + +header { + width: 66vw; + margin-left: auto; + margin-right: auto; +} + +header h1 { + font-size: 2.5em; + padding-top: 1em; + margin: 0; +} + +footer { + display: flex; + justify-content: center; +} + .column { display: flex; flex-direction: column; @@ -37,26 +73,105 @@ main.home { .instant { background-color: rgb(255, 255, 255); + color: rgb(10, 10, 10); padding: 2vw; + text-align: center; } -.instant img { +div.instant > img { max-width: 25vw; } .instant h1 { - text-align: center; - color: rgb(10, 10, 10); - font-weight: 700; + font-weight: 700; margin: 1vw 0 0 0; } .links a { - color: rgb(255, 255, 255); font-size: xx-large; } -.links a:hover { - color: rgb(242,132,14); +.meta { + padding-left: 0.75em; + color: rgb(200, 200, 200); + font-size: 0.9em; } +figure.instant { + margin-left: auto; + margin-right: auto; + padding: 2vw 0; +} + +figure > picture > img { + display: block; + margin: 0 2vw; + max-width: calc(100% - 4vw); + width: calc(100% - 4vw); + height: auto; +} + +figure > figcaption > p { + margin: 1vw 2vw 0; +} + +.gallery { + @extend .instant; + padding: 1.5vw; + --row-height: 23vh; + // margin: -0.25rem; + display: flex; + flex-wrap: wrap; + overflow: hidden; + justify-content: center; + align-items: flex-end; +} + +@media only screen and (max-height: 1044px) { +.gallery { + --row-height: 240px; +} +} + +.gallery > .box { + --ratio: calc(var(--w) / var(--h)); + flex-grow: calc(var(--ratio) * 100); + flex-shrink: calc(var(--ratio) * 100); + flex-basis: calc(var(--ratio) * var(--row-height)); + /*min-width: var(--min-width);*/ + min-height: calc(0.7 * var(--row-height)); + margin: 0.5vw; +} + +// .container-gallery .gallery .box { +// margin: 0.5rem; +// } + +.gallery > .box > figure { + display: block; + padding: 0; + margin: 0px; + width: 100%; + height: auto; + min-width: 100%; + min-height: 100%; + object-fit: cover; +} + +.gallery img { + margin: 0; + min-width: 100%; + min-height: 100%; +} + +// .gallery + .box { +// margin-top: calc(0.5rem); +// } +// +// .gallery + .gallery { +// margin-top: calc(0.25rem); +// } +// +// .box + .gallery { +// margin-top: calc(0.25rem - 10px); +// } diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..5539f5c --- /dev/null +++ b/templates/page.html @@ -0,0 +1,40 @@ + + +
+ + +