-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
SergioAR
committed
Oct 26, 2024
1 parent
147ad1f
commit 00dd20d
Showing
7 changed files
with
334 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Translations } from '../components/utils' | ||
|
||
export interface TranslationsKey { | ||
name: string | ||
isParagraph: boolean | ||
isTitle1: boolean | ||
isTitle2: boolean | ||
isTitle3: boolean | ||
classNameExtra?: string | ||
} | ||
|
||
export interface TermsAndPrivacy { | ||
translations: Translations | undefined | ||
} | ||
|
||
const classNamesTitle1 = 'text-2xl lg:text-4xl xl:text-4xl 2xl:text-4xl text-hologram-color font-semibold' | ||
const classNameTitle2 = 'text-xl lg:text-4xl xl:text-4xl 2xl:text-4xl font-semibold my-6' | ||
const classNameTitle3 = 'lg:text-3xl xl:text-3xl 2xl:text-3xl font-semibold my-6' | ||
const classNameParagraph = 'lg:text-xl xl:lg:text-xl 2xl:lg:text-xl text-justify' | ||
|
||
export const getStyleText = (translation: TranslationsKey): string => { | ||
return translation.isParagraph | ||
? classNameParagraph | ||
: translation.isTitle1 | ||
? classNamesTitle1 | ||
: translation.isTitle2 | ||
? classNameTitle2 | ||
: translation.isTitle3 | ||
? classNameTitle3 | ||
: '' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.