Skip to content

Commit 85d4058

Browse files
committed
Apply ECLIPSE site styling to lecture pages
1 parent d2c43cc commit 85d4058

File tree

3 files changed

+162
-4
lines changed

3 files changed

+162
-4
lines changed

_quarto.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ format:
99
css: styles.css
1010
fontsize: 14pt
1111
email-obfuscation: javascript
12-
theme: darkly
12+
theme:
13+
- darkly
14+
- custom.scss
1315
toc: true
1416
comments:
1517
hypothesis: true

custom.scss

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
/*-- scss:defaults --*/
2+
$body-bg: #0b0f19;
3+
$body-color: #94a3b8;
4+
$primary: #3b82f6;
5+
$secondary: #8b5cf6;
6+
7+
$h1-color: #f8fafc;
8+
$h2-color: #f1f5f9;
9+
$h3-color: #e2e8f0;
10+
$headings-color: #f8fafc;
11+
12+
$link-color: $primary;
13+
14+
$font-family-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
15+
$headings-font-family: "Outfit", sans-serif;
16+
$headings-font-weight: 600;
17+
18+
/*-- scss:rules --*/
19+
20+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@500;600;700&display=swap');
21+
22+
body {
23+
background-image: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%), radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
24+
background-attachment: fixed;
25+
}
26+
27+
.navbar {
28+
background: rgba(11, 15, 25, 0.8) !important;
29+
backdrop-filter: blur(12px);
30+
-webkit-backdrop-filter: blur(12px);
31+
border-bottom: 1px solid rgba(255,255,255,0.05);
32+
}
33+
34+
.btn-primary {
35+
background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
36+
border: none !important;
37+
color: #fff !important;
38+
box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
39+
transition: all 0.3s ease;
40+
}
41+
42+
.btn-primary:hover {
43+
transform: translateY(-2px);
44+
box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
45+
}
46+
47+
.btn-outline-secondary {
48+
border: 1px solid rgba(255,255,255,0.2) !important;
49+
color: #e2e8f0 !important;
50+
background: transparent !important;
51+
transition: all 0.3s ease;
52+
}
53+
.btn-outline-secondary:hover {
54+
background: rgba(255,255,255,0.1) !important;
55+
border-color: rgba(255,255,255,0.4) !important;
56+
}
57+
58+
/* Style the columns in index as cards */
59+
.columns {
60+
display: flex !important;
61+
flex-wrap: nowrap !important; /* Force single row on desktop */
62+
align-items: stretch !important;
63+
gap: 1rem !important; /* Smaller gap */
64+
}
65+
66+
.columns > .column {
67+
width: 33.333% !important; /* Force evenly distributed thirds */
68+
flex: 1 1 0 !important;
69+
background: rgba(20, 25, 40, 0.6);
70+
backdrop-filter: blur(10px);
71+
border: 1px solid rgba(255,255,255,0.05);
72+
border-radius: 16px;
73+
padding: 1.25rem; /* Reduced padding from 2rem */
74+
margin: 0 !important;
75+
transition: transform 0.3s ease, box-shadow 0.3s ease;
76+
display: flex;
77+
flex-direction: column;
78+
font-size: 0.9rem; /* Slightly smaller text */
79+
}
80+
81+
/* On mobile screens, allow wrapping but only under 768px */
82+
@media (max-width: 768px) {
83+
.columns {
84+
flex-wrap: wrap !important;
85+
}
86+
.columns > .column {
87+
width: 100% !important;
88+
flex: 1 1 100% !important;
89+
}
90+
}
91+
92+
/* Quarto wraps the markdown into a <section> tag based on the headers */
93+
.columns > .column > section {
94+
flex: 1 1 auto;
95+
display: flex;
96+
flex-direction: column;
97+
}
98+
99+
.columns > .column > section > p:last-child {
100+
margin-top: auto; /* Pushes the buttons to the bottom */
101+
margin-bottom: 0;
102+
}
103+
104+
.columns > .column:hover {
105+
transform: translateY(-5px);
106+
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
107+
border-color: rgba(255,255,255,0.1);
108+
}
109+
110+
h1, h2, h3, h4, h5, h6, .lead {
111+
color: #f8fafc;
112+
}
113+
114+
.hero2 {
115+
font-size: 1.25rem;
116+
font-weight: 300;
117+
line-height: 1.6;
118+
color: #cbd5e1;
119+
text-align: center;
120+
max-width: 800px;
121+
margin: 0 auto 3rem auto;
122+
}
123+
124+
.page-footer {
125+
background: #070a10 !important;
126+
border-top: 1px solid rgba(255,255,255,0.05);
127+
}
128+
129+
/* Slider Overlays */
130+
.splide__slide {
131+
position: relative;
132+
}
133+
134+
.splide__slide > div {
135+
position: absolute;
136+
bottom: 0;
137+
left: 0;
138+
width: 100%;
139+
background: rgba(11, 15, 25, 0.85); /* Dark semi-transparent background */
140+
backdrop-filter: blur(8px);
141+
padding: 1.5rem;
142+
z-index: 10;
143+
text-align: center;
144+
border-top: 1px solid rgba(255, 255, 255, 0.1);
145+
}
146+
147+
.splide__slide > div > a {
148+
color: #f8fafc;
149+
font-family: "Outfit", sans-serif;
150+
font-weight: 500;
151+
font-size: 1.2rem;
152+
text-decoration: none;
153+
transition: color 0.2s ease;
154+
}
155+
156+
.splide__slide > div > a:hover {
157+
color: #a5b4fc;
158+
text-decoration: none;
159+
}

index.qmd

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ execute:
4343
eval: false
4444
---
4545

46-
<<<<<<< Updated upstream
47-
=======
4846

4947
:::: {.columns}
5048

@@ -65,7 +63,6 @@ execute:
6563
:::
6664

6765
::::
68-
>>>>>>> Stashed changes
6966
# Machine Learning in Materials Processing & Characterization
7067

7168
**5th Semester – 5 ECTS · 2h lecture + 2h exercises per week**

0 commit comments

Comments
 (0)