Skip to content

Commit

Permalink
remplace hardcodelink in footer componnent (#2946)
Browse files Browse the repository at this point in the history
* remplace hardcodelink in footer componnent

* fix Cspell error

* Update .env

* Update .env.sample

* Update footer.tsx

* Update footer.tsx

---------

Co-authored-by: Ruslan Konviser <[email protected]>
  • Loading branch information
samuelmbabhazi and evereq authored Aug 23, 2024
1 parent b3c0138 commit a131416
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
7 changes: 7 additions & 0 deletions apps/web/.env
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ APP_NAME="Ever Teams"
APP_SIGNATURE="Ever Teams"
APP_LOGO_URL="https://app.ever.team/assets/ever-teams.png"


#Footer links
NEXT_PUBLIC_EVER_TEAMS_LINK="https://ever.team"
NEXT_PUBLIC_EVER_PLATFORM_LINK="https://ever.co"
NEXT_PUBLIC_EVER_LEGAL_TERM="https://demo.gauzy.co/#/pages/legal/terms"
NEXT_PUBLIC_EVER_LEGAL_PRIVACY="https://demo.gauzy.co/#/pages/legal/privacy"

# Cookies
NEXT_PUBLIC_COOKIE_DOMAINS=ever.team

Expand Down
6 changes: 6 additions & 0 deletions apps/web/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ APP_NAME='Ever Teams'
APP_SIGNATURE='Ever Teams'
APP_LOGO_URL='https://app.ever.team/assets/ever-teams.png'

#Footer links
NEXT_PUBLIC_EVER_TEAMS_LINK="https://ever.team"
NEXT_PUBLIC_EVER_PLATFORM_LINK="https://ever.co"
NEXT_PUBLIC_EVER_LEGAL_TERM="https://demo.gauzy.co/#/pages/legal/terms"
NEXT_PUBLIC_EVER_LEGAL_PRIVACY="https://demo.gauzy.co/#/pages/legal/privacy"

# Cookies
NEXT_PUBLIC_COOKIE_DOMAINS=ever.team

Expand Down
8 changes: 4 additions & 4 deletions apps/web/components/layout/footer/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Footer = () => {
<div className="flex items-center justify-between space-x-1 sm:justify-start sm:space-x-2">
<span className="px-1">{t('layout.footer.COPY_RIGHT1', { date: new Date().getFullYear() })}</span>
<a
href="https://gauzy.team"
href={process.env.NEXT_PUBLIC_EVER_TEAMS_LINK || 'https://ever.team'}
target="_blank"
className="text-primary dark:text-gray-300"
rel="noreferrer"
Expand All @@ -18,7 +18,7 @@ const Footer = () => {
</a>
<div>by</div>
<a
href="https://ever.co"
href={process.env.NEXT_PUBLIC_EVER_PLATFORM_LINK || 'https://ever.co'}
target="_blank"
className="text-primary dark:text-gray-300"
rel="noreferrer"
Expand All @@ -38,15 +38,15 @@ const Footer = () => {
<div className="flex flex-col items-center xs:flex-row sm:flex-col md:flex-row">
<div className="flex justify-center w-full space-x-4 text-center">
<a
href="https://demo.gauzy.co/#/pages/legal/terms"
href={process.env.NEXT_PUBLIC_EVER_LEGAL_TERM}
target="_blank"
className="text-primary dark:text-gray-300"
rel="noreferrer"
>
{t('layout.footer.TERMS')}
</a>
<a
href="https://demo.gauzy.co/#/pages/legal/privacy"
href={process.env.NEXT_PUBLIC_EVER_LEGAL_PRIVACY}
target="_blank"
className="text-primary dark:text-gray-300"
rel="noreferrer"
Expand Down
11 changes: 8 additions & 3 deletions apps/web/lib/layout/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@ export function Footer({ className }: IClassName) {
<footer className={clsxm('flex flex-col xs:flex-row justify-around items-center w-full py-6 px-3', className)}>
<p className="text-neutral text-xs font-normal leading-4 -tracking-[-0.02em] text-center md:mb-2 mb-7">
{t('layout.footer.COPY_RIGHT1', { date: new Date().getFullYear() })}{' '}
<Text.Link href="https://ever.team">{t('TITLE')}</Text.Link> {t('layout.footer.BY')}{' '}
<Text.Link href="https://ever.co/">{t('layout.footer.COPY_RIGHT4')}</Text.Link>{' '}
<Text.Link href={process.env.NEXT_PUBLIC_EVER_TEAMS_LINK || 'https://ever.team'}>
{t('TITLE')}
</Text.Link>{' '}
{t('layout.footer.BY')}{' '}
<Text.Link href={process.env.NEXT_PUBLIC_EVER_PLATFORM_LINK || 'https://ever.co'}>
{t('layout.footer.COPY_RIGHT4')}
</Text.Link>{' '}
{t('layout.footer.RIGHTS_RESERVED')}
</p>
<div className="flex" style={{ marginRight: fullWidth && showChatwoot ? '66px' : 0 }}>
<LanguageDropDownWithFlags />
<LanguageDropDownWithFlags />
<ThemeToggler />
</div>
</footer>
Expand Down

0 comments on commit a131416

Please sign in to comment.