From 68688244a82d09a6b906813ce861d6f87ffd88c2 Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Wed, 20 Apr 2022 03:29:48 -0700 Subject: [PATCH] better svg loader, github button --- apps/landing/index.html | 2 +- apps/landing/package.json | 6 +- apps/landing/src/App.tsx | 19 ++- apps/landing/src/Bubbles.tsx | 1 + apps/landing/src/assets/github.svg | 1 + apps/landing/src/favicon.svg | 15 -- apps/landing/src/index.css | 13 +- apps/landing/src/logo.svg | 7 - apps/landing/tsconfig.json | 1 + apps/landing/vite.config.ts | 4 +- pnpm-lock.yaml | 211 ++++++++++++++++++++++------- 11 files changed, 190 insertions(+), 90 deletions(-) create mode 100644 apps/landing/src/assets/github.svg delete mode 100644 apps/landing/src/favicon.svg delete mode 100644 apps/landing/src/logo.svg diff --git a/apps/landing/index.html b/apps/landing/index.html index 38f386110..62ea4ef91 100644 --- a/apps/landing/index.html +++ b/apps/landing/index.html @@ -4,7 +4,7 @@ - Vite App + Spacedrive — The file explorer from the future.
diff --git a/apps/landing/package.json b/apps/landing/package.json index b3a282c4d..be19c1deb 100644 --- a/apps/landing/package.json +++ b/apps/landing/package.json @@ -8,14 +8,18 @@ "preview": "vite preview" }, "dependencies": { + "@honkhonk/vite-plugin-svgr": "^1.1.0", "@sd/client": "workspace:*", "@sd/core": "workspace:*", "@sd/interface": "workspace:*", "@sd/ui": "workspace:*", + "phosphor-react": "^1.4.1", "react": "^18.0.0", "react-dom": "^18.0.0", "react-tsparticles": "^2.0.6", - "tsparticles": "^2.0.6" + "tsparticles": "^2.0.6", + "vite-plugin-react-svg": "^0.2.0", + "vite-plugin-svgr": "^1.1.0" }, "devDependencies": { "@types/react": "^18.0.0", diff --git a/apps/landing/src/App.tsx b/apps/landing/src/App.tsx index 2549ca087..72b933411 100644 --- a/apps/landing/src/App.tsx +++ b/apps/landing/src/App.tsx @@ -1,18 +1,26 @@ -import { useState } from 'react'; import { Button } from '@sd/ui'; import { Bubbles } from './Bubbles'; +import './index.css'; + +import { ReactComponent as GithubLogo } from './assets/github.svg'; function App() { return ( -
+

The file explorer from the future

Spacedrive is the first file explorer that puts the full power of the cloud in your hands.

- +
+ + +