Skip to content
Merged
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
2 changes: 1 addition & 1 deletion website/src/component/ConceptCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function ConceptCard({ concept, isFirst }) {
<h2 className={shared.heading}>{concept.title}</h2>
<p className={[shared.description, styles.conceptDescription].join(' ')}>{concept.description}</p>
<Link to={concept.to} className={[shared.link, shared.textLink].join(' ')}>
{concept.label} <span aria-hidden="true">↗</span>
{concept.label}
</Link>
<Illustration
file={concept.image}
Expand Down
23 changes: 16 additions & 7 deletions website/src/css/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
font-weight: 500;
text-decoration: none;
white-space: nowrap;
transition: transform 150ms ease;
}

.button::before {
Expand All @@ -72,11 +73,23 @@
z-index: -1;
}

.button:hover::before {
transform: translateY(0);
.button:active {
transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
.button:hover::before {
transform: translateY(0);
}

.copyButton:hover {
transform: scale(1.15);
}
}

@media (prefers-reduced-motion: reduce) {
.button,
.copyButton,
.button::before {
transition: none;
}
Expand Down Expand Up @@ -189,6 +202,7 @@
.copyButton {
padding: 8px;
cursor: pointer;
transition: transform 200ms ease;
}

.copyIcons {
Expand Down Expand Up @@ -237,11 +251,6 @@
gap: 8px;
}

.icon {
width: 16px;
height: 16px;
}

.footer {
display: flex;
flex-wrap: wrap;
Expand Down
11 changes: 2 additions & 9 deletions website/src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export default function Home() {
interior.
</p>
<Link to="/docs/safe-area" className={[shared.link, shared.textLink].join(' ')}>
Learn more <span aria-hidden="true">↗</span>
Learn more
</Link>
</div>

Expand All @@ -217,14 +217,7 @@ export default function Home() {
regions.
</p>
<Link to="/docs/example" className={[styles.button, styles.exampleButton].join(' ')}>
<Illustration
file="github-white.png"
alt="Github white logo"
width={48}
height={48}
className={styles.icon}
/>
Example app ↗
Example app
</Link>
</div>
</section>
Expand Down
Loading