Skip to content

Commit

Permalink
⭐ add BLF & sheridan logos
Browse files Browse the repository at this point in the history
  • Loading branch information
webcrawls committed Apr 13, 2024
1 parent ff2f219 commit 1b3ccb0
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 25 deletions.
42 changes: 34 additions & 8 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,39 @@
setContext("currentTeam", currentTeam)
const scrollElementIntoView = (element: HTMLElement, behavior?: 'smooth' | 'instant' | 'auto') => {
let scrollTop = window.pageYOffset || element.scrollTop
// Furthermore, if you have for example a header outside the iframe
// you need to factor in its dimensions when calculating the position to scroll to
const finalOffset = element.getBoundingClientRect().top + scrollTop
element.scrollTo({
top: finalOffset * 2,
behavior: behavior || 'auto'
})
console.log({finalOffset})
}
const centerTv = () => {
let wrapper = document.querySelector(".main-wrapper > main")
wrapper.scrollIntoView({
behavior: "auto",
block: "center",
inline: "center",
});
let wrapper = document.querySelector(".main-wrapper")
const elementRect = wrapper.getBoundingClientRect();
// wrapper.scrollIntoView({
// behavior: "instant",
// block: "center",
// inline: "center",
// });
scrollElementIntoView(wrapper)
// wrapper.scrollTo({ left: middle})
// console.log("scrolling to "+middle)
}
onMount(() => {
new ResizeObserver(() => requestAnimationFrame(() => centerTv())).observe(document.body)
new ResizeObserver(() => setTimeout(() => centerTv(), 10)).observe(document.body)
})
// let aspectRatio = "unknown"
Expand Down Expand Up @@ -139,7 +161,11 @@
<p id="credits">made with 💖 by <a href="https://webcrawls.live">webcrawls</a></p>
</div>
</div>
<img src="/logo/logo-colour-pixels.png" alt="A pixelated version of the Interference Pattern logo."/>
<div class="image-bin">
<img src="/logo/sheridan-logo.png" alt="The Borderline Fever logo."
style="filter: invert(94%) sepia(94%) saturate(0%) hue-rotate(241deg) brightness(106%) contrast(105%);"/>
<img src="/logo/blf-logo.png" alt="The Sheridan College logo."/>
</div>
</div>
</footer>
</div>
Expand Down
52 changes: 35 additions & 17 deletions static/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,13 @@ footer .footer-container {
padding-inline: 1.5rem;
max-width: var(--header-footer-content-width);
width: 100%;
z height: 100%;
margin-inline: auto;

display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-end;
align-items: center;
}

footer .footer-wrapper {
Expand All @@ -137,16 +138,33 @@ footer .footer-wrapper {
flex-direction: column;
}

footer .footer-container > img {
/*height: min-content;*/
/*width: 100%;*/
width: 150px;
/*margin-block: auto;*/
align-self: center;
.image-bin {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
align-items: center;
}

.image-bin img {
width: 100px;
object-fit: contain;
height: min-content;
}

.image-bin img:last-child {
width: 80px;
}

/*footer .footer-container > img {*/
/* !*height: min-content;*!*/
/* !*width: 100%;*!*/
/* width: 150px;*/
/* !*margin-block: auto;*!*/
/* align-self: center;*/
/* height: 100%;*/
/* min-height: 0;*/
/*}*/

footer .section {
display: flex;
flex-direction: row;
Expand Down Expand Up @@ -326,21 +344,21 @@ main .tv-nav a:hover {
/*}*/

@media screen and (max-width: 550px) {
main {
transform: scale(0.9);
}
/*main {*/
/* transform: scale(0.9);*/
/*}*/
}

@media screen and (max-width: 475px) {
main {
transform: scale(0.85);
}
/*main {*/
/* transform: scale(0.85);*/
/*}*/
}

@media screen and (max-width: 440px) {
main {
transform: scale(0.8);
}
/*main {*/
/* transform: scale(0.8);*/
/*}*/

footer .footer-container > img {
width: 80px;
Expand Down
Binary file added static/logo/blf-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/logo/sheridan-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1b3ccb0

Please sign in to comment.