From 97540e1a43a2e80e6ac0962bb77b05e55116c68b Mon Sep 17 00:00:00 2001 From: diffim Date: Sat, 16 Sep 2023 21:50:20 +0400 Subject: [PATCH] remopved nested css --- src/components/Showcase.tsx | 2 +- src/components/showcase/CodeTabs.tsx | 28 +++++++++++----------- src/components/timeline/CarouselSlider.tsx | 12 +++++++--- src/styles/globals.css | 15 ++++++------ 4 files changed, 31 insertions(+), 26 deletions(-) diff --git a/src/components/Showcase.tsx b/src/components/Showcase.tsx index dfb79e7..13d7aae 100644 --- a/src/components/Showcase.tsx +++ b/src/components/Showcase.tsx @@ -196,7 +196,7 @@ function Showcase() { } className=" showcase-5 col-span-full w-full lg:col-span-6 " > -
+
diff --git a/src/components/showcase/CodeTabs.tsx b/src/components/showcase/CodeTabs.tsx index 7c37236..3e9c5d8 100644 --- a/src/components/showcase/CodeTabs.tsx +++ b/src/components/showcase/CodeTabs.tsx @@ -14,21 +14,21 @@ const CodeTabs: React.FC = () => { switch (activeTab) { case "python": return ` - def trust_authx(): - # Python code - pass +def trust_authx(): + # Python code + pass `; case "javascript": return ` - function trustAuth() { - // JavaScript code - } +function trustAuth() { + //js code +} `; case "go": return ` - func TrustAuthX() { - // Go code - } +func TrustAuthX() { + // Go code +} `; default: return ""; @@ -36,15 +36,15 @@ const CodeTabs: React.FC = () => { }; return ( -
-
+
+
-
+
{getCode()} diff --git a/src/components/timeline/CarouselSlider.tsx b/src/components/timeline/CarouselSlider.tsx index 7412b8e..1827a13 100644 --- a/src/components/timeline/CarouselSlider.tsx +++ b/src/components/timeline/CarouselSlider.tsx @@ -11,7 +11,10 @@ export default function Carousel({ children }: { children: React.ReactNode }) { return (
{active > 0 && ( -
))} {active < count - 1 && ( -