diff --git a/card.css b/card.css new file mode 100644 index 0000000..26e2937 --- /dev/null +++ b/card.css @@ -0,0 +1,76 @@ +@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); + +body { + margin: 0; + padding: 0; + display: flex; + justify-content: center ; + align-items: center; + background-color: lightgray; + height: 100vh; + font-family: 'Roboto', sans-serif; +} +.card { + display: flex; + flex-direction: column; + width: 400px; + height: 190px; + -webkit-box-shadow: 0px 1px 13px 1px rgba(0,0,0,0.47); + -moz-box-shadow: 0px 1px 13px 1px rgba(0,0,0,0.47); + box-shadow: 0px 1px 13px 1px rgba(0,0,0,0.47); + border-radius: 5px; + background: white; + overflow: hidden; + border: 1px solid lightgray; + +} +.card__header { + display: flex; + justify-content: space-between; +} +.card__header--image { + width: 123px; + height: 123px; + /* border: 1px solid gray; */ +} +.card__header--image img { + width: 100%; + object-fit: cover; +} +.card__title { + text-align: left; + height: 123px; + display: flex; + padding-left: 25px; + flex-direction: column; + align-items: flex-start; + justify-content: center; + flex: 1; + /* border: 1px solid lightgray; */ +} +.card__title h2 { + margin: 0; + padding-bottom: 10px; +} +.card__title p { + margin: 0; +} +.card__footer { + display: flex; + align-items: center; + border-top: 1px solid lightgray; + justify-content: space-between; + height: 100%; +} + +.card__suggestion p { + margin: 0; + padding-left: 15px; +} +.card__footer--rating { + padding-right:15px; +} +.card__footer--rating img { + width: 20px; + padding: 8px; +} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..38e775f --- /dev/null +++ b/index.html @@ -0,0 +1,34 @@ + + +
+ + +
+ Under de grave
(2016)