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