From e15d9d638d325f10ec3054efaf1f017ed89fbc75 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sat, 25 Dec 2021 23:24:57 -0800 Subject: [PATCH] setup cards for content --- suchwowx/static/css/custom.css | 22 ++++++++++++++--- suchwowx/templates/index.html | 45 +++++++++++++++++++++++++--------- 2 files changed, 53 insertions(+), 14 deletions(-) diff --git a/suchwowx/static/css/custom.css b/suchwowx/static/css/custom.css index 5f1b3c0..53be0d1 100644 --- a/suchwowx/static/css/custom.css +++ b/suchwowx/static/css/custom.css @@ -4,6 +4,22 @@ margin: 0 auto; } -/* #memeImage { - cursor: zoom-in; -} */ +.card { + margin: 1em; + padding: 1em; + width: 300px; + border-radius: 6px; +} + +.image { + text-align: center; +} + +.image img, .image video { + border-radius: 6px; +} + +.img-fluid { + max-height: 200px; + object-fit: cover; +} diff --git a/suchwowx/templates/index.html b/suchwowx/templates/index.html index b9ce8e8..ce222c2 100644 --- a/suchwowx/templates/index.html +++ b/suchwowx/templates/index.html @@ -22,17 +22,40 @@
{% for meme in _meme %} -