From 25b83165c348db26412bd51791c72d895ecf60fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Mu=C3=B1oz?= Date: Wed, 17 Jul 2024 18:14:34 -0300 Subject: [PATCH] Fix landing style --- src/components/code-sample.scss | 54 +++++++++++++++++---------------- src/components/code-sample.tsx | 12 ++++---- src/components/home-hero.tsx | 6 ++-- 3 files changed, 37 insertions(+), 35 deletions(-) diff --git a/src/components/code-sample.scss b/src/components/code-sample.scss index 97482b7..fcb3708 100644 --- a/src/components/code-sample.scss +++ b/src/components/code-sample.scss @@ -1,6 +1,8 @@ .tabs { margin-left: 0; text-align: left; + overflow-x: scroll; + white-space: nowrap; } .code-tabs { @@ -113,32 +115,32 @@ height: auto; } -.hero-figure::before, -.hero-figure::after { - content: ""; - position: absolute; - background-repeat: no-repeat; - background-size: 100%; -} - -.has-animations .hero-figure::before, -.has-animations .hero-figure::after { - opacity: 0; - -webkit-transition: opacity 2s ease; - transition: opacity 2s ease; -} - -.anime-ready .has-animations .hero-figure::before, -.anime-ready .has-animations .hero-figure::after { - opacity: 1; -} - -.hero-figure::before { - top: -57.8%; - left: -1.3%; - width: 152.84%; - height: 178.78%; -} +// .hero-figure::before, +// .hero-figure::after { +// content: ""; +// position: absolute; +// background-repeat: no-repeat; +// background-size: 100%; +// } + +// .has-animations .hero-figure::before, +// .has-animations .hero-figure::after { +// opacity: 0; +// -webkit-transition: opacity 2s ease; +// transition: opacity 2s ease; +// } + +// .anime-ready .has-animations .hero-figure::before, +// .anime-ready .has-animations .hero-figure::after { +// opacity: 1; +// } + +// .hero-figure::before { +// top: -57.8%; +// left: -1.3%; +// width: 152.84%; +// height: 178.78%; +// } /* .hero-figure::after { top: -35.6%; diff --git a/src/components/code-sample.tsx b/src/components/code-sample.tsx index 2bba8d6..15035b6 100644 --- a/src/components/code-sample.tsx +++ b/src/components/code-sample.tsx @@ -52,20 +52,20 @@ export default function CodeSample() { >
-
-
setActiveLang('js')}> +
+
setActiveLang('js')}> jsFactura.js
-
setActiveLang('php')}> +
setActiveLang('php')}> phpFactura.php
-
setActiveLang('ruby')}> +
setActiveLang('ruby')}> rubyFactura.rb
-
setActiveLang('python')}> +
setActiveLang('python')}> pythonFactura.py
-
setActiveLang('api')}> +
setActiveLang('api')}> apiFactura
diff --git a/src/components/home-hero.tsx b/src/components/home-hero.tsx index bf816a0..c15159a 100644 --- a/src/components/home-hero.tsx +++ b/src/components/home-hero.tsx @@ -100,13 +100,13 @@ export default function HomeHero() {
-