|
13 | 13 | h1 { font-size: 1.8rem; margin-bottom: .3rem; } |
14 | 14 | .subtitle { color: #8b949e; margin-bottom: 2rem; } |
15 | 15 | .subtitle a { color: var(--accent); text-decoration: none; } |
16 | | - .hero { background: linear-gradient(135deg, #1a1e2e, #161b22); border: 1px solid var(--border); |
17 | | - border-radius: 12px; padding: 2rem; margin-bottom: 2rem; text-align: center; } |
| 16 | + .hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #1a1e2e, #161b22); |
| 17 | + border: 1px solid var(--border); border-radius: 12px; padding: 2rem; margin-bottom: 2rem; text-align: center; } |
| 18 | + .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; |
| 19 | + filter: blur(20px) brightness(0.3); opacity: 0; transition: opacity 0.5s; z-index: 0; } |
| 20 | + .hero-bg.active { opacity: 0.4; } |
| 21 | + .hero-content { position: relative; z-index: 1; } |
18 | 22 | .hero p { color: #8b949e; margin-bottom: 1.5rem; font-size: 1.05rem; } |
19 | 23 | .hero .badge { display: inline-block; background: var(--purple); color: #fff; font-size: .75rem; |
20 | 24 | padding: .2rem .6rem; border-radius: 99px; margin-bottom: .8rem; font-weight: 600; } |
|
39 | 43 | </head> |
40 | 44 | <body> |
41 | 45 |
|
42 | | -<div class="hero"> |
43 | | - <span class="badge">✨ Generated by NotebookLM</span> |
44 | | - <h1>🔍 Socratic-Study-Mentor — Generated Artefacts</h1> |
45 | | - <p>Explore this project through AI-generated overviews — listen, watch, or read.</p> |
| 46 | +<div class="hero" id="hero"> |
| 47 | + <div class="hero-bg" id="hero-bg"></div> |
| 48 | + <div class="hero-content"> |
| 49 | + <span class="badge">✨ Generated by NotebookLM</span> |
| 50 | + <h1>🔍 Socratic-Study-Mentor — Generated Artefacts</h1> |
| 51 | + <p>Explore this project through AI-generated overviews — listen, watch, or read.</p> |
| 52 | + </div> |
46 | 53 | </div> |
47 | 54 |
|
48 | 55 | <p class="subtitle"><a href="../../">← Back to repository</a></p> |
@@ -104,6 +111,13 @@ <h2>Slide Deck</h2> |
104 | 111 | } |
105 | 112 | if (!found) document.getElementById(cfg.section).classList.add('hidden'); |
106 | 113 | } |
| 114 | + // Use infographic as hero background if available |
| 115 | + const infEl = document.getElementById('infographic'); |
| 116 | + if (infEl && infEl.src) { |
| 117 | + const bg = document.getElementById('hero-bg'); |
| 118 | + bg.style.backgroundImage = `url(${infEl.src})`; |
| 119 | + bg.classList.add('active'); |
| 120 | + } |
107 | 121 | })(); |
108 | 122 | </script> |
109 | 123 | </body> |
|
0 commit comments