Skip to content

Commit

Permalink
remove intro video (#2097)
Browse files Browse the repository at this point in the history
* all tags screen, visual improvements, and bug fix

* More sync support for file paths + saved searches (#2067)

more sync support for file paths + saved searches

* windows video intro fix

* remove video intro

* back for mob

---------

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
  • Loading branch information
ameer2468 and Brendonovich authored Feb 14, 2024
1 parent ecbe31e commit bd1f11b
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions interface/app/onboarding/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { BloomOne } from '@sd/assets/images';
import { sdintro } from '@sd/assets/videos';
import clsx from 'clsx';
import { useState } from 'react';
import { Navigate, Outlet } from 'react-router';
import { useDebugState } from '@sd/client';
import DragRegion from '~/components/DragRegion';
Expand All @@ -16,7 +14,7 @@ export const Component = () => {
const os = useOperatingSystem(false);
const debugState = useDebugState();
// FIX-ME: Intro video breaks onboarding for the web and Linux versions
const [showIntro, setShowIntro] = useState(os === 'macOS' || os === 'windows');
// const [showIntro, setShowIntro] = useState(os === 'macOS' || os === 'windows');
const ctx = useContextValue();

if (ctx.libraries.isLoading) return null;
Expand All @@ -30,8 +28,8 @@ export const Component = () => {
'flex h-screen flex-col bg-sidebar text-ink'
)}
>
{showIntro && (
<div className="absolute left-0 top-0 z-50 flex h-screen w-screen items-center justify-center bg-[#1F212C]">
{/* {showIntro && (
<div className="absolute left-0 top-0 z-50 flex h-screen w-screen items-center justify-center bg-[#1B1D25]">
<video
width={700}
className="mx-auto"
Expand All @@ -44,21 +42,21 @@ export const Component = () => {
src={sdintro}
/>
</div>
)}
)} */}
<DragRegion className="z-50 h-9" />
<div className="-mt-5 flex grow flex-col gap-8 p-10">
<div className="flex grow flex-col items-center justify-center">
<div className="flex flex-col gap-8 p-10 -mt-5 grow">
<div className="flex flex-col items-center justify-center grow">
<Outlet />
</div>
<Progress />
</div>
<div className="flex justify-center p-4">
<p className="text-xs text-ink-dull opacity-50">
<p className="text-xs opacity-50 text-ink-dull">
&copy; {new Date().getFullYear()} Spacedrive Technology Inc.
</p>
</div>
<div className="absolute -z-10">
<div className="relative h-screen w-screen">
<div className="relative w-screen h-screen">
<img src={BloomOne} className="absolute h-[2000px] w-[2000px]" />
{/* <img src={BloomThree} className="absolute w-[2000px] h-[2000px] -right-[200px]" /> */}
</div>
Expand Down

0 comments on commit bd1f11b

Please sign in to comment.