Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add step component #76

Merged
merged 10 commits into from
Jul 8, 2024
Prev Previous commit
Next Next commit
feat: add step component responsive
  • Loading branch information
yolophg committed Jul 8, 2024
commit f843c2e8d9f1ce1d8a345a3c981ce62d8eef2ff9
27 changes: 20 additions & 7 deletions components/step.js
Original file line number Diff line number Diff line change
@@ -32,28 +32,41 @@ class Step extends HTMLElement {
border-radius: 10px;
padding: 106px 53px;
text-align: center;
width: 375px;
height: 627px;
border: 5px solid transparent;
background-clip: padding-box, border-box;
background-origin: padding-box, border-box;
background-image: linear-gradient(white, white),
linear-gradient(135deg, #24eaca, #846de9);
}
.step-title h3 {
font-size: 36px;
font-size: 24px;
font-weight: var(--font-weight-medium);
}
.step-icon {
width: 60px;
height: 60px;
margin: 50px 0;
width: 40px;
height: 40px;
margin: 20px 0;
}
.step-content {
font-size: 24px;
font-size: 16px;
font-weight: var(--font-weight-regular);
word-break: keep-all;
}

/* Medium devices such as tablets (768px and up) */
@media only screen and (min-width: 768px) {
.step-title h3 {
font-size: 36px;
}
.step-icon {
width: 60px;
height: 60px;
margin: 50px 0;
}
.step-content {
font-size: 24px;
}
}
`;
}

6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -180,11 +180,15 @@
font-weight: medium;
}

/* 'instruction-card-list' style will be removed when the instruction card list component is created */
.instruction-card-list {
display: grid;
grid-template-columns: repeat(3, 375px);
grid-template-columns: minmax(375px, 1fr);
grid-template-rows: minmax(400px, 1fr);
gap: 10px;
padding-top: 40px;
place-content: center;
place-items: center;
}

.instruction-card {