forked from Cowjiang/zerotier-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Next UI and Tailwind, further initialized
- Loading branch information
Showing
9 changed files
with
3,411 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,26 +4,34 @@ | |
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc && vite build", | ||
"preview": "vite preview", | ||
"tauri": "tauri" | ||
"dev": "tauri dev", | ||
"build": "tauri build", | ||
"info": "tauri info", | ||
"tauri": "tauri", | ||
"vite:dev": "vite", | ||
"vite:build": "tsc && vite build", | ||
"preview": "vite preview" | ||
}, | ||
"engines": { | ||
"node": ">=20" | ||
}, | ||
"packageManager": "^[email protected]", | ||
"dependencies": { | ||
"@nextui-org/react": "^2.2.9", | ||
"@tauri-apps/api": "^1.5.2", | ||
"framer-motion": "^10.18.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"@tauri-apps/api": "^1.5.2" | ||
"react-dom": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@tauri-apps/cli": "^1.5.8", | ||
"@types/react": "^18.2.15", | ||
"@types/react-dom": "^18.2.7", | ||
"@vitejs/plugin-react": "^4.2.1", | ||
"autoprefixer": "^10.4.16", | ||
"postcss": "^8.4.33", | ||
"tailwindcss": "^3.4.1", | ||
"typescript": "^5.0.2", | ||
"vite": "^5.0.0", | ||
"@tauri-apps/cli": "^1.5.8" | ||
"vite": "^5.0.0" | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import App from "./App"; | ||
import "./styles.css"; | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom/client'; | ||
import App from './App'; | ||
import './styles.css'; | ||
import { NextUIProvider } from '@nextui-org/react'; | ||
|
||
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( | ||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render( | ||
<React.StrictMode> | ||
<App /> | ||
</React.StrictMode>, | ||
<NextUIProvider> | ||
<App /> | ||
</NextUIProvider> | ||
</React.StrictMode> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,109 +1,19 @@ | ||
:root { | ||
font-family: Inter, Avenir, Helvetica, Arial, sans-serif; | ||
font-size: 16px; | ||
line-height: 24px; | ||
font-weight: 400; | ||
|
||
color: #0f0f0f; | ||
background-color: #f6f6f6; | ||
|
||
font-synthesis: none; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
-webkit-text-size-adjust: 100%; | ||
} | ||
|
||
.container { | ||
margin: 0; | ||
padding-top: 10vh; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
text-align: center; | ||
} | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
.logo { | ||
height: 6em; | ||
height: 7em; | ||
padding: 1.5em; | ||
will-change: filter; | ||
transition: 0.75s; | ||
} | ||
|
||
.logo.tauri:hover { | ||
.logo:hover { | ||
filter: drop-shadow(0 0 2em #24c8db); | ||
} | ||
|
||
.row { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
a { | ||
font-weight: 500; | ||
color: #646cff; | ||
text-decoration: inherit; | ||
} | ||
|
||
a:hover { | ||
color: #535bf2; | ||
} | ||
|
||
h1 { | ||
text-align: center; | ||
} | ||
|
||
input, | ||
button { | ||
border-radius: 8px; | ||
border: 1px solid transparent; | ||
padding: 0.6em 1.2em; | ||
font-size: 1em; | ||
font-weight: 500; | ||
font-family: inherit; | ||
color: #0f0f0f; | ||
background-color: #ffffff; | ||
transition: border-color 0.25s; | ||
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2); | ||
} | ||
|
||
button { | ||
cursor: pointer; | ||
} | ||
|
||
button:hover { | ||
border-color: #396cd8; | ||
} | ||
button:active { | ||
border-color: #396cd8; | ||
background-color: #e8e8e8; | ||
} | ||
|
||
input, | ||
button { | ||
outline: none; | ||
} | ||
|
||
#greet-input { | ||
margin-right: 5px; | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
:root { | ||
color: #f6f6f6; | ||
background-color: #2f2f2f; | ||
} | ||
|
||
a:hover { | ||
color: #24c8db; | ||
} | ||
|
||
input, | ||
button { | ||
color: #ffffff; | ||
background-color: #0f0f0f98; | ||
} | ||
button:active { | ||
background-color: #0f0f0f69; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const resolve = require('path').resolve | ||
const {nextui} = require("@nextui-org/react") | ||
|
||
/** @type {import('tailwindcss').Config} */ | ||
export default { | ||
content: [ | ||
resolve(__dirname, 'index.html'), | ||
resolve(__dirname, 'src/**/*.{js,ts,jsx,tsx}'), | ||
"./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}", | ||
], | ||
theme: { | ||
extend: {}, | ||
}, | ||
darkMode: "class", | ||
plugins: [nextui()], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters