Skip to content

Commit 25f383d

Browse files
authored
Added dev team credits and dev team logo to footer under REACH US AT (#870)
* Fix: added dev team credits and dev team logo to footer under REACH US AT * Changed footer credits to 'Website Made By' and moved styling from FooterLinkElement to Footer SCSS. Fixed placeholder link width issue when initiative image is missing. * added new line at end of footer.module.scss file
1 parent 15bd8a3 commit 25f383d

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

components/Footer.js

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,36 @@ function Footer() {
9898
<a className={styles['link-footer']} href="mailto: acm@ucla.edu">
9999
<span className="footer-text">acm@ucla.edu</span>
100100
</a>
101+
<h3 className={styles['footer-header']}>Website Made By</h3>
102+
<FooterLinkElement
103+
path={footerInitiativeLinks[0].path}
104+
title={
105+
footerInitiativeLinks[0].useImage ? (
106+
<div className={styles['footer-image-container']}>
107+
<img
108+
className="committee-sidebar-image"
109+
src={footerInitiativeLinks[0].wordmark_dark}
110+
alt={`ACM ${footerInitiativeLinks[0].name}`}
111+
style={{
112+
margin: '0 auto',
113+
transform: 'translateX(-3px) scale(0.85)',
114+
}}
115+
onError={(e) => {
116+
e.target.onerror = null;
117+
e.target.style.display = 'none';
118+
const parentNode = e.target.parentNode;
119+
parentNode.textContent = `ACM ${footerInitiativeLinks[0].name}`;
120+
parentNode.style.textAlign = 'center';
121+
parentNode.style.display = 'block';
122+
}}
123+
/>
124+
</div>
125+
) : (
126+
<span className="footer-text">ACM {footerInitiativeLinks[0].name}</span>
127+
)
128+
}
129+
ext={false}
130+
/>
101131
</div>
102132
<div>
103133
<h3 className={styles['footer-header']}>About ACM at UCLA</h3>
@@ -119,7 +149,7 @@ function Footer() {
119149
path={initiative.path}
120150
title={
121151
initiative.useImage ? (
122-
<div style={{ textAlign: 'center', display: 'flex', justifyContent: 'center' }}>
152+
<div className={styles['footer-image-container']}>
123153
<img
124154
className="committee-sidebar-image"
125155
src={initiative.wordmark_dark}
@@ -140,7 +170,7 @@ function Footer() {
140170
/>
141171
</div>
142172
) : (
143-
<span style={{ display: 'block', textAlign: 'center' }}>ACM {initiative.name}</span>
173+
<span className="footer-text">ACM {initiative.name}</span>
144174
)
145175
}
146176
ext={false}

styles/components/Footer.module.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@
4141
.display-inline {
4242
display: inline;
4343
}
44+
45+
.footer-image-container {
46+
text-align: center;
47+
display: flex;
48+
justify-content: center;
49+
}

0 commit comments

Comments
 (0)