generated from cawa-93/vite-electron-builder
-
-
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.
- Loading branch information
1 parent
f2540e2
commit cffdcf1
Showing
3 changed files
with
53 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.app { | ||
background-color: transparent; | ||
display: flex; | ||
flex-direction: row; | ||
height: 100%; | ||
} | ||
|
||
button { | ||
font-size: calc(10px + 2vmin); | ||
} |
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,8 +1,16 @@ | ||
import React, {useState, useCallback} from 'react'; | ||
import Editor from './editor'; | ||
import Previe from './preview'; | ||
import React, {useState} from 'react'; | ||
import './app.css'; | ||
|
||
const App: React.FC = () => { | ||
const [doc, setDoc] = useState<string>('# Hello, World\n'); | ||
const [count, setCount] = useState(0); | ||
|
||
return ( | ||
<div className="app"> | ||
<header className="app-header"> | ||
<p>Hello! Vite + React!</p> | ||
<button onClick={() => setCount(count => count + 1)}>count is: {count}</button> | ||
</header> | ||
</div> | ||
); | ||
}; | ||
export default App; |
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,31 @@ | ||
html, | ||
body { | ||
background-color: transparent; | ||
height: 100%; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
font-family: | ||
system-ui, | ||
-apple-system, | ||
BlinkMacSystemFont, | ||
"Segoe UI", | ||
Roboto, | ||
Oxygen, | ||
Ubuntu, | ||
Cantarell, | ||
"Open Sans", | ||
"Helvetica Neue", | ||
sans-serif; | ||
-webkit-font-smoothing: antialliased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
code { | ||
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace; | ||
} | ||
|
||
#root { | ||
height: 100%; | ||
} |