Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
aelmanaa committed Dec 13, 2024
1 parent a7cfaf1 commit 4af04a8
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 39 deletions.
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
dist
.cache
.test
.vercel
.astro
temp
node_modules
.github
.changeset
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ export const SetPoolStep = ({ chain }: SetPoolStepProps) => {
>
<ol className={styles.instructions}>
<li>
In the "Deploy & Run Transactions" tab, select the <strong>TokenAdminRegistry</strong> contract in the <i>Contracts</i> drop-down list.
In the "Deploy & Run Transactions" tab, select the <strong>TokenAdminRegistry</strong> contract in the{" "}
<i>Contracts</i> drop-down list.
</li>
<li>
Next to the <b>At Address</b> button, fill in the following contract address, and then click the <b>At Address</b> button.
Next to the <b>At Address</b> button, fill in the following contract address, and then click the{" "}
<b>At Address</b> button.
<div className={styles.contractInfo}>
<strong>Contract:</strong> TokenAdminRegistry
<NetworkAddress type="tokenAdminRegistry" chain={chain} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@
.arrowContainer {
--touch-target-size: 44px;
--animation-timing: cubic-bezier(0.34, 1.56, 0.64, 1);
--arrow-rotation: 0deg;

display: flex;
align-items: center;
Expand All @@ -202,37 +201,64 @@
margin-inline: auto;
padding-block: 0;
padding-inline: 1rem;
cursor: default;
position: relative;
outline: none;
writing-mode: horizontal-tb;
text-orientation: mixed;

/* Performance optimizations */
contain: layout style;
view-transition-name: arrow;
transform: translateZ(0);
backface-visibility: hidden;
-webkit-font-smoothing: antialiased;

transition: transform 0.2s var(--animation-timing);
}

/* RTL and vertical writing mode support */
[dir="rtl"] .arrowContainer,
[writing-mode="vertical-rl"] .arrowContainer {
transform: rotate(var(--arrow-rotation));
/* Make it purely decorative */
pointer-events: none;
user-select: none;
}

.arrow {
color: var(--color-text-secondary);
transition: all 0.3s var(--animation-timing);
will-change: transform, opacity;
opacity: 0.7;
transition: opacity 0.3s var(--animation-timing);
}

.arrowGroup {
transform-origin: center;
transition: transform 0.6s var(--animation-timing);
}

/* Subtle animation */
@media (prefers-reduced-motion: no-preference) {
.arrowPath {
opacity: 0.7;
animation: subtlePulse 3s var(--animation-timing) infinite;
}

.arrowLine {
opacity: 0.5;
animation: subtlePulse 3s var(--animation-timing) infinite;
}

.arrowPath:first-child {
animation-delay: 0s;
}

.arrowPath:last-child {
animation-delay: 1.5s;
}

@keyframes subtlePulse {
0%,
100% {
opacity: 0.7;
transform: translateX(0);
}
50% {
opacity: 0.9;
transform: translateX(1px);
}
}
}

/* RTL Support */
[dir="rtl"] .arrowContainer {
transform: scaleX(-1);
}

/* Vertical writing modes */
[writing-mode="vertical-rl"] .arrowContainer {
transform: rotate(90deg);
}

/* Interactive States */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,9 @@ export const TutorialBlockchainSelector = () => {

<div
className={styles.arrowContainer}
role="status"
aria-live="polite"
aria-atomic="true"
aria-label="Bidirectional token transfer enabled"
tabIndex={0}
onKeyDown={(e) => {
if (e.key === "Enter" || e.key === " ") {
e.preventDefault()
// Toggle focus state for visual feedback
e.currentTarget.classList.toggle(styles.focused)
}
}}
role="presentation"
aria-hidden="true"
style={{ pointerEvents: "none" }}
>
<svg
className={styles.arrow}
Expand All @@ -165,7 +156,6 @@ export const TutorialBlockchainSelector = () => {
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
>
<defs>
<linearGradient id="arrow-gradient" x1="0%" y1="50%" x2="100%" y2="50%">
Expand Down
4 changes: 2 additions & 2 deletions src/components/QuickLinks/sections/ProductChainTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const handleLinkClick = (productTitle: string, network: string, url: string) =>
window.dataLayer.push({
event: "quick_link_clicked",
product: productTitle,
network: network,
url: url,
network,
url,
})
}

Expand Down

0 comments on commit 4af04a8

Please sign in to comment.