Skip to content

Commit 5fd8b5e

Browse files
committed
Highlight method section
1 parent fc62260 commit 5fd8b5e

4 files changed

Lines changed: 18 additions & 6 deletions

File tree

src/components/HighlightedSection.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<div class="full-bleed bg-zinc-200 py-8 dark:bg-zinc-800">
1+
<div
2+
class="full-bleed bg-zinc-200 py-8 [--dim-bg:var(--color-zinc-200)] dark:bg-zinc-800 dark:[--dim-bg:var(--color-zinc-800)]"
3+
>
24
<div
35
class="mx-[var(--actual-inline-margin)] [&>:first-child]:mt-0 [&>:last-child]:mb-0"
46
>

src/components/InteractiveFramework.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,8 @@ function CardDeck({
555555
}
556556
};
557557

558+
const SHADOW_BLEED = 12;
559+
558560
return (
559561
<div className="flex flex-col items-center">
560562
{/* Card stack area — extra padding for diagonal offset + shadow */}
@@ -563,10 +565,11 @@ function CardDeck({
563565
className="relative"
564566
style={{
565567
width: fullWidth
566-
? `calc(100% - ${DIAGONAL_X * (maxVisible - 1)}px)`
567-
: `min(560px, calc(100% - ${DIAGONAL_X * (maxVisible - 1)}px))`,
568+
? `calc(100% - ${DIAGONAL_X * (maxVisible - 1) + SHADOW_BLEED}px)`
569+
: `min(560px, calc(100% - ${DIAGONAL_X * (maxVisible - 1) + SHADOW_BLEED}px))`,
568570
aspectRatio: cards[frontIndex].aspectRatio,
569571
marginRight: `${DIAGONAL_X * (maxVisible - 1)}px`,
572+
marginLeft: `${SHADOW_BLEED}px`,
570573
marginTop: `${DIAGONAL_Y * (maxVisible - 1)}px`,
571574
transition: "aspect-ratio 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94)",
572575
}}
@@ -959,7 +962,7 @@ export function InteractiveFramework() {
959962
<rect
960963
width="100%"
961964
height="100%"
962-
className="fill-white dark:fill-zinc-900"
965+
fill="var(--dim-bg)"
963966
mask="url(#usf-dim-mask)"
964967
style={{
965968
opacity: primarySpotlight ? (activeSection ? 0.75 : 0.5) : 0,
@@ -1080,8 +1083,9 @@ export function InteractiveFramework() {
10801083
integration.
10811084
</p>
10821085
<div
1083-
className="pointer-events-none absolute inset-0 rounded bg-white dark:bg-zinc-900"
1086+
className="pointer-events-none absolute inset-0 rounded"
10841087
style={{
1088+
backgroundColor: "var(--dim-bg)",
10851089
opacity: primarySpotlight ? (activeSection ? 0.75 : 0.5) : 0,
10861090
transition: "opacity 0.6s ease",
10871091
}}
@@ -1098,7 +1102,7 @@ export function InteractiveFramework() {
10981102
if (!activeSection) setDisplayedSection(null);
10991103
}}
11001104
>
1101-
<div className="overflow-hidden">
1105+
<div className="overflow-y-hidden">
11021106
{displayedSection && (
11031107
<div className="pt-6 pb-4">
11041108
{displayedSection.layout === "vertical" ? (

src/paper.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,14 @@ Most vision pipelines apply planar CNNs that assume a pinhole camera and operate
105105

106106
A model is **rotation-equivariant** if rotating its input produces an equivalently rotated output. This is a desirable property for any system where camera orientation may vary at test time. USF achieves both lens-agnostic processing and rotation-equivariance while supporting **plug-and-play** replacement of planar layers in any existing backbone, providing a generic framework for modern vision.
107107

108+
<HighlightedSection>
109+
108110
## Methodology
109111

110112
<InteractiveFramework client:idle />
111113

114+
</HighlightedSection>
115+
112116
## Results
113117

114118
We replace standard planar layers with spherical counterparts while keeping all other aspects of the models and training protocol **identical**. All evaluation is performed in the **planar domain** for consistency. **NR** and **RR** denote non-rotated and randomly rotated settings. Prior spectral-domain spherical CNNs are compared only in the low-resolution MNIST experiment due to their prohibitive cost at higher resolutions.

src/styles/global.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ main .katex-display {
9898
}
9999

100100
:root {
101+
--dim-bg: white;
101102
--background: var(--color-white);
102103
--foreground: var(--color-zinc-950);
103104
--card: var(--color-white);
@@ -129,6 +130,7 @@ main .katex-display {
129130
}
130131

131132
.dark {
133+
--dim-bg: var(--color-zinc-900);
132134
--background: var(--color-zinc-950);
133135
--foreground: var(--color-zinc-50);
134136
--card: var(--color-zinc-900);

0 commit comments

Comments
 (0)