Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

site-wide footer #823

Merged
merged 2 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/components/Footer/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
}

.footer-contents {
display: flex;
/* display: flex;
gap: var(--spacing-32);
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
align-items: baseline;
margin: var(--spacing-104) var(--spacing-80) var(--spacing-80) var(--spacing-80);
margin: var(--spacing-104) var(--spacing-80) var(--spacing-80) var(--spacing-80); */
}

@media (max-width: 780px) {
@media (max-width: 1136px) {
.footer-contents {
flex-direction: column;
gap: 32px;
Expand Down
81 changes: 51 additions & 30 deletions app/components/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import {FunctionComponent} from 'react'
import './footer.css'

const year = new Date().getFullYear()

const Link = ({to, title}: {to: string; title: string}) => (
<div>
const Link = ({to, title, className}: {to: string; title: string; className?: string}) => (
<div className={className}>
<a href={to} target="_blank" rel="noreferrer">
{title}
</a>
Expand All @@ -13,39 +12,61 @@ const Link = ({to, title}: {to: string; title: string}) => (

export const FooterBar: FunctionComponent = () => {
return (
<div className="footer" key="footer">
<div className="padding-top-104">
<hr />
<div className="footer-contents">
<div className="col-5">
<p className="large-bold teal-500 padding-bottom-16">
<a href="/">AISafety.info</a>
</p>
<div>
We’re a global team of specialists and volunteers from various backgrounds who want to
ensure that the effects of future AI are beneficial rather than catastrophic.
<div className="page-body" key="footer">
<div className="flexbox padding-bottom-80 padding-top-104">
<div className="col-5">
<p className="large-bold teal-500 padding-bottom-16">
<a href="/">AISafety.info</a>
</p>
<div>
We’re a global team of specialists and volunteers from various backgrounds who want to
ensure that the effects of future AI are beneficial rather than catastrophic.
</div>
</div>
</div>

<div className="col-3 small">
<p className="small-bold padding-bottom-16">Get involved</p>
<Link to="https://www.every.org/stampy?utm_campaign=donate-link#/donate" title="Donate" />
<Link to="https://github.com/StampyAI/stampy-ui" title="Code" />
<Link to="https://get_involved.aisafety.info/" title="Write" />
<Link to="https://discord.gg/88TbjZnNyA" title="Join us on Discord" />
<div className="col-3 small">
<p className="small-bold padding-bottom-16">Get involved</p>
<Link
to="https://www.every.org/stampy?utm_campaign=donate-link#/donate"
title="Donate"
className="padding-bottom-8"
/>
<Link
to="https://github.com/StampyAI/stampy-ui"
title="Code"
className="padding-bottom-8"
/>
<Link
to="https://get_involved.aisafety.info/"
title="Write"
className="padding-bottom-8"
/>
<Link to="https://discord.gg/88TbjZnNyA" title="Join us on Discord" />
</div>
<div className="partners small col-4">
<p className="small-bold padding-bottom-16">Partner projects</p>
<Link
to="https://www.aisafety.com/"
title="AISafety.com"
className="padding-bottom-8"
/>
<Link
to="https://alignment.dev/"
title="Alignment Ecosystem Development"
className="padding-bottom-8"
/>
</div>
</div>
<div className="partners small col-4">
<p className="small-bold padding-bottom-16">Partner projects</p>
<Link to="https://www.aisafety.com/" title="AISafety.com" />
<Link to="https://alignment.dev/" title="Alignment Ecosystem Development" />
<div className="xs grey text-align-center padding-bottom-16">
<br />
<Link
to="https://coda.io/d/AI-Safety-Info-Dashboard_dfau7sl2hmG/Copyright_su79L#_luPMa"
title={`© AISafety.info, 2022—${year}`}
/>
</div>
</div>
<div className="xs grey text-align-center padding-bottom-16">
<br />
<Link
to="https://coda.io/d/AI-Safety-Info-Dashboard_dfau7sl2hmG/Copyright_su79L#_luPMa"
title={`© aisafety.info, 2022-${year}`}
/>
</div>
</div>
)
}
Expand Down
Loading