Skip to content

Commit ca619b9

Browse files
committed
chore: Code clean up and header updates
1 parent a692f32 commit ca619b9

9 files changed

Lines changed: 53 additions & 7 deletions

File tree

-15.5 MB
Binary file not shown.
-2.28 MB
Binary file not shown.
-54.9 KB
Binary file not shown.
-78.4 KB
Binary file not shown.
-182 KB
Binary file not shown.
-176 KB
Binary file not shown.

public/tech_fair/2025/index.html

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,39 @@
1616
<body>
1717
<header id="header">
1818
<nav>
19-
<a id="home-link" href="/">
20-
<img id="home-logo" src="/static/icons/csss_logo.svg" alt="CSSS Logo" />
19+
<a id="home-link" href="https://new.sfucsss.org" target="_blank">
20+
<svg
21+
xmlns="http://www.w3.org/2000/svg"
22+
xml:space="preserve"
23+
id="home-logo"
24+
x="0"
25+
y="0"
26+
version="1.1"
27+
viewBox="0 0 678 744"
28+
>
29+
<g id="g4" transform="translate(-56 -16)">
30+
<path
31+
id="path1"
32+
d="M248 160v208c0 8.8 7.2 16 16 16h120c4.4 0 8 3.6 8 8v32c0 4.4-3.6 8-8 8H224c-13.2 0-24-10.8-24-24V120c0-13.2 10.8-24 24-24h160c4.4 0 8 3.6 8 8v32c0 4.4-3.6 8-8 8H264c-8.8 0-16 7.2-16 16z"
33+
class="st0"
34+
/>
35+
<path
36+
id="path2"
37+
d="M456 72v16c0 4.4 3.6 8 8 8h112c13.2 0 24 10.8 24 24v288c0 13.2-10.8 24-24 24H416c-4.4 0-8-3.6-8-8v-32c0-4.4 3.6-8 8-8h120c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16H416c-4.4 0-8-3.6-8-8V40c0-13.2 10.8-24 24-24h160c4.4 0 8 3.6 8 8v32c0 4.4-3.6 8-8 8H464c-4.4 0-8 3.6-8 8z"
38+
class="st0"
39+
/>
40+
<path
41+
id="path3"
42+
d="M708 680H416c-4.4 0-8-3.6-8-8v-32c0-4.4 3.6-8 8-8h244c.5 0 1 0 1.5-.1 10.9-.8 17.2-10.2 15.2-22-.2-.8-.3-1.7-.6-2.5L661.6 554v-.2c-1.5-5.4-7.4-9.8-13.1-9.8H416c-4.4 0-8-3.6-8-8v-80c0-4.4 3.6-8 8-8h176c4.4 0 8 3.6 8 8v24c0 4.4-3.6 8-8 8H452c-2.2 0-4 1.8-4 4v8c0 2.2 1.8 4 4 4h216c11 0 22.8 8.6 26.2 19.6l6.5 20.4 28 88 3.4 10.7c6.5 20.3-4.2 37.3-24.1 37.3Z"
43+
class="st0"
44+
/>
45+
<path
46+
id="path4"
47+
d="M123.2 610c-2 11.7 4.3 21.1 15.2 22 .5 0 1.1.1 1.6.1h229.2c12.6 0 22.8 10.3 22.8 23.4V736c0 13.2-10.8 24-24 24H64c-4.4 0-8-3.6-8-8v-32c0-4.4 3.6-8 8-8h272c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H92c-19.9 0-30.6-17-24.1-37.3l3.4-10.7 28-88 6.5-20.4C109.3 512.7 121 504 132 504h252c4.4 0 8 3.6 8 8v24c0 4.4-3.6 8-8 8H151.5c-5.7 0-11.6 4.3-13.1 9.8v.2l-14.6 53.4c-.2.9-.4 1.7-.6 2.6z"
48+
class="st0"
49+
/>
50+
</g>
51+
</svg>
2152
</a>
2253
<ul id="nav-list" class="centering">
2354
<li><a href="#about">About</a></li>

public/tech_fair/2025/main.js

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ function setScrolledEffect() {
3838
toggleActions: 'play none reverse none'
3939
};
4040

41+
const timing = 0.3;
42+
4143
gsap.to('#header', {
4244
scrollTrigger,
4345
borderBottom: 'solid black 1px',
@@ -46,13 +48,25 @@ function setScrolledEffect() {
4648
gsap.to('#nav-list', {
4749
scrollTrigger,
4850
padding: 0,
49-
duration: 0.1
51+
duration: timing
52+
});
53+
gsap.to('#home-link', {
54+
scrollTrigger,
55+
height: 0,
56+
width: 0,
57+
x: '-5rem',
58+
y: '-1rem',
59+
duration: timing,
60+
ease: 'none'
5061
});
5162
gsap.to('#home-logo', {
5263
scrollTrigger,
64+
height: 0,
65+
width: 0,
5366
x: '-5rem',
54-
scale: 0,
55-
duration: 0.3
67+
y: '-1rem',
68+
duration: timing,
69+
ease: 'none'
5670
});
5771
}
5872

public/tech_fair/2025/style.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
:root {
77
/* Structure */
88
--header-height: 3rem;
9-
--square-logo-dim: 2.8rem;
9+
--square-logo-dim: 2.5rem;
1010
--paper-shadow: 5px 5px 7px black;
1111
--photo-w: 460px;
1212
}
@@ -111,8 +111,9 @@ header {
111111
/* This keeps the icon at the far left and the nav links centered */
112112
position: absolute;
113113
left: 1vw;
114+
top: 1vh;
114115

115-
&>img {
116+
&>#home-logo {
116117
width: var(--square-logo-dim);
117118
height: var(--square-logo-dim);
118119
}

0 commit comments

Comments
 (0)