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

Fix: Ensure Footer Visibility on Smaller Screens #489

Merged
merged 6 commits into from
Mar 13, 2024
Merged
Changes from 3 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
16 changes: 5 additions & 11 deletions src/components/footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import './footer.css';

import * as React from 'react';
import { faBook, faDownload, faEnvelope, faQuestionCircle } from '@fortawesome/free-solid-svg-icons';
import { faBook, faDownload, faEnvelope, faQuestionCircle, faCode } from '@fortawesome/free-solid-svg-icons';
import Button from 'react-bootstrap/Button';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { ModalProps } from 'react-bootstrap/Modal';
Expand Down Expand Up @@ -38,7 +38,7 @@ const FooterNav_ = ({
const { t } = useLocalization();

return (
<Nav as="ul" className="p-0" role="navigation" style={{ cursor: 'pointer' }} variant="pills">
<Nav as="ul" className="p-2 flex-column flex-md-row" role="navigation" style={{ cursor: 'pointer' }} variant="pills">
<Nav.Item as="li">
<Nav.Link className="footer-link" onClick={() => setOpenTab(Tab.About)}>
<FontAwesomeIcon icon={faQuestionCircle} /> {t('About')}
Expand Down Expand Up @@ -95,7 +95,7 @@ const Footer = ({
<>
<div className="d-flex flex-column container" ref={footerRef}>
<div className="d-flex flex-column container">
<div className="d-none d-md-flex flex-wrap flex-row justify-content-between position-relative row">
<div className="d-md-flex flex-wrap flex-column flex-md-row justify-content-between position-relative row">
<FooterNav setOpenTab={setOpenTab} />

<div className="mb-4 d-flex flex-column">
Expand All @@ -106,21 +106,15 @@ const Footer = ({
</Button>
</div>
<a
className="text-muted d-none d-lg-block version align-self-end"
className="text-muted d-lg-block version align-self-end font-weigth-bold"
href="https://github.com/apertium/apertium-html-tools"
rel="noreferrer"
target="_blank"
>
<small>{version}</small>
<FontAwesomeIcon icon={faCode} /> {t('github ') + version}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you add "github" here & an icon? I think it was nice to have this be minimal.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, removed it. Just thought it would be good to have icon.

</a>
</div>
</div>
<div className="align-self-end card card-body d-block bg-light d-md-none my-2 p-2">
<span>{t('Notice_Mistake')}</span>{' '}
<Button className="p-0" onClick={() => setOpenTab(Tab.About)} tabIndex={0} variant="link">
{t('Help_Improve')}
</Button>
</div>
</div>
</div>

Expand Down