From 72915f515daa7d6078051a4fa05dd14c12709137 Mon Sep 17 00:00:00 2001
From: FernandoJVideira <03.pleaser-minster@icloud.com>
Date: Tue, 11 Jun 2024 21:12:13 +0100
Subject: [PATCH] Responsive design fix PT
---
src/Components/Pages/Hero/Hero.tsx | 28 ++++++++++++++++++++++-----
src/Components/Pages/Results/Card.tsx | 22 +++++++++++++++++++--
src/index.css | 26 +++++++++++++++++++++++++
3 files changed, 69 insertions(+), 7 deletions(-)
diff --git a/src/Components/Pages/Hero/Hero.tsx b/src/Components/Pages/Hero/Hero.tsx
index 620a7db..1b91b77 100644
--- a/src/Components/Pages/Hero/Hero.tsx
+++ b/src/Components/Pages/Hero/Hero.tsx
@@ -3,7 +3,7 @@ import HeroImg from "../../../assets/HeroImg.svg";
import Stars from "../../../assets/Stars.svg";
const Hero = () => {
- const { t } = useTranslation();
+ const { t, i18n } = useTranslation();
const handleNavigation = (path: string) => {
const element = document.getElementById(path);
@@ -28,8 +28,16 @@ const Hero = () => {
className="md:px-0 ml-auto mr-auto lg:mr-0 lg:text-right"
>
-
{t("hero.heading.part1")}
-
{t("hero.heading.part2")}
+
+ {t("hero.heading.part1")}
+
+
+ {t("hero.heading.part2")}
+

{
-
+
{t("hero.subheading.part1")}
-
+
{t("hero.subheading.part2")}
diff --git a/src/Components/Pages/Results/Card.tsx b/src/Components/Pages/Results/Card.tsx
index b340fd6..33f20c6 100644
--- a/src/Components/Pages/Results/Card.tsx
+++ b/src/Components/Pages/Results/Card.tsx
@@ -1,14 +1,32 @@
+import { useTranslation } from "react-i18next";
+
interface IProps {
title: string;
description: string;
}
const Card = ({ title, description }: IProps) => {
+ const { i18n } = useTranslation();
+
return (
-
{title}
-
+
+ {title}
+
+
{description.split("\n").map((line, i) => (
{line}
diff --git a/src/index.css b/src/index.css
index bb429a6..4ac4dfc 100644
--- a/src/index.css
+++ b/src/index.css
@@ -11,6 +11,16 @@ body {
.hero-text {
@apply font-medium text-5xl lg:text-7xl xl:text-8xl;
}
+.hero-text-pt {
+ @apply font-medium text-4xl lg:text-6xl xl:text-7xl;
+}
+
+.hero-sub-text {
+ @apply italic text-lg md:text-2xl 2xl:text-3xl;
+}
+.hero-sub-text-pt {
+ @apply italic text-lg md:text-xl 2xl:text-2xl;
+}
.header-text {
@apply mt-20 lg:mt-48 text-3xl md:text-5xl xl:text-7xl text-center;
@@ -32,6 +42,22 @@ body {
animation: fadeEffect 1s ease-in-out;
}
+.results-card-heading {
+ @apply mt-2 lg:mt-6 text-3xl xl:text-5xl;
+}
+.results-card-heading-pt {
+ @apply mt-2 lg:mt-6 text-2xl xl:text-4xl;
+}
+
+.results-card-content {
+ @apply mb-2 mt-3 italic text-xl xl:text-3xl font-medium text-gray-300;
+}
+
+.results-card-content-pt {
+ @apply mb-2 mt-3 italic text-lg xl:text-2xl font-medium text-gray-300;
+}
+
+
@keyframes fadeEffect {
0% {
opacity: 0;