-
Notifications
You must be signed in to change notification settings - Fork 31
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
a1a609e
commit 0fedf8f
Showing
8 changed files
with
320 additions
and
82 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
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,28 +0,0 @@ | ||
.App { | ||
text-align: center; | ||
} | ||
|
||
.App-logo { | ||
animation: App-logo-spin infinite 20s linear; | ||
height: 80px; | ||
} | ||
|
||
.App-header { | ||
background-color: #222; | ||
height: 150px; | ||
padding: 20px; | ||
color: white; | ||
} | ||
|
||
.App-title { | ||
font-size: 1.5em; | ||
} | ||
|
||
.App-intro { | ||
font-size: large; | ||
} | ||
|
||
@keyframes App-logo-spin { | ||
from { transform: rotate(0deg); } | ||
to { transform: rotate(360deg); } | ||
} | ||
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,15 +1,16 @@ | ||
import React, { Component } from 'react'; | ||
import { TextEditor } from './components'; | ||
import './App.css'; | ||
import React, { Component } from "react"; | ||
|
||
import { TextEditor } from "./components"; | ||
import "./App.css"; | ||
|
||
class App extends Component { | ||
render() { | ||
return ( | ||
<div className="App"> | ||
<TextEditor /> | ||
</div> | ||
); | ||
} | ||
render() { | ||
return ( | ||
<div className="App"> | ||
<TextEditor /> | ||
</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,7 @@ | ||
import React from "react"; | ||
|
||
const FormatToolbar = (props) => ( | ||
<div className="format-toolbar">{props.children}</div> | ||
); | ||
|
||
export default FormatToolbar; |
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,5 +1,6 @@ | ||
import TextEditor from './TextEditor'; | ||
import BoldMark from './BoldMark'; | ||
import ItalicMark from './ItalicMark'; | ||
import TextEditor from "./TextEditor"; | ||
import BoldMark from "./BoldMark"; | ||
import ItalicMark from "./ItalicMark"; | ||
import FormatToolbar from "./FormatToolbar"; | ||
|
||
export { TextEditor, BoldMark, ItalicMark }; | ||
export { TextEditor, BoldMark, ItalicMark, FormatToolbar }; |
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,5 +1,34 @@ | ||
html { | ||
height: 100%; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
padding: 0; | ||
font-family: sans-serif; | ||
min-height: 100vh; | ||
margin: 0; | ||
padding: 0; | ||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, | ||
Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif; | ||
background-color: rgb(240, 240, 240); | ||
} | ||
|
||
.App { | ||
color: rgb(17, 17, 17); | ||
max-width: 740px; | ||
background-color: rgb(255, 255, 255); | ||
box-shadow: rgba(118, 143, 255, 0.1) 0px 16px 24px 0px; | ||
padding: 40px; | ||
margin: 65px auto 45px; | ||
border-radius: 4.5px; | ||
} | ||
|
||
.format-toolbar { | ||
display: flex; | ||
border-bottom: solid 1.7px rgba(199, 198, 255, 0.15); | ||
padding: 10px 0; | ||
margin: 0 0 10px 0; | ||
} | ||
|
||
.tooltip-icon-button { | ||
cursor: pointer; | ||
border: 0; | ||
} |
Oops, something went wrong.