Skip to content

Commit 786b862

Browse files
committed
v1.2.6 update homepage citation
1 parent 09e065c commit 786b862

File tree

2 files changed

+138
-2
lines changed

2 files changed

+138
-2
lines changed

index.html

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,17 +447,49 @@ <h3 class="title is-4">Additional Experimental Details</h3>
447447
<!--BibTex citation -->
448448
<section class="section" id="BibTeX">
449449
<div class="container is-max-desktop content">
450-
<h2 class="title">BibTeX</h2>
451-
<pre><code>@article{ma2025sql,
450+
<h2 class="title is-3">Citation</h2>
451+
<p class="has-text-centered" style="margin-bottom: 1.5rem; color: #555; font-size: 1.05rem; font-weight: 500;">
452+
If you find SQL-R1 useful for your research, please consider citing our paper:
453+
</p>
454+
<div class="bibtex-container">
455+
<button class="copy-button" onclick="copyBibTeX(this)">
456+
<i class="fas fa-copy"></i> Copy
457+
</button>
458+
<pre><code>@article{ma2025sql,
452459
title={SQL-R1: Training Natural Language to SQL Reasoning Model By Reinforcement Learning},
453460
author={Ma, Peixian and Zhuang, Xialie and Xu, Chengjin and Jiang, Xuhui and Chen, Ran and Guo, Jian},
454461
journal={arXiv preprint arXiv:2504.08600},
455462
year={2025}
456463
}</code></pre>
464+
</div>
457465
</div>
458466
</section>
459467
<!--End BibTex citation -->
460468

469+
<script>
470+
function copyBibTeX(button) {
471+
const code = button.nextElementSibling.querySelector('code');
472+
const text = code.textContent;
473+
474+
navigator.clipboard.writeText(text).then(() => {
475+
const originalText = button.innerHTML;
476+
button.innerHTML = '<i class="fas fa-check"></i> Copied!';
477+
button.classList.add('copied');
478+
479+
setTimeout(() => {
480+
button.innerHTML = originalText;
481+
button.classList.remove('copied');
482+
}, 2000);
483+
}).catch(err => {
484+
console.error('Copy failed:', err);
485+
button.innerHTML = '<i class="fas fa-times"></i> Failed';
486+
setTimeout(() => {
487+
button.innerHTML = '<i class="fas fa-copy"></i> Copy';
488+
}, 2000);
489+
});
490+
}
491+
</script>
492+
461493

462494
<footer class="footer">
463495
<div class="container">

static/css/index.css

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,5 +257,109 @@ body {
257257
}
258258
}
259259

260+
/* BibTeX Section Styles */
261+
#BibTeX {
262+
background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
263+
padding-top: 3rem;
264+
padding-bottom: 3rem;
265+
}
266+
267+
#BibTeX .title {
268+
color: #2c3e50;
269+
font-family: 'Google Sans', sans-serif;
270+
font-weight: 600;
271+
font-size: 2.5rem;
272+
margin-bottom: 1rem;
273+
text-align: center;
274+
letter-spacing: -0.5px;
275+
}
276+
277+
#BibTeX pre {
278+
background: #ffffff;
279+
border: 1px solid #e1e4e8;
280+
border-left: 4px solid #3273dc;
281+
border-radius: 8px;
282+
padding: 1.5rem 2rem;
283+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
284+
margin: 0;
285+
position: relative;
286+
transition: all 0.3s ease;
287+
}
288+
289+
#BibTeX pre:hover {
290+
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
291+
transform: translateY(-2px);
292+
}
293+
294+
#BibTeX pre code {
295+
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Fira Mono', 'Roboto Mono', 'Courier New', Courier, monospace;
296+
font-size: 0.95rem;
297+
line-height: 1.9;
298+
color: #24292e;
299+
display: block;
300+
overflow-x: auto;
301+
font-weight: 400;
302+
letter-spacing: 0.3px;
303+
}
304+
305+
/* Copy button for BibTeX */
306+
.bibtex-container {
307+
position: relative;
308+
}
309+
310+
.copy-button {
311+
position: absolute;
312+
top: 1rem;
313+
right: 1rem;
314+
background: #3273dc;
315+
color: white;
316+
border: none;
317+
border-radius: 6px;
318+
padding: 0.6rem 1.2rem;
319+
font-size: 0.875rem;
320+
font-family: 'Google Sans', sans-serif;
321+
font-weight: 500;
322+
cursor: pointer;
323+
opacity: 0;
324+
transition: opacity 0.3s ease, background 0.2s ease, transform 0.1s ease;
325+
z-index: 10;
326+
box-shadow: 0 2px 8px rgba(50, 115, 220, 0.3);
327+
}
328+
329+
.bibtex-container:hover .copy-button {
330+
opacity: 1;
331+
}
332+
333+
.copy-button:hover {
334+
background: #2366d1;
335+
}
336+
337+
.copy-button:active {
338+
transform: scale(0.95);
339+
}
340+
341+
.copy-button.copied {
342+
background: #48c774;
343+
}
344+
345+
/* Responsive BibTeX styles */
346+
@media screen and (max-width: 768px) {
347+
#BibTeX pre {
348+
padding: 1rem 1.25rem;
349+
}
350+
351+
#BibTeX pre code {
352+
font-size: 0.85rem;
353+
line-height: 1.6;
354+
}
355+
356+
.copy-button {
357+
opacity: 1;
358+
position: static;
359+
margin-bottom: 1rem;
360+
width: 100%;
361+
}
362+
}
363+
260364

261365

0 commit comments

Comments
 (0)