Skip to content

Commit

Permalink
Merge pull request #949 from AlexsLemonade/nozomione/948-change-donat…
Browse files Browse the repository at this point in the history
…e-button-link

948 Change donate button link to new form
  • Loading branch information
davidsmejia authored Oct 18, 2024
2 parents 5e34b34 + 8b7219f commit d2e59c0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
19 changes: 11 additions & 8 deletions client/src/components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
import styled from 'styled-components'
import Link from 'components/Link'
import Icon from 'components/Icon'
import { config } from 'config'

const NoTouch = styled(Image)`
pointer-events: none;
Expand All @@ -36,7 +37,12 @@ export const Footer = () => {
</Text>
<Text>Phone: 866.333.1213 • Fax: 610.649.3038</Text>
<Box margin={{ top: 'large' }}>
<Button primary label="Donate" />
<Button
primary
label="Donate"
href={config.links.donate}
target="_blank"
/>
</Box>
</Box>
<Box
Expand Down Expand Up @@ -81,10 +87,7 @@ export const Footer = () => {
<Nav direction="row" align="center" gap="large">
<Link href="/terms-of-use" label="Terms of Use" />
<Link href="/privacy-policy" label="Privacy Policy" />
<Link
href="https://help.resources.alexslemonade.org/knowledge"
label="Help"
/>
<Link href={config.links.portal_help} label="Help" />
</Nav>
</Box>
<Box
Expand All @@ -94,13 +97,13 @@ export const Footer = () => {
basis="1/3"
pad={{ left: 'xlarge' }}
>
<Link href="https://twitter.com/alexslemonade">
<Link href={config.links.alsfTwitter}>
<Icon name="Twitter" color="black-tint-40" />
</Link>
<Link href="http://www.instagram.com/alexslemonade">
<Link href={config.links.alsfInstagram}>
<Icon name="Instagram" color="black-tint-40" />
</Link>
<Link href="http://www.facebook.com/alexslemonade">
<Link href={config.links.alsfFacebook}>
<Icon name="Facebook" color="black-tint-40" />
</Link>
</Box>
Expand Down
11 changes: 11 additions & 0 deletions client/src/config/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export const config = {
links: {
portal_help: 'https://help.resources.alexslemonade.org/knowledge',
donate: 'https://www.ccdatalab.org/donate-link',
alsfTwitter: 'https://twitter.com/alexslemonade',
alsfInstagram: 'http://www.instagram.com/alexslemonade',
alsfFacebook: 'http://www.facebook.com/alexslemonade'
}
}

export default config

0 comments on commit d2e59c0

Please sign in to comment.