design + readme

This commit is contained in:
Jamie Pine
2022-03-07 02:04:06 -08:00
parent 4d56fccf97
commit a9df4e55f4
5 changed files with 56 additions and 29 deletions

View File

@@ -1,8 +1,11 @@
<p align="center">
<a href="#">
<img src="./apps/desktop/src/assets/images/spacedrive_screenshot.png" alt="Logo">
<img src="./apps/desktop/src/assets/images/spacedrive_screenshot_2.png" alt="Logo">
</a>
<center>
<img width=80 src="./apps/desktop/src/assets/images/spacedrive_logo.png" alt="Logo">
</center>
<h2 align="center">Spacedrive</h2>
<p align="center">
Your personal virtual cloud.

View File

@@ -33,7 +33,8 @@ function AppLayout() {
<div className="flex flex-row h-screen overflow-hidden text-gray-900 bg-white border border-gray-200 select-none rounded-xl dark:border-gray-500 dark:text-white dark:bg-gray-650">
<Sidebar />
<div className="flex flex-col w-full min-h-full">
<TopBar />
{/* <TopBar /> */}
<div className="flex bg-red-500 h-18 w-96"></div>
<div className="relative flex w-full">
<Outlet />
</div>

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

View File

@@ -11,7 +11,7 @@ interface StatItemProps {
const StatItem: React.FC<StatItemProps> = (props) => {
return (
<div className="flex flex-col p-4 mt-2 rounded-md bg-gray-50 dark:bg-gray-550">
<div className="flex flex-col p-4 mt-2 duration-75 transform rounded-md cursor-default hover:dark:bg-gray-600">
<span className="text-sm text-gray-400">{props.name}</span>
<span className="text-2xl font-bold">
{props.value}
@@ -33,26 +33,38 @@ export const OverviewScreen: React.FC<{}> = (props) => {
return (
<div className="flex flex-col w-full h-screen px-5 py-3 overflow-scroll">
<div className="flex justify-center w-full">
<div className="flex flex-col items-center">
<div className="flex items-center justify-center w-full">
<div className="flex space-x-2">
<StatItem name="Total capacity" value="26.5" unit="TB" />
<StatItem name="Index size" value="103" unit="MB" />
<StatItem name="Preview media" value="23.5" unit="GB" />
</div>
<div className="flex flex-col items-center ml-4 mr-4 w-60">
<img
alt="spacedrive-logo"
src="/images/spacedrive_logo.png"
className="w-24 h-24 mt-2 pointer-events-none"
className="mt-2 pointer-events-none w-28 h-28"
/>
<span className="text-lg font-bold heading-1">Spacedrive</span>
<span className="mt-0.5 text-sm text-gray-400 mb-5">v1.0.11 (pre-alpha)</span>
{/* <span className="text-lg font-bold heading-1">Spacedrive</span>
<span className="mt-0.5 text-sm text-gray-400 mb-5">v1.0.11 (pre-alpha)</span> */}
{/* <span className="font-bold text-gray-400 text-md heading-1">Jamie's Library</span>
<span className="mt-1 text-xs text-gray-500 ">lib-71230e11c869</span> */}
</div>
<div className="flex space-x-2">
<StatItem name="Free space" value="9.2" unit="TB" />
<StatItem name="Total at-risk" value="1.5" unit="TB" />
<StatItem name="Total backed up" value="25.3" unit="TB" />
</div>
</div>
<hr className="my-5 dark:border-gray-600" />
<div className="flex flex-wrap space-x-2">
{/* <hr className="my-5 dark:border-gray-600" /> */}
{/* <div className="flex flex-wrap space-x-2">
<StatItem name="Total capacity" value="26.5" unit="TB" />
<StatItem name="Index size" value="103" unit="MB" />
<StatItem name="Preview media" value="23.5" unit="GB" />
<StatItem name="Free space" value="9.2" unit="TB" />
<StatItem name="Total at-risk" value="1.5" unit="TB" />
<StatItem name="Total backed up" value="25.3" unit="TB" />
</div>
</div> */}
<hr className="my-5 dark:border-gray-600" />
<div className="mt-2 -ml-3 space-x-1">
<FileItem
@@ -131,23 +143,13 @@ export const OverviewScreen: React.FC<{}> = (props) => {
/>
</div>
<hr className="my-5 dark:border-gray-600" />
<div className="mt-2 mb-24 select-text">
<ReactJson
// collapsed
enableClipboard={false}
displayDataTypes={false}
theme="ocean"
src={app.config}
style={{
padding: 20,
borderRadius: 5,
backgroundColor: '#101016',
border: 1,
borderColor: '#1E1E27',
borderStyle: 'solid'
}}
/>
</div>
<p className="px-5 py-3 mb-3 text-gray-500 bg-gray-600 rounded-md">
<b>Note: </b>This is a pre-alpha build of Spacedrive, an open source personal cloud powered
by your daily devices. Under the hood, a secure Rust based virtual filesystem synchronized
cross-platform in realtime. Enjoy this barely functional UI while pre-alpha is still in
progress.
</p>
{/* <hr className="my-5 dark:border-gray-600" /> */}
</div>
);
};

View File

@@ -1,10 +1,31 @@
import React from 'react';
import ReactJson from 'react-json-view';
import FileItem from '../components/file/FileItem';
import { Tag } from '../components/primitive/Tag';
import { useAppState } from '../store/global';
export const SpacesScreen: React.FC<{}> = (props) => {
const app = useAppState();
return (
<div className="flex flex-col w-full h-full px-2 py-5">
<div className="flex flex-col items-center justify-center w-full h-screen px-2 py-5">
<div className="mt-2 mb-24 select-text">
<p className="mb-2 font-medium text-md text-gray-250">Rust level client state:</p>
<ReactJson
// collapsed
enableClipboard={false}
displayDataTypes={false}
theme="ocean"
src={app.config}
style={{
padding: 20,
borderRadius: 5,
backgroundColor: '#101016',
border: 1,
borderColor: '#1E1E27',
borderStyle: 'solid'
}}
/>
</div>
{/*<div className="-mt-[1px] space-x-2 ml-1">*/}
{/* <Tag color="red">Videos</Tag>*/}
{/* <Tag color="orange">DSLR Photos</Tag>*/}