Skip to content

Commit

Permalink
Remove icons from fellow projects
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaaatt committed Oct 5, 2023
1 parent 3f94463 commit de35777
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 74 deletions.
18 changes: 5 additions & 13 deletions root/layout/components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import DBDefs from '../../static/scripts/common/DBDefs.mjs';
import {capitalize} from '../../static/scripts/common/utility/strings.js';
import {returnToCurrentPage} from '../../utility/returnUri.js';

import type {Channel, LinkAndIconProps, LinkAndImgProps, LinkProps}
import type {Channel, LinkAndIconProps, LinkProps}
from './FooterData.js';
import {footerData} from './FooterData.js';

Expand Down Expand Up @@ -194,29 +194,21 @@ const UsefulLinksList = (): React.Element<'ul'> => {
};

const FellowProjectListElement = ({
img,
link,
}: LinkAndImgProps): React.Element<'li'> => {
href, text,
}: LinkProps): React.Element<'li'> => {
return (
<li>
<FontAwesomeIcon
className="me-3"
icon={faChevronRight}
size="sm"
/>
<img
alt={img.alt}
className="me-1"
height="24"
src={img.src}
width="24"
/>
<a
href={link.href}
href={href}
rel="noopener noreferrer"
target="_blank"
>
{l(link.text)}
{l(text)}
</a>
</li>
);
Expand Down
74 changes: 13 additions & 61 deletions root/layout/components/FooterData.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ import type {IconLookup} from '@fortawesome/fontawesome-common-types';
import {faFacebook, faInstagram, faLinkedin, faTwitter}
from '@fortawesome/free-brands-svg-icons';

import bookbrainzLogo from '../../static/images/meb-icons/BookBrainz.svg';
import caaLogo from '../../static/images/meb-icons/CoverArtArchive.svg';
import critiquebrainzLogo
from '../../static/images/meb-icons/CritiqueBrainz.svg';
import listenbrainzLogo from '../../static/images/meb-icons/ListenBrainz.svg';
import metabrainzLogo from '../../static/images/meb-icons/MetaBrainz.svg';
import picardLogo from '../../static/images/meb-icons/Picard.svg';

export type LinkProps = {
href: string,
text: string,
Expand All @@ -35,10 +27,6 @@ export type LinkAndIconProps = {
link: LinkProps,
};

export type LinkAndImgProps = {
img: ImgProps,
link: LinkProps,
};

export type Channel = {
href: string,
Expand All @@ -49,7 +37,7 @@ export type Channel = {

export type FooterData = {
channels: Channel[],
fellowProjects: LinkAndImgProps[],
fellowProjects: LinkProps[],
joinUsLinks: LinkProps[],
socialNetworks: LinkAndIconProps[],
usefulLinks: LinkProps[],
Expand Down Expand Up @@ -79,64 +67,28 @@ export const footerData: FooterData = {
],
fellowProjects: [
{
img: {
alt: 'ListenBrainz',
src: listenbrainzLogo,
},
link: {
href: 'https://listenbrainz.org/',
text: 'ListenBrainz',
},
href: 'https://listenbrainz.org/',
text: 'ListenBrainz',
},
{
img: {
alt: 'CritiqueBrainz',
src: critiquebrainzLogo,
},
link: {
href: 'https://critiquebrainz.org/',
text: 'CritiqueBrainz',
},
href: 'https://critiquebrainz.org/',
text: 'CritiqueBrainz',
},
{
img: {
alt: 'Picard',
src: picardLogo,
},
link: {
href: 'https://picard.musicbrainz.org/',
text: 'Picard',
},
href: 'https://picard.musicbrainz.org/',
text: 'Picard',
},
{
img: {
alt: 'BookBrainz',
src: bookbrainzLogo,
},
link: {
href: 'https://bookbrainz.org/',
text: 'BookBrainz',
},
href: 'https://bookbrainz.org/',
text: 'BookBrainz',
},
{
img: {
alt: 'CoverArtArchive',
src: caaLogo,
},
link: {
href: 'https://coverartarchive.org',
text: 'Cover Art Archive',
},
href: 'https://coverartarchive.org',
text: 'Cover Art Archive',
},
{
img: {
alt: 'MetaBrainz',
src: metabrainzLogo,
},
link: {
href: 'https://metabrainz.org/',
text: 'MetaBrainz',
},
href: 'https://metabrainz.org/',
text: 'MetaBrainz',
},
],
joinUsLinks: [
Expand Down

0 comments on commit de35777

Please sign in to comment.