-
Notifications
You must be signed in to change notification settings - Fork 16
New landing page design #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
shravanngoswamii
wants to merge
60
commits into
main
Choose a base branch
from
new-landing-page
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 56 commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
f0feb32
first part of new landing page (#1)
simonsteiger 606e0d1
Add code examples (#2)
simonsteiger 1917b9d
Add news (#3)
simonsteiger 05f9d6d
better alignment
simonsteiger c9897ce
add resources / "learn more" section
simonsteiger 9f71dc3
Improved colours (#4)
simonsteiger 1070b05
better navbar text contrast
simonsteiger 805520e
Add SVG header (#5)
simonsteiger 75f8b65
fix "learn more" hover text-deco
simonsteiger 4d6dadb
style team page for dark mode
simonsteiger 396b2fe
more relevant links at top of page
simonsteiger e225786
mirror gaussians and title
simonsteiger 8c91941
add css for code in dark mode
simonsteiger beb1766
shorten footer for better fit on mobile
simonsteiger 57a4285
underline links in footer
simonsteiger 30aca92
responsive header size
simonsteiger 93d130c
content placeholders on landing page
simonsteiger 400c7cd
Apply suggestions from code review
simonsteiger 36e1f6b
fix "logo" display by removing h1
simonsteiger cd61adb
_quarto.yml: comments rewritten
shravanngoswamii e8e2bf0
Turned HTML to Quarto Markdown and added _includes to keep the main p…
shravanngoswamii e9e14d5
moved news to _included & added News section sliding animation
shravanngoswamii c7eacc8
fix-merge-conflicts
shravanngoswamii 4933d64
Improve news animation
shravanngoswamii 4f11da4
removed new styles from this PR but added similar new theme in old fo…
shravanngoswamii 9a549ae
Removed new styles of Simon, Updated tons of CSS to match new theme
shravanngoswamii c84674d
Merge branch 'main' of https://github.com/TuringLang/turinglang.githu…
shravanngoswamii f09f326
fixed search results color in dark mode
shravanngoswamii 5c9a49e
Added citations and commented placeholder text
shravanngoswamii 9d17561
fix new height & copy button css in dark mode
shravanngoswamii 5e9b40e
Updated News section to have fixed height & updated landing page codes
shravanngoswamii b4a3dd6
added arrows for moving forward and backward in news
shravanngoswamii 7f94990
Experiment another approach on news carousel
shravanngoswamii 8718612
speeding news carousel
shravanngoswamii 1fbe6fd
don't highlight tutorials button
penelopeysm 107ef76
update placeholder text
penelopeysm 37e92a1
move tutorial button
penelopeysm 4da6b58
fix unclosed div
penelopeysm 3c69714
fix buttons properly
penelopeysm 9945107
polish text
penelopeysm 3f8d59f
delete whatever i wrote
penelopeysm 0855fc3
fix unclosed div etc
penelopeysm 61ce38b
refresh news
shravanngoswamii c7eb5e6
Merge branch 'main' of https://github.com/TuringLang/turinglang.githu…
shravanngoswamii 0425c64
using quarto listing for news carousel
shravanngoswamii fdea4b8
Updated news carousel
shravanngoswamii 0075b73
Mouse scroll in news works fine now
shravanngoswamii d1a8435
Updated lot of things, yet to remove news section
shravanngoswamii ce8d857
fix urls
shravanngoswamii 2794877
Removed news section, added brands, improvded citations and other parts
shravanngoswamii f75d89f
added brands id
shravanngoswamii 1bebdd9
fix team theme in dark mode
shravanngoswamii f5b636b
trying custom page-layout
shravanngoswamii 2aa49fd
added side-space
shravanngoswamii 0c36f0a
fix libraries page in dark mode
shravanngoswamii b1e00fe
few more fixes
shravanngoswamii dcbb02d
brands text update
shravanngoswamii e041046
Add Alan Turing Institute Logo
shravanngoswamii 74a39f8
fix ATI url
shravanngoswamii 7fdc59c
Add maX width as suggested by @simonsteiger
shravanngoswamii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
```{=html} | ||
<div> | ||
<style> | ||
.logo-grid { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 2rem; | ||
padding: 2rem 0; | ||
} | ||
|
||
.partner-logo.box { | ||
flex: 1 1 200px; | ||
max-width: 220px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 2rem; | ||
min-height: 160px; | ||
} | ||
|
||
.partner-logo.box:hover { | ||
transform: scale(1.05); | ||
} | ||
|
||
.partner-logo img { | ||
max-width: 100%; | ||
height: 90px; | ||
object-fit: contain; | ||
vertical-align: middle; | ||
} | ||
|
||
.brands-light-mode-logo { | ||
display: inline; | ||
} | ||
|
||
.brands-dark-mode-logo { | ||
display: none; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
.logo-grid { | ||
gap: 1.5rem; | ||
} | ||
.partner-logo.box { | ||
flex-basis: 150px; | ||
} | ||
} | ||
</style> | ||
|
||
<div class="text-center"> | ||
<h3 id="brands">Trusted by World-Class Institutions</h3> | ||
<p class="text-muted"> | ||
We are proud to collaborate with leading organizations and universities at the forefront of research and innovation. | ||
</p> | ||
</div> | ||
|
||
<div class="logo-grid"> | ||
<!-- University of Cambridge Logo --> | ||
<a href="https://mlg.eng.cam.ac.uk/" class="partner-logo box" target="_blank" rel="noopener"> | ||
<img src="https://www.cam.ac.uk/sites/default/files/university-cambridge-logo-black-example-640x132.png" alt="University of Cambridge Logo" class="brands-light-mode-logo"> | ||
<img src="https://www.cam.ac.uk/sites/default/files/university-cambridge-logo-white-example-640x133.png" alt="University of Cambridge Logo Dark" class="brands-dark-mode-logo"> | ||
</a> | ||
|
||
<!-- The Alan Turing Institute Placeholder Logo --> | ||
<a href="#" class="partner-logo box" target="_blank" rel="noopener"> | ||
<img src="https://placehold.co/1000x400.png" alt="The Alan Turing Institute Logo" class="brands-light-mode-logo"> | ||
<img src="https://placehold.co/1000x400.png" alt="The Alan Turing Institute Logo Dark" class="brands-dark-mode-logo"> | ||
</a> | ||
</div> | ||
</div> | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
```{=html} | ||
<div class="citation-container"> | ||
<h3 id="cite" class="pb-1 text-center">Turing.jl is an <a href="https://github.com/TuringLang/Turing.jl/blob/main/LICENCE" class="turing-license-link"><code>MIT</code></a> Licensed Open Source Project</h3> | ||
<p class="text-center">If you use Turing.jl in your research, please consider citing our papers.</p> | ||
|
||
<ul class="citation-list"> | ||
<li class="citation-entry box"> | ||
<p class="citation-text"> | ||
Fjelde, T. E., Xu, K., Widmann, D., Tarek, M., Pfiffer, C., Trapp, M., Axen, S. D., Sun, X., Hauru, M., Yong, P., Tebbutt, W., Ghahramani, Z., & Ge, H. (2025). <span class="citation-title">Turing.jl: a general-purpose probabilistic programming language.</span> <em>ACM Transactions on Probabilistic Machine Learning</em>. Just Accepted. | ||
</p> | ||
<div class="citation-actions"> | ||
<a href="https://doi.org/10.1145/3711897" target="_blank" rel="noopener noreferrer" class="button">View Paper</a> | ||
<button class="button button--primary" onclick="copyBibtex(this)" aria-label="Copy BibTeX for the 2025 Turing.jl paper">Copy BibTeX</button> | ||
</div> | ||
<pre class="citation-bibtex-data"> | ||
@article{Fjelde2025Turing, | ||
author = {Fjelde, Tor Erlend and Xu, Kai and Widmann, David and Tarek, Mohamed and Pfiffer, Cameron and Trapp, Martin and Axen, Seth D. and Sun, Xianda and Hauru, Markus and Yong, Penelope and Tebbutt, Will and Ghahramani, Zoubin and Ge, Hong}, | ||
title = {Turing.jl: a general-purpose probabilistic programming language}, | ||
journal = {ACM Transactions on Probabilistic Machine Learning}, | ||
year = {2025}, | ||
publisher = {Association for Computing Machinery}, | ||
doi = {10.1145/3711897}, | ||
note = {Just Accepted}, | ||
url = {https://doi.org/10.1145/3711897} | ||
} | ||
</pre> | ||
</li> | ||
<li class="citation-entry box"> | ||
<p class="citation-text"> | ||
Ge, H., Xu, K., & Ghahramani, Z. (2018). <span class="citation-title">Turing: a language for flexible probabilistic inference.</span> In <em>Proceedings of the 21st International Conference on Artificial Intelligence and Statistics (AISTATS)</em> (Vol. 84, pp. 1682-1690). PMLR. | ||
</p> | ||
<div class="citation-actions"> | ||
<a href="http://proceedings.mlr.press/v84/ge18b.html" target="_blank" rel="noopener noreferrer" class="button">View Paper</a> | ||
<button class="button button--primary" onclick="copyBibtex(this)" aria-label="Copy BibTeX for the 2018 Turing paper">Copy BibTeX</button> | ||
</div> | ||
<pre class="citation-bibtex-data"> | ||
@inproceedings{Ge2018Turing, | ||
author = {Ge, Hong and Xu, Kai and Ghahramani, Zoubin}, | ||
title = {Turing: a language for flexible probabilistic inference}, | ||
booktitle = {Proceedings of the 21st International Conference on Artificial Intelligence and Statistics (AISTATS)}, | ||
series = {Proceedings of Machine Learning Research}, | ||
volume = {84}, | ||
pages = {1682--1690}, | ||
year = {2018}, | ||
publisher = {PMLR}, | ||
url = {http://proceedings.mlr.press/v84/ge18b.html} | ||
} | ||
</pre> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<script> | ||
function copyBibtex(buttonElement) { | ||
// Find the <pre> element which is the next sibling of the button's parent container | ||
const bibtexPreElement = buttonElement.parentElement.nextElementSibling; | ||
const bibtexText = bibtexPreElement.textContent.trim(); | ||
|
||
// Robust Clipboard Copy Logic | ||
if (navigator.clipboard && window.isSecureContext) { | ||
// Modern async clipboard API | ||
navigator.clipboard.writeText(bibtexText) | ||
.then(() => showSuccess(buttonElement)) | ||
.catch(err => { | ||
console.error('Async copy failed, falling back:', err); | ||
fallbackCopy(bibtexText, buttonElement); | ||
}); | ||
} else { | ||
// Fallback for older browsers or non-secure contexts | ||
fallbackCopy(bibtexText, buttonElement); | ||
} | ||
} | ||
|
||
function fallbackCopy(text, buttonElement) { | ||
const textArea = document.createElement('textarea'); | ||
textArea.value = text; | ||
textArea.style.position = 'absolute'; | ||
textArea.style.left = '-9999px'; | ||
document.body.appendChild(textArea); | ||
textArea.focus(); | ||
textArea.select(); | ||
try { | ||
const successful = document.execCommand('copy'); | ||
if (successful) { | ||
showSuccess(buttonElement); | ||
} else { | ||
showError(buttonElement); | ||
} | ||
} catch (err) { | ||
console.error('Fallback copy failed:', err); | ||
showError(buttonElement); | ||
} | ||
document.body.removeChild(textArea); | ||
} | ||
|
||
function showSuccess(buttonElement) { | ||
const originalText = buttonElement.innerHTML; | ||
buttonElement.innerHTML = '✅ Copied!'; | ||
// Use your existing class for styling the copied state | ||
buttonElement.classList.add('citation-copied'); | ||
buttonElement.disabled = true; | ||
|
||
setTimeout(() => { | ||
buttonElement.innerHTML = originalText; | ||
buttonElement.classList.remove('citation-copied'); | ||
buttonElement.disabled = false; | ||
}, 2000); | ||
} | ||
|
||
function showError(buttonElement) { | ||
const originalText = buttonElement.innerHTML; | ||
buttonElement.innerHTML = 'Error!'; | ||
buttonElement.disabled = true; | ||
setTimeout(() => { | ||
buttonElement.innerHTML = originalText; | ||
buttonElement.disabled = false; | ||
}, 2000); | ||
} | ||
</script> | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
```{=html} | ||
<div class="line-graph"> | ||
<div class="upper-content"> | ||
<div class="responsive-heading">Turing.jl</div> | ||
</div> | ||
<div> | ||
<svg viewBox="0 0 2300 498" xmlns="http://www.w3.org/2000/svg"> | ||
<path class="line line1" | ||
d="M0 487 C1155.53 487 1320.502 502.995 1391.761 461.5C1453.584 425.5 1467.657 399 1509.375 344.5C1551.093 290 1586.276 213 1645.586 213C1704.895 213 1776.77 350.5 1806.425 389C1875.39 478.535 1871.263 486.5 2300 487"/> | ||
<path class="line line2" | ||
d="M0 486.5 C223.96 486.5 883.72 484.016 977.94 484.016C1163.36 484.016 1183.85 461.682 1249.81 287.031C1283.73 197.222 1311.724 96 1349.948 96C1388.171 96 1418.291 219.36 1447.552 292.5C1536.356 514.469 1548.077 486 1734.55 486C1921.023 486 2087.346 485.5 2300 485.5"/> | ||
<path class="line line3" | ||
d="M0 487 C108.32 487 672.77 486.499 783.26 486.499C893.75 486.499 943.04 486.499 1051.36 486.499C1135.3 486.499 1218.74 489.327 1241.95 469.982C1293.57 426.95 1311.015 327.407 1328.845 262.111C1356 162.661 1377.725 8 1409.818 8C1441.911 8 1472.715 193.386 1490.888 262.111C1509.06 330.837 1526.835 423.687 1568.803 460.973C1600.671 489.286 1631.508 486.499 1722.851 486.499C1816.509 486.499 1890.44 486.499 1991.446 486.499C2092.453 486.499 2198.993 486.499 2300 486.499"/> | ||
</svg> | ||
</div> | ||
</div> | ||
``` | ||
|
||
```{=html} | ||
<span class="display-6 d-block text-center py-5 display-md-5 display-lg-4"> | ||
Bayesian inference with probabilistic programming | ||
</span> | ||
<div class="d-flex flex-column align-items-center gap-0 pb-3"> | ||
<a href="https://turinglang.org/docs/tutorials/docs-00-getting-started/" class="button btn fs-4"> | ||
Tutorials | ||
</a> | ||
</div> | ||
<div class="d-flex flex-column align-items-center gap-0 pb-5"> | ||
<div class="d-flex flex-row flex-wrap panel-wrapper gap-2"> | ||
<a href="https://julialang.slack.com/archives/CCYDC34A0" class="button btn" style="width: 100px;"> | ||
Slack | ||
</a> | ||
<a href="https://discourse.julialang.org/c/domain/probprog/48" class="button btn"> | ||
Discourse | ||
</a> | ||
<a href="https://github.com/TuringLang" class="button btn" style="width: 100px;"> | ||
GitHub | ||
</a> | ||
</div> | ||
</div> | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.