@use '../colors'; @use '../layout'; @use '../typography'; .page-section { padding: layout.$large-gap; &.inverse { color: colors.$gray-50; background-color: colors.$blue-800; h2:after { background-color: colors.$gray-50; } } &.footer { background-color: colors.$teal-500; } } // Banners can be put at the top of a page to draw attention. A banner has // two children: // - A .background element which contains an image to render behind the text // - A .content which holds the actual text. .page-banner { display: flex; flex-direction: column; justify-content: space-around; position: relative; min-height: 60vh; > .background { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; img { width: 100%; height: 100%; object-fit: cover; } } > .content { display: flex; flex-direction: column; align-items: flex-start; position: relative; padding: layout.$normal-gap max(#{layout.$large-gap}, 15vw); > div { display: inline-block; padding: layout.$small-gap layout.$normal-gap; font-size: typography.$subheading-size; background-color: colors.$yellow-600; > p:first-child { margin-top: 0; } > p:last-child { margin-bottom: 0; } } > .title { padding: 0 layout.$normal-gap; line-height: 5rem; font-size: typography.$title-size; font-weight: typography.$emphasized-weight; background-color: colors.$teal-500; } } } // Actions are another module that is present on the home page. It shows a small // number of CTA-style buttons which lead to different parts of the site. .page-actions { padding: layout.$large-gap; background-color: colors.$teal-300; > *:not(:last-child) { margin-bottom: layout.$large-gap; } > div { > *:first-child { margin-top: 0; } > *:last-child { margin-bottom: 0; } } > a { margin: layout.$large-gap 0; padding: layout.$large-gap; background: colors.$gray-50; color: inherit; text-decoration: none; @include colors.card-shadow; > h3 { margin: 0; text-transform: uppercase; } } @media screen and (min-width: layout.$breakpoint) { display: grid; grid-template-columns: repeat(6, 1fr); gap: layout.$large-gap; align-items: stretch; > * { grid-column: span 3; &:not(:last-child) { margin-bottom: 0; } } > a { margin: 0; &.first { transform: translateY(#{-1 * layout.$huge-gap}); } &:not(.first) { grid-column: span 2; } } } }