Skip to content

Commit

Permalink
Merge pull request #93 from feature-sh/feat/add-brandkit-link
Browse files Browse the repository at this point in the history
feat: add brandkit link in the footer
  • Loading branch information
n1c01a5 authored Sep 18, 2024
2 parents 320e371 + 71a2ff3 commit 9026ace
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
9 changes: 8 additions & 1 deletion components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ const FooterNav: React.FC<FooterProps> = ({ section }) => {
],
company: [
{
name: translate('footer_company_name_row2'),
name: translate('footer_company_name_row1'),
href: 'https://www.linkedin.com/company/feature-sh/',
},
{
name: translate('footer_company_name_row2'),
href: 'https://www.figma.com/design/lDV8mdvtiR8gwnO9JjveiF/FEATURE---BRANDING-KIT',
},
// { name: 'Blog', href: '#' },
// { name: 'Jobs', href: '#' },
// { name: 'Press', href: '#' },
Expand Down Expand Up @@ -274,6 +278,9 @@ const Footer: React.FC = () => {
</h3>
<FooterNav section="legal" />
<div className="mt-14">
<label className="text-base text-gray-500">
{translate('footer_language_switcher')}
</label>
<LanguageSwitcher languages={languages} hasIcon={false} />
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions components/language-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const LanguageSwitcher: React.FC<LanguageSwitcherProps> = ({
}

return (
<div className={'flex items-center gap-x-2'}>
<div className="flex items-center gap-x-2 text-gray-500">
{hasIcon && (
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down Expand Up @@ -80,7 +80,7 @@ const LanguageSwitcher: React.FC<LanguageSwitcherProps> = ({
classNames(
active
? 'bg-yellow-500 text-white'
: 'text-gray-900',
: 'text-gray-500',
'relative cursor-default select-none py-2 pl-8 pr-4'
)
}
Expand Down
5 changes: 3 additions & 2 deletions public/locales/en-US/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
"footer_support_name_row1": "Documentation",
"footer_support_name_row2": "Help",
"footer_company_title": "Company",
"footer_company_name_row1": "Analytics",
"footer_company_name_row2": "About",
"footer_company_name_row1": "About",
"footer_company_name_row2": "Brandkit",
"footer_legal_title": "Legal",
"footer_legal_name_row1": "Policy",

"footer_language_switcher": "Choose language:",
"language_french": "French",
"language_english": "English",

Expand Down
5 changes: 3 additions & 2 deletions public/locales/fr/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
"footer_support_name_row1": "Documentation",
"footer_support_name_row2": "Aide",
"footer_company_title": "Entreprise",
"footer_company_name_row1": "Analyse",
"footer_company_name_row2": "À propos",
"footer_company_name_row1": "À propos",
"footer_company_name_row2": "Kit de marque",
"footer_legal_title": "Juridique",
"footer_legal_name_row1": "Politique",

"footer_language_switcher": "Choisir la langue :",
"language_french": "Français",
"language_english": "Anglais",

Expand Down

0 comments on commit 9026ace

Please sign in to comment.