Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ybbond2019 committed Feb 5, 2020
1 parent 9aef797 commit 466bf1e
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 2 deletions.
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-scripts": "3.3.1",
"semantic-ui-css": "^2.4.1",
"semantic-ui-react": "^0.88.2",
"test": "^0.6.0",
"typescript": "^3.7.5"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"test": "react-scripts test"
},
"eslintConfig": {
"extends": "react-app"
Expand Down
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css" />
<title>React App</title>
</head>
<body>
Expand Down
3 changes: 3 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React from 'react';
import logo from './logo.svg';
import 'semantic-ui-css/semantic.min.css'
import Logs from './Component/Logs'
import './App.css';

const App = () => {
Expand All @@ -18,6 +20,7 @@ const App = () => {
>
Learn React
</a>
<Logs />
</header>
</div>
);
Expand Down
31 changes: 31 additions & 0 deletions src/Component/Logs/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import * as React from 'react';
import ButtonExampleButton from '../../universal/ButtonExampleButton'
import { Button, Icon } from 'semantic-ui-react'

export interface ILogsProps {
}

export default function Logs(props: ILogsProps) {
return (
<div>
<ButtonExampleButton />

<Button animated>
<Button.Content visible>Next</Button.Content>
<Button.Content hidden>
<Icon name='arrow right' />
</Button.Content>
</Button>
<Button animated='vertical'>
<Button.Content hidden>Shop</Button.Content>
<Button.Content visible>
<Icon name='shop' />
</Button.Content>
</Button>
<Button animated='fade'>
<Button.Content visible>Sign-up for a Pro account</Button.Content>
<Button.Content hidden>$12.99 a month</Button.Content>
</Button>
</div>
);
}
6 changes: 6 additions & 0 deletions src/universal/ButtonExampleButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonExampleButton = () => <Button>Click Here</Button>

export default ButtonExampleButton

0 comments on commit 466bf1e

Please sign in to comment.