diff --git a/public/svgs/TrustAuthXLogo.tsx b/public/svgs/TrustAuthXLogo.tsx index f739e36..d4c8a05 100644 --- a/public/svgs/TrustAuthXLogo.tsx +++ b/public/svgs/TrustAuthXLogo.tsx @@ -7,6 +7,7 @@ export const TrustAuthXLogo = () => { height="50" viewBox="0 0 47 47" fill="none" + className="p-1 md:p-0" xmlns="http://www.w3.org/2000/svg" > diff --git a/src/components/AiInCLI.tsx b/src/components/AiInCLI.tsx index 835fff7..d56cb83 100644 --- a/src/components/AiInCLI.tsx +++ b/src/components/AiInCLI.tsx @@ -7,7 +7,7 @@ function AiInCli() { return (
{/*CTA*/} -

+

TrustAuthX Light
for Business,
Delight for Devs. diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index dfbefc0..a4d6aaf 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -45,7 +45,7 @@ function Navbar() { return ( <> -
+
{/*Internal Links*/}
@@ -73,7 +73,7 @@ function Navbar() { {internalLinks.map((link) => ( diff --git a/src/components/Showcase.tsx b/src/components/Showcase.tsx index a5eea14..f57c704 100644 --- a/src/components/Showcase.tsx +++ b/src/components/Showcase.tsx @@ -10,23 +10,26 @@ import { ShowcaseSocialConnectionCard, } from "./showcase/Components"; import CodeTabs from "./showcase/CodeTabs"; +import { useMediaQuery } from "@mantine/hooks"; function Showcase() { + const isMobile = useMediaQuery("(max-width: 768px)"); + return (
-
-

+

+

Powerful.Simple. And Sooo... Easy to Setup

-

+

We made building Auth for sites easy, fast and Scalable while delivering best-in-class Security & performance

-

+

;)

@@ -211,100 +214,104 @@ function Showcase() {
- -

- 1 - from - - trustauthx.authlite{" "} - - import - AuthLiteClient -

- - - 2 - - -

- - 3 - - client - = - AuthLiteClient - ( -

+ {!isMobile ? ( + +

+ 1 + from + + trustauthx.authlite{" "} + + import + AuthLiteClient +

-
- 4 + 2 -
- api_key +

+ + 3 + + client = - {"f28ffe7f2e..."} + AuthLiteClient - , -

-
+ ( +

-
- - 5 - - -
- secret_key - = - - {"f28ffe7f2e..."} +
+ + 4 - , + +
+ api_key + = + + {"f28ffe7f2e..."} + + , +
-
-
- - 6 - +
+ + 5 + -
- org_id - = - - {"f28ffe7f2e..."} +
+ secret_key + = + + {"f28ffe7f2e..."} + + , +
+
+ +
+ + 6 - , + +
+ org_id + = + + {"f28ffe7f2e..."} + + , +
-
-
- - 7 - +
+ + 7 + -
)
-
+
)
+
-

- - 8 - - def - get_auth_ - (): -

-
- } - jsFileName="Auth.js" - goFileName="TrustAuthx.go" - /> +

+ + 8 + + def + get_auth_ + (): +

+
+ } + jsFileName="Auth.js" + goFileName="TrustAuthx.go" + /> + ) : null}
diff --git a/src/components/showcase/CodeTabs.tsx b/src/components/showcase/CodeTabs.tsx index 8321dbc..bdc399e 100644 --- a/src/components/showcase/CodeTabs.tsx +++ b/src/components/showcase/CodeTabs.tsx @@ -20,18 +20,11 @@ const CodeTabs = ({ const getCode = () => { switch (activeTab) { case "javascript": - return
js
; + return ""; case "python": return pyCode || ""; case "go": - return ( -
- func TrustAuthX(){" "} - { - // Go code - } -
- ); + return ""; } }; @@ -40,7 +33,7 @@ const CodeTabs = ({
{pyFileName ? (