WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 73e3fc0

Browse files
committed
fix: prepare for beta and google verification
1 parent 0aaafb5 commit 73e3fc0

File tree

13 files changed

+57
-76
lines changed

13 files changed

+57
-76
lines changed

apps/server/src/routes/files/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { handleUploadError, sendError, sendSuccess } from "../utils";
1414
import { createDriveProviderRouter } from "../../hono";
1515
import { zValidator } from "@hono/zod-validator";
1616
import { FileService } from "./file-service";
17-
import { Readable } from "node:stream";
1817

1918
const fileService = new FileService();
2019
const filesRouter = createDriveProviderRouter()

apps/web/src/app/(public)/(legal)/privacy/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function PrivacyPage() {
2424
<div className="mb-10 text-center">
2525
<LegalHeading1>Privacy Policy</LegalHeading1>
2626
</div>
27-
<Card className="border-muted/30 bg-background/80 border-2 shadow-none">
27+
<Card className="border-2 shadow-none">
2828
<CardContent className="space-y-8 p-8 text-base leading-relaxed">
2929
<LegalParagraph>
3030
Your privacy is important to us. It is {COMPANY_NAME}&apos;s policy to respect your privacy and comply

apps/web/src/app/(public)/(legal)/terms/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function TermsPage() {
1818
<div className="pb-10 text-center">
1919
<LegalHeading1>Terms of Service</LegalHeading1>
2020
</div>
21-
<Card className="border-muted/30 border-2 shadow-none">
21+
<Card className="border-2 shadow-none">
2222
<CardContent className="space-y-8 p-8 text-base leading-relaxed">
2323
<LegalParagraph>
2424
These Terms of Service govern your use of the website located at{" "}

apps/web/src/app/sitemap.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,17 @@ export default function sitemap(): MetadataRoute.Sitemap {
3232
changeFrequency: "monthly",
3333
priority: 0.7,
3434
},
35+
{
36+
url: buildUrl("/terms"),
37+
lastModified: now,
38+
changeFrequency: "yearly",
39+
priority: 0.7,
40+
},
41+
{
42+
url: buildUrl("/privacy"),
43+
lastModified: now,
44+
changeFrequency: "yearly",
45+
priority: 0.7,
46+
},
3547
];
3648
}

apps/web/src/components/auth/shared/auth-provider-buttons.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export function AuthProviderButtons({
2222
onProviderClick,
2323
isLoading: externalIsLoading,
2424
action,
25-
showS3Button = false,
2625
callbackURL,
2726
onAuthSuccess,
2827
onS3Click,
@@ -107,7 +106,7 @@ export function AuthProviderButtons({
107106
>
108107
{getIsLoading("microsoft") && <Loader2 className="mr-2 h-4 w-4 animate-spin" />}
109108
</SocialAuthButton>
110-
{/*
109+
{/*
111110
<SocialAuthButton
112111
provider="box"
113112
action={action}

apps/web/src/components/auth/signup-form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
"use client";
22

3-
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card";
3+
import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "@/components/ui/card";
44
import { AuthProviderButtons } from "@/components/auth/shared/auth-provider-buttons";
55
// import { SegmentedProgress } from "@/components/ui/segmented-progress";
66
import { signUpSchema, type SignUpFormData } from "@nimbus/shared";
77
// import { FieldError } from "@/components/ui/field-error";
88
// import { Separator } from "@/components/ui/separator";
99
import { zodResolver } from "@hookform/resolvers/zod";
10-
import { useState, type ComponentProps } from "react";
1110
import { useSearchParams } from "next/navigation";
1211
import { Button } from "@/components/ui/button";
1312
import { useSignUp } from "@/hooks/useAuth";
13+
import { type ComponentProps } from "react";
1414
// import { Label } from "@/components/ui/label";
1515
// import { Input } from "@/components/ui/input";
1616
import { useForm } from "react-hook-form";

apps/web/src/components/brand-assets/bg-angels.tsx

Lines changed: 0 additions & 35 deletions
This file was deleted.

apps/web/src/components/home/footer.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,18 @@ export default function Footer() {
1010
<div className="mx-auto flex w-full max-w-7xl flex-row items-center justify-center">
1111
<div className="text-muted-foreground flex flex-row items-center justify-center gap-2">
1212
<LogoIcon className="h-9 w-9" aria-hidden="true" />
13-
<Link href="/terms" className="text-xs underline underline-offset-2 md:text-sm">
13+
<Link
14+
href="https://nimbus.storage/terms"
15+
className="text-xs underline underline-offset-2 md:text-sm"
16+
aria-label="Terms of Use"
17+
>
1418
Terms of Use
1519
</Link>
16-
<Link href="/privacy" className="text-xs underline underline-offset-2 md:text-sm">
20+
<Link
21+
href="https://nimbus.storage/privacy"
22+
className="text-xs underline underline-offset-2 md:text-sm"
23+
aria-label="Privacy Policy"
24+
>
1725
Privacy Policy
1826
</Link>
1927
</div>

apps/web/src/components/home/header.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { DiscordIcon, GitHubIcon, LogoIcon, XPlatformIcon } from "@/components/icons";
44
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
5-
import { ModeToggle } from "@/components/mode-toggle";
5+
import { authClient } from "@nimbus/auth/auth-client";
66
import { Button } from "@/components/ui/button";
77
import { Users } from "lucide-react";
88
import Link from "next/link";
@@ -31,7 +31,7 @@ export default function Header() {
3131
</Tooltip>
3232
<Tooltip>
3333
<TooltipTrigger asChild>
34-
<Button variant="ghost" aria-label="Discord" className="h-9 w-9">
34+
<Button variant="ghost" asChild aria-label="Discord" className="h-9 w-9">
3535
<a href="https://discord.gg/c9nWy26ubK" target="_blank" rel="noopener noreferrer">
3636
<DiscordIcon />
3737
</a>
@@ -59,7 +59,19 @@ export default function Header() {
5959
</TooltipTrigger>
6060
<TooltipContent>X (Twitter)</TooltipContent>
6161
</Tooltip>
62-
<ModeToggle />
62+
{!authClient.useSession().data?.session ? (
63+
<Button asChild aria-label="Sign in">
64+
<Link href="/signin" className="ml-4 font-semibold">
65+
Sign In
66+
</Link>
67+
</Button>
68+
) : (
69+
<Button asChild aria-label="Go to Nimbus dashboard">
70+
<Link href="/dashboard" className="font-semibold">
71+
Go to Nimbus
72+
</Link>
73+
</Button>
74+
)}
6375
</div>
6476
</header>
6577
);

apps/web/src/components/home/hero.tsx

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import { AnimatedGroup } from "@/components/ui/animated-group";
2-
import BgAngels from "@/components/brand-assets/bg-angels";
3-
import { WaitlistForm } from "@/components/home/waitlist";
42
import HeroLight from "@/public/images/hero-light.png";
53
import HeroDark from "@/public/images/hero-dark.png";
6-
import { useIsMobile } from "@/hooks/use-mobile";
74
import Header from "@/components/home/header";
85
import { type Variants } from "motion/react";
6+
import { Button } from "../ui/button";
97
import Image from "next/image";
108
import Footer from "./footer";
9+
import Link from "next/link";
1110

1211
const transitionVariants: { item: Variants } = {
1312
item: {
@@ -29,30 +28,16 @@ const transitionVariants: { item: Variants } = {
2928
};
3029

3130
export default function Hero() {
32-
const isMobile = useIsMobile();
33-
3431
return (
3532
<div className="font-manrope flex w-full flex-1 flex-col items-center justify-center gap-12 overflow-hidden px-4 py-40 md:gap-16">
3633
<Header />
3734
<AnimatedGroup variants={transitionVariants} className="w-full">
3835
<div className="relative flex w-full flex-col gap-12 px-4 md:px-6">
39-
{isMobile && (
40-
<BgAngels className="pointer-events-none absolute -top-40 left-40 z-0 h-auto rotate-12 opacity-50" />
41-
)}
42-
4336
<div className="relative mx-auto w-full max-w-3xl sm:max-w-4xl md:max-w-5xl lg:max-w-6xl">
4437
<div className="pointer-events-none absolute top-1/2 left-1/2 z-0 block h-[60vw] w-[120vw] -translate-x-1/2 -translate-y-1/2 bg-[radial-gradient(ellipse_at_center,rgba(255,255,255,0.7)_60%,rgba(255,255,255,0.2)_100%)] blur-[100px] sm:h-[80%] sm:w-[120%] dark:hidden" />
4538

4639
<div className="pointer-events-none absolute top-1/2 left-1/2 z-0 hidden h-[60vw] w-[120vw] -translate-x-1/2 -translate-y-1/2 bg-[radial-gradient(ellipse_at_center,rgba(10,10,20,0.7)_60%,rgba(10,10,20,0.2)_100%)] blur-[100px] sm:h-[80%] sm:w-[120%] dark:block" />
4740

48-
<div className="absolute bottom-[-100%] left-[-100px] z-0 hidden sm:block">
49-
<BgAngels className="scale-x-[-1] -rotate-12 opacity-40" alt="angel right" />
50-
</div>
51-
52-
<div className="absolute right-[-100px] bottom-[-100%] z-0 hidden sm:block">
53-
<BgAngels className="rotate-12 opacity-40" alt="angel left" />
54-
</div>
55-
5641
<div className="relative z-10 flex flex-col items-center justify-center gap-8 text-center md:gap-12 lg:gap-12">
5742
<h1 className="text-4xl leading-[1.1] font-bold tracking-[-0.02em] sm:flex-row md:text-6xl lg:text-7xl">
5843
Cloud you <br /> can actually{" "}
@@ -65,7 +50,18 @@ export default function Hero() {
6550
</p>
6651
</div>
6752
</div>
68-
<WaitlistForm />
53+
<div className="mx-auto flex gap-2">
54+
<Button variant={"ghost"} asChild className="hover:!bg-accent !bg-transparent transition-all duration-300">
55+
<Link href="https://github.com/nimbusdotstorage/Nimbus" className="font-semibold">
56+
Source Code
57+
</Link>
58+
</Button>
59+
<Button variant={"default"} asChild className="">
60+
<Link href="/signin" className="font-semibold">
61+
Sign In
62+
</Link>
63+
</Button>
64+
</div>
6965
</div>
7066
</AnimatedGroup>
7167

0 commit comments

Comments
 (0)