Skip to content

Commit 8161725

Browse files
Add custom footer and update styles to match TuringLang/turinglang.github.io#119
1 parent 3e76995 commit 8161725

8 files changed

+303
-24
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ venv
2727
404.html
2828
site_libs
2929
.DS_Store
30+
index_files
31+
digest.txt

_quarto.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ project:
55
port: 4200
66
browser: true
77

8-
98
# These cannot be used as variables. They are reserved for the project configuration.
109
website:
1110
title: "Turing.jl"
@@ -17,8 +16,6 @@ website:
1716
navbar:
1817
logo: "assets/images/turing-logo.svg"
1918
logo-href: https://turinglang.org/
20-
# background: "#073c44"
21-
# foreground: "#ffffff"
2219
left:
2320
- href: getting-started/
2421
text: Get Started
@@ -155,9 +152,9 @@ format:
155152
<h5>Explore</h5>
156153
<a href="https://turinglang.org/docs/getting-started/">Get Started</a>
157154
<a href="https://turinglang.org/docs/tutorials/">Tutorials</a>
158-
<a href="/library">Libraries</a>
159-
<a href="/news">News</a>
160-
<a href="/team">Team</a>
155+
<a href="https://turinglang.org/library/">Libraries</a>
156+
<a href="https://turinglang.org/news/">News</a>
157+
<a href="https://turinglang.org/team/">Team</a>
161158
</div>
162159
163160
<div class="footer-column footer-connect">
@@ -174,8 +171,8 @@ format:
174171
<p>Turing.jl is developed by researchers and engineers at the following research institutions.</p>
175172
<div class="logo-grid">
176173
<a href="https://mlg.eng.cam.ac.uk/" class="partner-logo" target="_blank" rel="noopener">
177-
<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">
178-
<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">
174+
<img src="/assets/images/brands/university-cambridge-logo-black-example-640x132.png" alt="University of Cambridge Logo" class="brands-light-mode-logo">
175+
<img src="/assets/images/brands/university-cambridge-logo-white-example-640x133.png" alt="University of Cambridge Logo Dark" class="brands-dark-mode-logo">
179176
</a>
180177
<a href="https://www.turing.ac.uk/" class="partner-logo" target="_blank" rel="noopener">
181178
<img src="/assets/images/brands/Turing_Logo_1000x400px_Black.webp" alt="The Alan Turing Institute Logo" class="brands-light-mode-logo">
Binary file not shown.
Binary file not shown.
Loading
Loading

theming/styles.css

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
.quarto-container {
2+
background-color: #f8f9fa;
3+
}
4+
5+
.navbar {
6+
background-color: #ffffff;
7+
}
8+
9+
nav.sidebar.sidebar-navigation:not(.rollup) {
10+
background-color: #f8f9fa;
11+
}
12+
113
.navbar a:hover {
214
text-decoration: none;
315
}
@@ -45,3 +57,203 @@
4557
overflow: scroll;
4658
}
4759

60+
/* Custom Footer */
61+
.footer {
62+
display: none;
63+
}
64+
.custom-footer {
65+
background-color: #fff;
66+
color: #6c757d;
67+
font-size: 0.9rem;
68+
padding: 3rem 2rem 2rem;
69+
border-top: 1px solid #e9ecef;
70+
}
71+
72+
.custom-footer .footer-container {
73+
max-width: 1350px;
74+
margin: 0 auto;
75+
}
76+
77+
.custom-footer .footer-grid {
78+
display: flex;
79+
flex-wrap: wrap;
80+
justify-content: space-between;
81+
gap: 2rem;
82+
margin-bottom: 2rem;
83+
padding-bottom: 2rem;
84+
border-bottom: 1px solid #e9ecef;
85+
}
86+
87+
.custom-footer .footer-links-wrapper {
88+
display: flex;
89+
flex-wrap: wrap;
90+
gap: 2rem;
91+
flex: 2 1 400px;
92+
}
93+
94+
.custom-footer .footer-column {
95+
flex: 1 1 auto;
96+
}
97+
98+
.custom-footer .footer-brands {
99+
flex: 1 1 320px;
100+
}
101+
102+
.custom-footer .footer-column h5 {
103+
font-weight: 600;
104+
color: #212529;
105+
margin-bottom: 1.25rem;
106+
font-size: 0.9rem;
107+
text-transform: uppercase;
108+
letter-spacing: 0.08em;
109+
}
110+
111+
.custom-footer .footer-column a {
112+
display: flex;
113+
align-items: center;
114+
gap: 0.75rem;
115+
margin-bottom: 0.75rem;
116+
color: #6c757d;
117+
text-decoration: none;
118+
transition: color 0.2s ease;
119+
}
120+
121+
.custom-footer .footer-column a:hover {
122+
color: #212529;
123+
text-decoration: none;
124+
}
125+
126+
.custom-footer .footer-column a i {
127+
font-size: 1.1rem;
128+
line-height: 1;
129+
width: 20px;
130+
text-align: center;
131+
}
132+
133+
.custom-footer .footer-brands p {
134+
font-size: 0.9rem;
135+
line-height: 1.6;
136+
margin-top: -0.5rem;
137+
margin-bottom: 1.5rem;
138+
}
139+
140+
.custom-footer .footer-brands .logo-grid {
141+
display: flex;
142+
gap: 2rem;
143+
align-items: center;
144+
}
145+
146+
.custom-footer .partner-logo {
147+
flex: 1;
148+
}
149+
150+
.custom-footer .partner-logo img {
151+
max-width: 100%;
152+
height: 50px;
153+
object-fit: contain;
154+
transition: transform 0.2s ease;
155+
}
156+
157+
.custom-footer .partner-logo:hover img {
158+
transform: scale(1.05);
159+
}
160+
161+
.custom-footer .brands-light-mode-logo {
162+
display: inline;
163+
}
164+
165+
.custom-footer .brands-dark-mode-logo {
166+
display: none;
167+
}
168+
169+
.custom-footer .footer-bottom {
170+
display: flex;
171+
justify-content: space-between;
172+
align-items: center;
173+
font-size: 0.85rem;
174+
flex-wrap: wrap;
175+
gap: 1rem;
176+
}
177+
178+
.custom-footer .footer-bottom p {
179+
margin: 0;
180+
line-height: 1.6;
181+
}
182+
183+
.custom-footer .footer-bottom a {
184+
color: #495057;
185+
font-weight: 500;
186+
text-decoration: none;
187+
border-bottom: 1px solid #dee2e6;
188+
}
189+
190+
.custom-footer .footer-bottom a:hover {
191+
border-bottom-color: #495057;
192+
}
193+
194+
.footer-source-link {
195+
display: flex;
196+
align-items: center;
197+
gap: 0.5rem;
198+
}
199+
200+
@media (max-width: 992px) {
201+
.custom-footer .footer-links-wrapper {
202+
flex-basis: 100%;
203+
justify-content: center;
204+
}
205+
206+
.custom-footer .footer-grid {
207+
justify-content: center;
208+
}
209+
210+
.custom-footer .footer-brands {
211+
flex-grow: 0;
212+
text-align: center;
213+
}
214+
215+
.custom-footer .footer-brands .logo-grid {
216+
justify-content: center;
217+
}
218+
219+
.custom-footer .footer-column {
220+
flex-grow: 0;
221+
}
222+
}
223+
224+
@media (max-width: 768px) {
225+
.custom-footer .footer-bottom {
226+
flex-direction: column;
227+
gap: 1.5rem;
228+
text-align: center;
229+
}
230+
}
231+
232+
@media (max-width: 576px) {
233+
.custom-footer .footer-links-wrapper {
234+
flex-direction: column;
235+
text-align: center;
236+
align-items: center;
237+
}
238+
239+
.custom-footer .footer-column {
240+
width: 100%;
241+
max-width: 350px;
242+
}
243+
244+
.custom-footer .footer-column a {
245+
justify-content: center;
246+
}
247+
248+
.custom-footer .footer-brands .logo-grid {
249+
flex-direction: column;
250+
gap: 1.5rem;
251+
align-items: center;
252+
}
253+
254+
.custom-footer .partner-logo {
255+
flex-basis: auto;
256+
width: 100%;
257+
max-width: 220px;
258+
}
259+
}

0 commit comments

Comments
 (0)