Skip to content

Commit

Permalink
Showcasing components on App.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejoYarce committed Jan 10, 2025
1 parent 3deab96 commit e83fb7e
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1 deletion.
53 changes: 52 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,57 @@
/* eslint-disable @typescript-eslint/no-unused-vars */

import SwitchDemo from './components/Switch/SwitchDemo'
import ButtonDemo from './components/Buttons/Button/ButtonDemo'
import RadioDemo from './components/Radio/RadioDemo'
import TabBarDemo from './components/TabBar/TabBarDemo'
import CheckboxDemo from './components/Checkbox/CheckboxDemo'
import LayerSidebar from './components/Layer/LayerSidebar/Demo'
import TagDemo from './components/Tag/TagDemo'
import InlineMessageDemo from './components/InlineMessage/InlineMessageDemo'
import TextInputDemo from './components/TextInput/TextInputDemo'
import TextareaDemo from './components/Textarea/TextareaDemo'
import CloseButtonDemo from './components/Buttons/CloseButton/CloseButtonDemo'
import IconButtonDemo from './components/Buttons/IconButton/IconButtonDemo'
import SliderDemo from './components/Slider/SliderDemo'
import QualitativeDemo from './components/Legend/QualitativeLegend/QualitativeLegendDemo'
import LayerParametersDemo from './components/Legend/LayerParameters/LayerParametersDemo'
import ScaleLegendDemo from './components/Legend/ScaleLegend/ScaleLegendDemo'
import { LegendItemDemo } from './components/Legend/LegendItem/LegendItemDemo'
import LegendPanelDemo from './components/Legend/LegendPanel/LegendPanelDemo'

const App = () => (
<div className='App'>
<h1>Welcome to WRI OS</h1>
<div className='app-container'>
<h1 style={{ marginBottom: '20px' }}>Welcome to WRI OS</h1>
<div
style={{
display: 'flex',
alignItems: 'flex-start',
flexWrap: 'wrap',
gap: 25,
}}
>
<LegendPanelDemo />
<LegendItemDemo />
<ScaleLegendDemo />
<LayerParametersDemo />
<QualitativeDemo />
<SliderDemo />
<IconButtonDemo />
<CloseButtonDemo />
<TextInputDemo />
<TextareaDemo />
<InlineMessageDemo />
<TagDemo />
<CheckboxDemo />
<TabBarDemo />
<RadioDemo />
<ButtonDemo />
<SwitchDemo />
</div>

<LayerSidebar />
</div>
</div>
)

Expand Down
11 changes: 11 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,14 @@ code {
*:focus-visible {
box-shadow: none !important;
}

.app-container {
margin-left: 364px;
transition: margin-left 0.1s;
padding: 20px;
}

.app-container.sidebar-closed {
margin-left: 64px;
transition: margin-left 0.1s;
}

0 comments on commit e83fb7e

Please sign in to comment.