aboutsummaryrefslogtreecommitdiff
path: root/apps/web-v2/src
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-05-21 22:47:33 -0500
committerDhravya <[email protected]>2024-05-21 22:47:33 -0500
commita4f566aaa085ce2a871f12070f932fa7da557316 (patch)
treee8ff7e3eb0a27ef47300f261975afdefae093b32 /apps/web-v2/src
parentfooter fix: Arrow color should be consistent, no need for stroke (diff)
downloadsupermemory-a4f566aaa085ce2a871f12070f932fa7da557316.tar.xz
supermemory-a4f566aaa085ce2a871f12070f932fa7da557316.zip
format documents
Diffstat (limited to 'apps/web-v2/src')
-rw-r--r--apps/web-v2/src/app/(landing)/EmailInput.tsx2
-rw-r--r--apps/web-v2/src/app/(landing)/FeatureContent.tsx8
-rw-r--r--apps/web-v2/src/app/(landing)/Features.tsx11
-rw-r--r--apps/web-v2/src/app/(landing)/Navbar.tsx2
-rw-r--r--apps/web-v2/src/app/(landing)/page.tsx10
-rw-r--r--apps/web-v2/src/app/globals.css2
-rw-r--r--apps/web-v2/src/utils/cn.ts2
7 files changed, 17 insertions, 20 deletions
diff --git a/apps/web-v2/src/app/(landing)/EmailInput.tsx b/apps/web-v2/src/app/(landing)/EmailInput.tsx
index 3e4f44a0..9fd175b7 100644
--- a/apps/web-v2/src/app/(landing)/EmailInput.tsx
+++ b/apps/web-v2/src/app/(landing)/EmailInput.tsx
@@ -39,7 +39,7 @@ function EmailInput() {
<input
type="email"
name="email"
- className={`transition-width flex w-full items-center rounded-2xl bg-[#37485E] px-4 py-2 duration-300 focus:outline-none outline-none`}
+ className={`transition-width flex w-full items-center rounded-2xl bg-[#37485E] px-4 py-2 outline-none duration-300 focus:outline-none`}
placeholder="Enter your email"
value={email}
required
diff --git a/apps/web-v2/src/app/(landing)/FeatureContent.tsx b/apps/web-v2/src/app/(landing)/FeatureContent.tsx
index ff9f5f55..7de64d53 100644
--- a/apps/web-v2/src/app/(landing)/FeatureContent.tsx
+++ b/apps/web-v2/src/app/(landing)/FeatureContent.tsx
@@ -3,19 +3,19 @@ export const features = [
title: "For Researchers",
description:
"Add content to collections and use it as a knowledge base for your research, link multiple sources together to get a better understanding of the topic.",
- svg: <ResearchSvg />
+ svg: <ResearchSvg />,
},
{
title: "For Content writers",
description:
"Save time and use the writing assistant to generate content based on your own saved collections and sources.",
- svg: <ContentSvg />
+ svg: <ContentSvg />,
},
{
title: "For Developers",
description:
"Talk to documentation websites, code snippets, etc. so you never have to google the same thing a hundred times.",
- svg: <DeveloperSvg />
+ svg: <DeveloperSvg />,
},
];
@@ -56,4 +56,4 @@ function DeveloperSvg() {
<path d="m11.293 5.293 1.414 1.414-8 8-1.414-1.414 8-8Zm7-1 1.414 1.414-8 8-1.414-1.414 8-8Zm0 6 1.414 1.414-8 8-1.414-1.414 8-8Z" />
</svg>
);
-} \ No newline at end of file
+}
diff --git a/apps/web-v2/src/app/(landing)/Features.tsx b/apps/web-v2/src/app/(landing)/Features.tsx
index c79f282f..f52f7523 100644
--- a/apps/web-v2/src/app/(landing)/Features.tsx
+++ b/apps/web-v2/src/app/(landing)/Features.tsx
@@ -19,7 +19,7 @@ export default function Features() {
tabs.current.parentElement.style.height = `${tabs.current.clientHeight}px`;
};
- function handleClickIndex(tab:number){
+ function handleClickIndex(tab: number) {
setTab(tab);
}
@@ -33,7 +33,7 @@ export default function Features() {
{/* Carousel */}
<div
id="use-cases"
- className="mx-auto max-w-xl px-4 sm:px-6 lg:max-w-6xl md:pt-40"
+ className="mx-auto max-w-xl px-4 sm:px-6 md:pt-40 lg:max-w-6xl"
>
<div className="space-y-12 lg:flex lg:space-x-12 lg:space-y-0 xl:space-x-24">
{/* Content */}
@@ -53,7 +53,11 @@ export default function Features() {
</div>
{/* Tabs buttons */}
<div className="mb-8 space-y-2 md:mb-0">
- <CardClick tab={tab} items={features} handleClickIndex={handleClickIndex} />
+ <CardClick
+ tab={tab}
+ items={features}
+ handleClickIndex={handleClickIndex}
+ />
</div>
</div>
@@ -252,7 +256,6 @@ export default function Features() {
</div>
</div>
</div>
-
</div>
</section>
);
diff --git a/apps/web-v2/src/app/(landing)/Navbar.tsx b/apps/web-v2/src/app/(landing)/Navbar.tsx
index 375ea544..c7bc80d4 100644
--- a/apps/web-v2/src/app/(landing)/Navbar.tsx
+++ b/apps/web-v2/src/app/(landing)/Navbar.tsx
@@ -11,7 +11,7 @@ function Navbar() {
<Link href={"/"} className="flex items-center p-3 opacity-50">
<Image src={Logo} alt="Supermemory logo" width={40} height={40} />
</Link>
- <div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 flex items-center gap-8 p-3">
+ <div className="absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center gap-8 p-3">
<Link href={"#use-cases"} className="text-soft-foreground-text">
Use cases
</Link>
diff --git a/apps/web-v2/src/app/(landing)/page.tsx b/apps/web-v2/src/app/(landing)/page.tsx
index 5f0787b4..9b2e63b5 100644
--- a/apps/web-v2/src/app/(landing)/page.tsx
+++ b/apps/web-v2/src/app/(landing)/page.tsx
@@ -11,8 +11,7 @@ export const runtime = "edge";
export default function Home() {
return (
<main className="dark flex min-h-screen flex-col items-center overflow-x-hidden px-2 md:px-0">
-
- <Navbar />
+ <Navbar />
{/* Background gradients */}
<div className="absolute left-0 top-0 z-[-1] h-full w-full">
@@ -32,9 +31,7 @@ export default function Home() {
</div>
<div className="overflow-x-hidden">
- <div
- className="absolute right-0 top-[145%] h-40 w-[17%] overflow-x-hidden bg-[#369DFD] bg-opacity-20 blur-[110px]"
- />
+ <div className="absolute right-0 top-[145%] h-40 w-[17%] overflow-x-hidden bg-[#369DFD] bg-opacity-20 blur-[110px]" />
</div>
</div>
@@ -44,7 +41,6 @@ export default function Home() {
{/* Features section */}
<Features />
-
<RotatingIcons />
<Cta />
@@ -52,8 +48,6 @@ export default function Home() {
<Toaster />
<Footer />
-
-
</main>
);
}
diff --git a/apps/web-v2/src/app/globals.css b/apps/web-v2/src/app/globals.css
index 98d57f65..67115e30 100644
--- a/apps/web-v2/src/app/globals.css
+++ b/apps/web-v2/src/app/globals.css
@@ -98,7 +98,7 @@ html {
/* Handle */
::-webkit-scrollbar-thumb {
- background: #131F2C;
+ background: #131f2c;
}
/* Handle on hover */
diff --git a/apps/web-v2/src/utils/cn.ts b/apps/web-v2/src/utils/cn.ts
index df73a557..cec6ac9e 100644
--- a/apps/web-v2/src/utils/cn.ts
+++ b/apps/web-v2/src/utils/cn.ts
@@ -1,6 +1,6 @@
import { ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
-
+
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}