#home-page { display: flex; flex-direction: column; gap: 20px; margin-bottom: 60px; .section-title { padding: 10px; margin: 0; } .articles-displayer { margin: 0 auto 40px; display: grid; grid-template-columns: 1fr auto 1fr; .prev-btn, .next-btn { border: none; background-image: url("/assets/images/wallpaper_binary.png"); width: 50px; &.disabled { pointer-events: none; } &.active { cursor: pointer; color: $medium_grey; &:hover { color: $light_0; } } } .next-btn { &.active { &::before { content: " "; border-style: solid; border-width: 4px 4px 0 0; width: 20px; height: 20px; transform: rotate(45deg); @include flex-center; position: relative; } } } .prev-btn { &.active { &::before { content: " "; border-style: solid; border-width: 4px 4px 0 0; width: 20px; height: 20px; transform: rotate(-135deg); @include flex-center; position: relative; left: 8px; } } } article { display: grid; gap: 5px 20px; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto 1fr; position: relative; padding-left: 20px; .date { grid-column: 1; grid-row: 1; text-align: right; span { color: $medium_grey; font-style: italic; font-size: 12px; } } .title { grid-column: 1; grid-row: 2; h3 { margin: 0 0 10px; } } .subtitle { grid-column: 1; grid-row: 3; font-style: italic; font-size: 15px; } .body { grid-column: 1; grid-row: 4; min-height: 250px; padding-bottom: 40px; } .image-carousel { grid-row: 1 / span 4; grid-column: 2; overflow: hidden; @include flex-center; background-color: black; position: relative; img { position: absolute; max-width: 100%; max-height: 400px; } .carousel-bullets { position: absolute; bottom: 0; padding: 20px; display: flex; gap: 10px; .bullet { cursor: pointer; width: 8px; height: 8px; background-color: $medium_grey; border-radius: 100%; box-shadow: 0 0 3px black; &.active { background-color: $light_0; } } } } &.article-placeholder { padding: 0 50px; * { background-color: $light_0; } .date { height: 10px; } .title { height: 40px; } .subtitle { height: 30px; } } } } .grid-3 { gap: 30px; .theme-card { display: flex; flex-direction: column; width: 100%; cursor: pointer; .card-img { width: 100%; height: 240px; overflow: hidden; @include flex-center-col; background-image: url("/assets/images/wallpaper_binary.png"); position: relative; img { position: absolute; min-width: 100%; min-height: 100%; } } .card-title { h2 { margin: 0; text-align: center; padding: 10px 20px; color: $blue_2; } } .card-description { background-image: url("/assets/images/wallpaper_binary.png"); flex: 1; padding: 20px 30px 30px; p { margin: 0; color: $blue_3; text-align: center; } } transition: transform 0.3s; &:hover { transform: scale(1.03); } } } @media screen and (max-width: $page_contents_center_width) { .articles-displayer, .grid-3 { padding: 0 20px; } .section-title { margin: 0 20px; } } }