Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 133 additions & 0 deletions assets/styles/components/card.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
.listing {

padding-left: 1rem;
padding-right: 1rem;

&__inner {
display: grid;
grid-template-columns: repeat(1, 1fr);
grid-gap: 1rem;

// md
@media (min-width: 768px) {
grid-template-columns: repeat(2, 1fr);

.card:last-child {
grid-column: span 2;
}
}

// lg
@media (min-width: 1024px) {
grid-template-columns: repeat(3, 1fr);

.card:last-child {
grid-column: auto;
}
}

// @include screen(tablet) {
// grid-template-columns: repeat(3, 1fr);
// }
}

&__item {

text-decoration: none;

.card {
&__body {
position: relative;
z-index: 10;
padding: 2rem;

&-label {
display: inline-block;
border-radius: 4px;
font-weight: 600;
font-size: 12px;
padding: 0.5rem 1rem 0.5rem 1rem;
margin-bottom: 1rem;

&.white {
color: #3F3F46;
background-color: #F4F4F4;
}

&.blue {
color: #175CD3;
background-color: #D1E9FF;
}

&.purple {
color: #6927DA;
background-color: #ECE9FE;
}

}

&-title {
font-weight: 700;
font-size: 24px;
line-height: 125%;
// @include typography(header);
color: #FFFFFF;
margin-bottom: 0.7rem;
}

&-location {
font-weight: 600;
font-size: 14px;
color: #FFFFFF;
display: flex;
align-items: center;

.icon {
height: 20px;
margin-right: 0.3rem;
}
}
}

&__media {
height: 480px;
border-radius: 8px;
display: flex;
align-items: end;
position: relative;
overflow: hidden;

&:hover {
.card__media-bg {
transform: scale(1.1);
}
}

&-bg {
transition: 0.4s ease;
position: absolute;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
height: 100%;
width: 100%;
top: 0px;
left: 0px;

&::after {
content: "";
background: rgb(0,0,0);
background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
border-bottom-right-radius: 8px;
border-bottom-left-radius: 8px;
height: 50%;
width: 100%;
position: absolute;
bottom: 0px;
left: 0px;
}
}
}
}
}
}
99 changes: 99 additions & 0 deletions assets/styles/components/cta.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
.cta {

width: 100%;
padding-left: 1rem;
padding-right: 1rem;
margin-bottom: 2rem;

@include screen(tablet) {
margin-bottom: 3rem;
}

.cta__header-container {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 2rem;
// @include responsive-slot('margin-bottom', component, spacing);
}

.cta__title {
color: #18181B;
font-weight: 700;
font-size: 22px;

// md
@media (min-width: 768px) {
font-size: 32px;
}

// lg
@media (min-width: 1024px) {
font-size: 40px;
}
}

.cta__text {
font-weight: 400;
line-height: 160%;
letter-spacing: 0.02em;
color: #18181B;
font-size: 16px;
margin-bottom: 2rem;

// md
@media (min-width: 768px) {
font-size: 17px;
}

// lg
@media (min-width: 1024px) {
font-size: 18px;
}
}

.cta__button {
display: none;
justify-content: center;
align-items: center;
padding: 12px 16px;
border: 1px solid #D1D1D6;
border-radius: 8px;
text-decoration: none !important;
font-weight: 600;
font-size: 16px;
color: #3F3F46;
transition: ease 0.3s ease;

@include screen(tablet) {
display: flex;
}

&:hover {
background-color: black;
color: white;
border-color: black;
}

.cta__button--icon {
height: 15px;
}

.cta__button--innertext {
margin-right: 10px;
}

&--responsive {

@extend .cta__button;
display: flex;
margin-top: 20px;

@include screen(tablet) {
display: none;
}

}
}

}
26 changes: 26 additions & 0 deletions assets/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ body {
}

.component {
max-width: 1280px;
width: 100%;
margin: 0 auto;

Expand All @@ -66,17 +67,42 @@ body {
line-height: 1.4;
}
}

.main-content-link {
color: slot(page, accent);
}

.main-content-strong {
font-weight: bold;
}

.main-content-image {
display: block;
width: 100%;
max-width: 100%;
height: auto;
margin-bottom: 1.5em;
}

.page-container {
min-height: 100vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
padding-top: 5rem;
padding-bottom: 5rem;

@include screen(desktop) {
padding-top: 0rem;
padding-bottom: 0rem;
}
}

.desktop-break {
display: none;
// md
@media (min-width: 768px) {
display: inline-block;
}
}
2 changes: 2 additions & 0 deletions assets/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@

@import "components/info-box.scss";

@import "components/card.scss";

@import "components/cta.scss";
Loading