From 6d78be67c8f39179c98bb5850a1c5239520bc804 Mon Sep 17 00:00:00 2001 From: Emil Widlund Date: Fri, 17 Jan 2025 14:13:11 +0100 Subject: [PATCH] polish vision --- clients/apps/web/src/app/{ => (main)}/vision/layout.tsx | 2 +- clients/apps/web/src/app/{ => (main)}/vision/page.tsx | 7 +++++-- clients/apps/web/src/components/Vision/Button.tsx | 2 +- clients/apps/web/src/components/Vision/Console.tsx | 7 ++++--- clients/apps/web/src/components/Vision/Link.tsx | 2 +- clients/apps/web/src/components/Vision/Navigation.tsx | 4 ++-- .../src/components/Vision/sections/OpenSourceSection.tsx | 3 ++- .../web/src/components/Vision/sections/SevenLOCSection.tsx | 2 +- clients/apps/web/src/styles/globals.scss | 7 +++---- 9 files changed, 20 insertions(+), 16 deletions(-) rename clients/apps/web/src/app/{ => (main)}/vision/layout.tsx (67%) rename clients/apps/web/src/app/{ => (main)}/vision/page.tsx (92%) diff --git a/clients/apps/web/src/app/vision/layout.tsx b/clients/apps/web/src/app/(main)/vision/layout.tsx similarity index 67% rename from clients/apps/web/src/app/vision/layout.tsx rename to clients/apps/web/src/app/(main)/vision/layout.tsx index 4e3827fed2..e79a894567 100644 --- a/clients/apps/web/src/app/vision/layout.tsx +++ b/clients/apps/web/src/app/(main)/vision/layout.tsx @@ -4,7 +4,7 @@ export default function PitchLayout({ children: React.ReactNode }) { return ( -
+
{children}
) diff --git a/clients/apps/web/src/app/vision/page.tsx b/clients/apps/web/src/app/(main)/vision/page.tsx similarity index 92% rename from clients/apps/web/src/app/vision/page.tsx rename to clients/apps/web/src/app/(main)/vision/page.tsx index 7bd3baa5d1..44fa16ca90 100644 --- a/clients/apps/web/src/app/vision/page.tsx +++ b/clients/apps/web/src/app/(main)/vision/page.tsx @@ -11,7 +11,10 @@ import { UsageBasedSection } from '@/components/Vision/sections/UsageBasedSectio import { useArrowFocus } from '@/components/Vision/useArrowFocus' import { AnimatePresence, motion } from 'framer-motion' import { useMemo, useState } from 'react' -import { PitchNavigation, sections } from '../../components/Vision/Navigation' +import { + PitchNavigation, + sections, +} from '../../../components/Vision/Navigation' export default function PitchPage() { const [index, setIndex] = useState(0) @@ -50,7 +53,7 @@ export default function PitchPage() { {
-
- {title ?? 'Polar VM'} +
+ {title ?? 'Terminal'} +
-
+
             {input}
             {output}
diff --git a/clients/apps/web/src/components/Vision/Link.tsx b/clients/apps/web/src/components/Vision/Link.tsx
index 45ae23b7a2..951f8f6ac6 100644
--- a/clients/apps/web/src/components/Vision/Link.tsx
+++ b/clients/apps/web/src/components/Vision/Link.tsx
@@ -14,7 +14,7 @@ export const Link = ({ variant = 'primary', ...props }: LinkProps) => {
      setIndex(index)}
               className={twMerge(
-                'hover:bg-polar-200 cursor-pointer px-1 hover:text-black',
+                'hover:bg-polar-200 cursor-default px-1 hover:text-black',
                 index === activeIndex ? 'bg-polar-200 text-black' : '',
               )}
               initial={{ opacity: 0 }}
diff --git a/clients/apps/web/src/components/Vision/sections/OpenSourceSection.tsx b/clients/apps/web/src/components/Vision/sections/OpenSourceSection.tsx
index a99c718bd7..e73cacdd2e 100644
--- a/clients/apps/web/src/components/Vision/sections/OpenSourceSection.tsx
+++ b/clients/apps/web/src/components/Vision/sections/OpenSourceSection.tsx
@@ -10,7 +10,8 @@ export const OpenSourceSection = () => {
       context={
         
       }
diff --git a/clients/apps/web/src/components/Vision/sections/SevenLOCSection.tsx b/clients/apps/web/src/components/Vision/sections/SevenLOCSection.tsx
index 40567e7692..7cf5fde41b 100644
--- a/clients/apps/web/src/components/Vision/sections/SevenLOCSection.tsx
+++ b/clients/apps/web/src/components/Vision/sections/SevenLOCSection.tsx
@@ -3,7 +3,7 @@ import { Section } from '../Section'
 
 export const SevenLOCSection = () => {
   return (
-    
+

Polar aims to be the simplest way to integrate payments into your software. This should be a breeze. That's why we restrict the code diff --git a/clients/apps/web/src/styles/globals.scss b/clients/apps/web/src/styles/globals.scss index aa1c0b0c99..a285ec6e63 100644 --- a/clients/apps/web/src/styles/globals.scss +++ b/clients/apps/web/src/styles/globals.scss @@ -15,13 +15,12 @@ } @media (prefers-color-scheme: light) { - img[src$="#gh-dark-mode-only"], - img[src$="#only-dark"] { - display: none; + img[src$='#gh-dark-mode-only'], + img[src$='#only-dark'] { + display: none; } } - /* Dark mode */ #polar-bg-gradient {