Skip to content

Commit 8e1f576

Browse files
committed
Add link to paper
1 parent eb1fb22 commit 8e1f576

2 files changed

Lines changed: 19 additions & 21 deletions

File tree

src/pages/index.astro

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,20 @@ const baseUrl = import.meta.env.BASE_URL.endsWith("/") ? import.meta.env.BASE_UR
1919
DDTree (Diffusion Draft Tree) builds a draft tree from one block diffusion pass, then verifies the whole tree in one target-model forward pass.
2020
</p>
2121
<div class="hero-actions">
22-
<a class="button arxiv" href="https://arxiv.org/" target="_blank" rel="noreferrer">
23-
<img
24-
class="button-logo arxiv-logo"
25-
src={`${baseUrl}assets/logos/arxiv-logo-color.png`}
26-
alt="arXiv"
27-
loading="lazy"
28-
/>
22+
{/* Temporary paper link. Revert this href to the final arXiv URL and swap the SVG back to the arXiv logo asset once the preprint is live. */}
23+
<a class="button paper" href={`${baseUrl}DDTree.pdf`} target="_blank" rel="noreferrer">
24+
<svg class="button-icon paper-mark" viewBox="0 0 16 16" aria-hidden="true">
25+
<path
26+
d="M4 1.5h5.7L13 4.8V13a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 13V3A1.5 1.5 0 0 1 4.5 1.5Z"
27+
fill="none"
28+
stroke="currentColor"
29+
stroke-linejoin="round"
30+
></path>
31+
<path d="M9.5 1.5V5H13" fill="none" stroke="currentColor" stroke-linejoin="round"></path>
32+
<path d="M5.5 7.25h5" stroke="currentColor" stroke-linecap="round"></path>
33+
<path d="M5.5 9.25h5" stroke="currentColor" stroke-linecap="round"></path>
34+
<path d="M5.5 11.25h3.25" stroke="currentColor" stroke-linecap="round"></path>
35+
</svg>
2936
<span>Paper</span>
3037
</a>
3138
<a class="button github" href={siteMeta.repoUrl} target="_blank" rel="noreferrer">

src/styles/global.css

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,9 @@ main {
207207
height: 1rem;
208208
}
209209

210-
.button-logo {
211-
display: block;
212-
width: auto;
213-
flex: 0 0 auto;
214-
}
215-
216-
.arxiv-logo {
217-
height: 1.22rem;
210+
.paper-mark {
211+
width: 1rem;
212+
height: 1rem;
218213
}
219214

220215
.button:hover {
@@ -226,14 +221,14 @@ main {
226221
box-shadow: 0 0 0 3px rgba(24, 35, 55, 0.14);
227222
}
228223

229-
.button.arxiv {
224+
.button.paper {
230225
color: var(--ink);
231226
background: rgba(255, 255, 255, 0.9);
232227
border-color: rgba(179, 27, 27, 0.18);
233228
box-shadow: 0 10px 26px rgba(24, 35, 55, 0.06);
234229
}
235230

236-
.button.arxiv:hover {
231+
.button.paper:hover {
237232
background: rgba(255, 255, 255, 0.98);
238233
border-color: rgba(179, 27, 27, 0.3);
239234
box-shadow: 0 14px 28px rgba(24, 35, 55, 0.08);
@@ -1257,10 +1252,6 @@ main {
12571252
border-radius: 0.92rem;
12581253
}
12591254

1260-
.arxiv-logo {
1261-
height: 1.06rem;
1262-
}
1263-
12641255
.hero-poster,
12651256
.poster-frame {
12661257
min-height: 18.5rem;

0 commit comments

Comments
 (0)