Skip to content

Commit e0082fb

Browse files
committed
More prominently position IWK/mdw logos
1 parent 8a0cae9 commit e0082fb

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545

4646
<!-- ====================== HERO ====================== -->
4747
<section class="hero" aria-labelledby="hero-heading">
48+
<a class="hero-corner hero-corner-left" href="https://iwk.mdw.ac.at" target="_blank" rel="noopener">
49+
<img src="assets/logos/IWK-logo2018-P281-short.svg" alt="IWK – Department of Music Acoustics – Wiener Klangstil">
50+
</a>
51+
<a class="hero-corner hero-corner-right" href="https://mdw.ac.at" target="_blank" rel="noopener">
52+
<img src="assets/logos/MDW_Logo_englisch281.svg" alt="mdw – University of Music and Performing Arts Vienna">
53+
</a>
4854
<div class="wrap">
4955
<h1 id="hero-heading" class="visually-hidden" style="position:absolute;left:-9999px;">Let's Encode!</h1>
5056
<!--

styles.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ a:hover {
161161
border-bottom: 1px solid var(--line);
162162
padding: clamp(2.5rem, 6vw, 5rem) 0;
163163
text-align: center;
164+
position: relative;
164165
}
165166

166167
.hero .logo {
@@ -174,6 +175,35 @@ a:hover {
174175
display: block;
175176
}
176177

178+
/* Institutional logos pinned to the top corners of the hero. */
179+
.hero-corner {
180+
position: absolute;
181+
top: clamp(1rem, 3vw, 2rem);
182+
display: inline-flex;
183+
align-items: center;
184+
transition: transform .15s ease, opacity .15s ease;
185+
z-index: 1;
186+
}
187+
188+
.hero-corner-left {
189+
left: clamp(1rem, 3vw, 2rem);
190+
}
191+
192+
.hero-corner-right {
193+
right: clamp(1rem, 3vw, 2rem);
194+
}
195+
196+
.hero-corner img {
197+
height: 44px;
198+
width: auto;
199+
display: block;
200+
}
201+
202+
.hero-corner:hover {
203+
transform: translateY(-2px);
204+
opacity: .85;
205+
}
206+
177207
.hero .tagline {
178208
font-size: clamp(1.15rem, 2.4vw, 1.55rem);
179209
font-weight: 600;
@@ -528,6 +558,17 @@ section.alt {
528558
scroll-padding-top: 26px;
529559
}
530560

561+
/* smaller corner logos so they clear the centered project logo on narrow screens */
562+
.hero-corner img {
563+
height: 30px;
564+
}
565+
566+
/* the corner logos are absolutely positioned, so add top padding to push the
567+
centered project logo down clear of them (logo height + inset + breathing room) */
568+
.hero {
569+
padding-top: 5.5rem;
570+
}
571+
531572
/* swap the logo image for a plaintext wordmark on mobile */
532573
.brand-logo {
533574
display: none;

0 commit comments

Comments
 (0)