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

remplace hardcodelink in footer componnent #2946

Merged
merged 6 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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_SIGNATURE="Ever Teams"
APP_LOGO_URL="https://app.ever.team/assets/ever-teams.png"


#Footer links
NEXT_PUBLIC_EVER_TEAMS_LINK="https://gauzy.team"
NEXT_PUBLIC_EVER_PLATFORME_LINK="https://ever.co"

Check warning on line 94 in apps/web/.env

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (PLATFORME)
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_SIGNATURE='Ever Teams'
APP_LOGO_URL='https://app.ever.team/assets/ever-teams.png'

#Footer links
NEXT_PUBLIC_EVER_TEAMS_LINK="https://gauzy.team"
NEXT_PUBLIC_EVER_PLATFORME_LINK="https://ever.co"

Check warning on line 55 in apps/web/.env.sample

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (PLATFORME)
samuelmbabhazi marked this conversation as resolved.
Show resolved Hide resolved
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 @@
<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://gauzy.team'}
target="_blank"
className="text-primary dark:text-gray-300"
rel="noreferrer"
Expand All @@ -18,7 +18,7 @@
</a>
<div>by</div>
<a
href="https://ever.co"
href={process.env.NEXT_PUBLIC_EVER_PLATFORME_LINK || 'https://ever.co'}

Check warning on line 21 in apps/web/components/layout/footer/footer.tsx

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (PLATFORME)
target="_blank"
className="text-primary dark:text-gray-300"
rel="noreferrer"
Expand All @@ -38,15 +38,15 @@
<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 @@
<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://gauzy.team'}>
{t('TITLE')}
</Text.Link>{' '}
{t('layout.footer.BY')}{' '}
<Text.Link href={process.env.NEXT_PUBLIC_EVER_PLATFORME_LINK || 'https://ever.co'}>

Check warning on line 31 in apps/web/lib/layout/footer.tsx

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (PLATFORME)
{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
Loading