-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
729db94
commit e47dfe3
Showing
4 changed files
with
196 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
function ready(fn) { | ||
if (document.readyState != "loading") { | ||
fn(); | ||
} else { | ||
document.addEventListener("DOMContentLoaded", fn); | ||
} | ||
} | ||
ready(main); | ||
|
||
function main() { | ||
function handleIntersection(entries, observer) { | ||
entries.forEach((entry) => { | ||
if (entry.isIntersecting) { | ||
entry.target.classList.add("visible"); | ||
} | ||
}); | ||
} | ||
|
||
const observer = new IntersectionObserver(handleIntersection); | ||
|
||
const cards = document.querySelectorAll(".developer-tools-card"); | ||
cards.forEach((card) => { | ||
observer.observe(card); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
@keyframes slideInFromBottom { | ||
0% { | ||
transform: translateY(10%); | ||
opacity: 0; | ||
} | ||
100% { | ||
transform: translateY(0); | ||
opacity: 1; | ||
} | ||
} | ||
|
||
@-moz-keyframes slideInFromBottom { | ||
0% { | ||
transform: translateY(10%); | ||
opacity: 0; | ||
} | ||
100% { | ||
transform: translateY(0); | ||
opacity: 1; | ||
} | ||
} | ||
|
||
@-webkit-keyframes slideInFromBottom { | ||
0% { | ||
transform: translateY(10%); | ||
opacity: 0; | ||
} | ||
100% { | ||
transform: translateY(0); | ||
opacity: 1; | ||
} | ||
} | ||
|
||
.developer-tools-page { | ||
.title { | ||
font-size: 32px; | ||
font-weight: bold; | ||
margin-bottom: 4px; | ||
} | ||
|
||
.col-12 { | ||
padding: 16px !important; | ||
} | ||
} | ||
|
||
.developer-tools-card { | ||
border: 1px solid rgba(0, 0, 0, 0.1); | ||
border-radius: 12px; | ||
background-color: white; | ||
padding: 20px; | ||
height: 100%; | ||
font-family: "Red Hat Display"; | ||
display: flex; | ||
flex-direction: column; | ||
opacity: 0; | ||
transition: box-shadow 0.3s ease-in-out; | ||
|
||
img { | ||
width: 100%; | ||
margin-bottom: 20px; | ||
} | ||
|
||
h2 { | ||
font-size: 20px; | ||
font-weight: bold; | ||
margin-bottom: 16px; | ||
color: black; | ||
} | ||
|
||
p { | ||
font-size: 16px; | ||
color: #838c9b; | ||
margin-bottom: 16px; | ||
text-align: left; | ||
} | ||
|
||
.learn-more { | ||
display: flex; | ||
flex-direction: row; | ||
color: #004be0; | ||
margin-top: auto; | ||
gap: 8px; | ||
|
||
img { | ||
width: 24px; | ||
height: 24px; | ||
margin-bottom: 0; | ||
} | ||
} | ||
} | ||
|
||
.developer-tools-card:hover { | ||
cursor: pointer; | ||
box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.16); | ||
} | ||
|
||
.developer-tools-card.visible { | ||
animation: slideInFromBottom 0.3s forwards; | ||
-moz-animation: slideInFromBottom 0.3s forwards; | ||
-webkit-animation: slideInFromBottom 0.3s forwards; | ||
} | ||
|
||
.developer-tools-card.authgear-card.visible { | ||
animation-delay: 0.2s; | ||
} | ||
|
||
.developer-tools-card.makeappicon-card.visible { | ||
animation-delay: 0.4s; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
.developer-tools-card.visible.authgear-card, | ||
.developer-tools-card.visible.makeappicon-card { | ||
animation-delay: 0s; | ||
} | ||
} |