@import 'partials/main'; @import 'partials/nav'; header { text-align: center; margin: 150px 0; h1 { font-size: 2em; } } .section-articles { margin: 20px 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 1rem; a { color: rgb(255, 255, 255); text-decoration: none; } article { background: rgb(60, 60, 90); color: rgb(255, 255, 255); padding: 20px; border-radius: 5px; display: grid; height: max-content; grid-template-columns: 120px 1fr; grid-template-areas: "img h1" "img p"; transition: background .2s; img { object-fit: cover; height: 180px; width: 120px; border-radius: 5px; border: 0px solid rgb(40, 40, 60); grid-area: img; margin: -20px; } h1 { margin: 0px; grid-area: h1; } .meta { margin: 0; grid-area: p; } .author { font-style: italic; color: rgb(200, 200, 230); } } article:hover { background: rgb(70, 70, 105); } } @media (max-width: 900px) { .section-articles { grid-template-columns: repeat(1, 1fr); } } .section-projects { margin: 20px 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 1rem; a { color: rgb(255, 255, 255); text-decoration: none; } article { background: rgb(60, 60, 90); color: rgb(255, 255, 255); padding: 20px; border-radius: 5px; display: flex; flex-flow: column; height: max-content; transition: background .2s; img { order: -1; max-width: calc(100% + 40px); border-radius: 5px; margin: -20px -20px 20px -20px; background: rgb(80, 80, 120); object-fit: cover; max-height: 170px; } h1 { margin-top: 0; } .meta { margin: 0; } .status { font-style: italic; color: rgb(200, 200, 230); } } article:hover { background: rgb(70, 70, 105); } } @media (max-width: 900px) { .section-projects { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 600px) { .section-projects { grid-template-columns: repeat(1, 1fr); } } @import 'partials/footer';