Preview: http://dashboards.webkom.co/react/airframe
This commit is contained in:
Tomasz Owczarczyk
2019-08-15 00:54:44 +02:00
parent f975443095
commit 37092d1d6c
626 changed files with 56691 additions and 0 deletions

View File

@@ -0,0 +1,758 @@
import React from 'react';
import {
Container,
Row,
Alert,
Col,
Button,
Media,
} from './../../../components';
import { HeaderMain } from "../../components/HeaderMain";
import { HeaderDemo } from "../../components/HeaderDemo";
const Alerts = () => (
<React.Fragment>
<Container>
<HeaderMain
title="Alerts"
className="mb-5 mt-4"
/>
{ /* START Header 1 */}
<Row>
<Col lg={ 12 }>
<HeaderDemo
no={1}
title="Alerts Default"
subTitle="Provide contextual feedback messages for typical user actions with the handful of
available and flexible alert messages. Alerts don't have default classes, only base and
modifier classes: choose from primary, success, info, warning or danger. Wrap any text
and an optional dismiss button in .alert and one of the five contextual classes
(e.g., .alert-success) for basic alert messages."
/>
</Col>
</Row>
{ /* END Header 1 */}
{ /* START Section 1 */}
<Row>
{ /* START Col6 1 */}
<Col lg={ 6 }>
{ /* START Example */}
<div className="mb-4">
<h6>
Alert: Primary
<span className="small ml-1 text-muted">
#1.01
</span>
</h6>
<Alert color="primary">
<h6 className="mb-1 alert-heading">
Morning!
</h6>
Were glad to see you again and wish you a nice day.
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Alert: Danger
<span className="small ml-1 text-muted">
#1.02
</span>
</h6>
<Alert color="danger">
<h6 className="mb-1 alert-heading">
Oh Snap!
</h6>
Change a few things up and try submitting again.
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Alert: Info
<span className="small ml-1 text-muted">
#1.03
</span>
</h6>
<Alert color="info">
<h6 className="mb-1 alert-heading">
Heads Up!
</h6>
This alert needs your attention, but its not super important.
</Alert>
</div>
{ /* END Example */}
</Col>
{ /* END Col6 1 */}
{ /* START Col6 2 */}
<Col lg={ 6 }>
{ /* START Example */}
<div className="mb-4">
<h6>
Alert: Warning
<span className="small ml-1 text-muted">
#1.04
</span>
</h6>
<Alert color="warning">
<h6 className="mb-1 alert-heading">
Warning!
</h6>
Better check yourself, youre not looking too good.
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Alert: Success
<span className="small ml-1 text-muted">
#1.05
</span>
</h6>
<Alert color="success">
<h6 className="mb-1 alert-heading">
Well Done!
</h6>
You successfully read this important alert message.
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Alert: Dark
<span className="small ml-1 text-muted">
#1.06
</span>
</h6>
<Alert color="dark">
<h6 className="mb-1 alert-heading">
Attention
</h6>
This alert needs your attention, but its not important.
</Alert>
</div>
{ /* END Example */}
</Col>
{ /* END Col6 2 */}
</Row>
{ /* END Section 1 */}
{ /* START Header 2 */}
<Row>
<Col lg={ 12 }>
<HeaderDemo
no={2}
title="Alerts Dismissing"
className="mt-5"
subTitle="Sing the alert JavaScript plugin, its possible to dismiss any alert inline. Heres how:"
/>
</Col>
</Row>
{ /* END Header 2 */}
{ /* START Section 2 */}
<Row>
{ /* START Col6 1 */}
<Col lg={ 6 }>
{ /* START Example */}
<div className="mb-4">
<h6>
Dismissing: Primary
<span className="small ml-1 text-muted">
#2.01
</span>
</h6>
<Alert color="primary">
<h6 className="mb-1 alert-heading">
Morning!
</h6>
Were glad to see you again and wish you a nice day.
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Dismissing: Danger
<span className="small ml-1 text-muted">
#2.02
</span>
</h6>
<Alert color="danger">
<h6 className="mb-1 alert-heading">
Oh Snap!
</h6>
Change a few things up and try submitting again.
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Dismissing: Info
<span className="small ml-1 text-muted">
#2.03
</span>
</h6>
<Alert color="info">
<h6 className="mb-1 alert-heading">
Heads Up!
</h6>
This alert needs your attention, but its not super important.
</Alert>
</div>
{ /* END Example */}
</Col>
{ /* END Col6 1 */}
{ /* START Col6 2 */}
<Col lg={ 6 }>
{ /* START Example */}
<div className="mb-4">
<h6>
Dismissing: Warning
<span className="small ml-1 text-muted">
#2.04
</span>
</h6>
<Alert color="warning">
<h6 className="mb-1 alert-heading">
Warning!
</h6>
Better check yourself, youre not looking too good.
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Dismissing: Success
<span className="small ml-1 text-muted">
#2.05
</span>
</h6>
<Alert color="success">
<h6 className="mb-1 alert-heading">
Well Done!
</h6>
You successfully read this important alert message.
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Dismissing: Dark
<span className="small ml-1 text-muted">
#2.06
</span>
</h6>
<Alert color="dark">
<h6 className="mb-1 alert-heading">
Attention
</h6>
This alert needs your attention, but its not important.
</Alert>
</div>
{ /* END Example */}
</Col>
{ /* END Col6 2 */}
</Row>
{ /* END Section 2 */}
{ /* START Header 3 */}
<Row>
<Col lg={ 12 }>
<HeaderDemo
no={3}
title="Alerts Icon Small"
className="mt-5"
subTitle="Sing the alert JavaScript plugin, its possible to dismiss any alert inline. Heres how:"
/>
</Col>
</Row>
{ /* END Header 3 */}
{ /* START Section 3 */}
<Row>
{ /* START Col6 1 */}
<Col lg={ 6 }>
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Small: Primary
<span className="small ml-1 text-muted">
#3.01
</span>
</h6>
<Alert color="primary">
<i className="fa fa-play-circle mr-1 alert-icon"></i>
<span>
<strong className="alert-heading">Welcome!</strong> We're glad to see you again and wish you a nice day.
</span>
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Small: Danger
<span className="small ml-1 text-muted">
#3.02
</span>
</h6>
<Alert color="danger">
<i className="fa fa-times-circle mr-1 alert-icon"></i>
<span>
<strong className="alert-heading">Danger!</strong> Change a few things up and try submitting again.
</span>
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Small: Info
<span className="small ml-1 text-muted">
#3.03
</span>
</h6>
<Alert color="info">
<i className="fa fa-info-circle mr-1 alert-icon"></i>
<span>
<strong className="alert-heading">Information!</strong> This alert needs your attention, but it's not important.
</span>
</Alert>
</div>
{ /* END Example */}
</Col>
{ /* END Col6 1 */}
{ /* START Col6 2 */}
<Col lg={ 6 }>
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Small: Warning
<span className="small ml-1 text-muted">
#3.04
</span>
</h6>
<Alert color="warning">
<i className="fa fa-exclamation-circle mr-1 alert-icon"></i>
<span>
<strong className="alert-heading">Warning!</strong> Better check yourself, you're not looking too good.
</span>
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Small: Success
<span className="small ml-1 text-muted">
#3.05
</span>
</h6>
<Alert color="success">
<i className="fa fa-check-circle mr-1 alert-icon"></i>
<span>
<strong className="alert-heading">Success!</strong> You successfully read this important alert message.
</span>
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Small: Dark
<span className="small ml-1 text-muted">
#3.06
</span>
</h6>
<Alert color="dark">
<i className="fa fa-question-circle mr-1 alert-icon"></i>
<span>
<strong className="alert-heading">Attention!</strong> This alert needs your attention, but it's not important.
</span>
</Alert>
</div>
{ /* END Example */}
</Col>
{ /* END Col6 2 */}
</Row>
{ /* END Section 3 */}
{ /* START Header 4 */}
<Row>
<Col lg={ 12 }>
<HeaderDemo
no={4}
title="Alerts Icon Big"
className="mt-5"
subTitle="Sing the alert JavaScript plugin, its possible to dismiss any alert inline. Heres how:"
/>
</Col>
</Row>
{ /* END Header 4 */}
{ /* START Section 4 */}
<Row>
{ /* START Col6 1 */}
<Col lg={ 6 }>
{ /* START Example */}
<div className="mb-4">
<h6>
Dismissing: Primary
<span className="small ml-1 text-muted">
#2.01
</span>
</h6>
<Alert color="primary">
<Media>
<Media left middle className="mr-2">
<i className="fa fa-caret-right fa-fw fa-2x alert-icon"></i>
</Media>
<Media body>
<h6 className="mb-1 alert-heading">
Welcome!
</h6>
We're glad to see you again and wish you a nice day.
</Media>
</Media>
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Big: Danger
<span className="small ml-1 text-muted">
#2.02
</span>
</h6>
<Alert color="danger">
<Media>
<Media left middle className="mr-2">
<i className="fa fa-close fa-fw fa-2x alert-icon"></i>
</Media>
<Media body>
<h6 className="mb-1 alert-heading">
Danger!
</h6>
Change a few things up and try submitting.
</Media>
</Media>
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Big: Info
<span className="small ml-1 text-muted">
#2.03
</span>
</h6>
<Alert color="info">
<Media>
<Media left middle className="mr-2">
<i className="fa fa-info fa-fw fa-2x alert-icon"></i>
</Media>
<Media body>
<h6 className="mb-1 alert-heading">
Information!
</h6>
This alert needs your attention, but it's not important.
</Media>
</Media>
</Alert>
</div>
{ /* END Example */}
</Col>
{ /* END Col6 1 */}
{ /* START Col6 2 */}
<Col lg={ 6 }>
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Big: Warning
<span className="small ml-1 text-muted">
#2.04
</span>
</h6>
<Alert color="warning">
<Media>
<Media left middle className="mr-2">
<i className="fa fa-exclamation fa-fw fa-2x alert-icon"></i>
</Media>
<Media body>
<h6 className="mb-1 alert-heading">
Warning!
</h6>
Better check yourself, you're not looking too good.
</Media>
</Media>
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Big: Success
<span className="small ml-1 text-muted">
#2.05
</span>
</h6>
<Alert color="success">
<Media>
<Media left middle className="mr-2">
<i className="fa fa-check fa-fw fa-2x alert-icon"></i>
</Media>
<Media body>
<h6 className="mb-1 alert-heading">
Success!
</h6>
You successfully read this important alert message.
</Media>
</Media>
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Big: Dark
<span className="small ml-1 text-muted">
#2.06
</span>
</h6>
<Alert color="dark">
<Media>
<Media left top className="mr-2">
<i className="fa fa-question fa-fw fa-2x alert-icon"></i>
</Media>
<Media body>
<h6 className="mb-1 alert-heading">
Attention!
</h6>
This alert needs your attention, but it's not important.
</Media>
</Media>
</Alert>
</div>
{ /* END Example */}
</Col>
{ /* END Col6 2 */}
</Row>
{ /* END Section 4 */}
{ /* START Header 5 */}
<Row>
<Col lg={ 12 }>
<HeaderDemo
no={5}
title="Alerts Big"
className="mt-5"
subTitle="Sing the alert JavaScript plugin, its possible to dismiss any alert inline. Heres how:"
/>
</Col>
</Row>
{ /* END Header 5 */}
{ /* START Section 4 */}
<Row>
{ /* START Col6 1 */}
<Col lg={ 6 }>
{ /* START Example */}
<div className="mb-4">
<h6>
Dismissing: Primary
<span className="small ml-1 text-muted">
#5.01
</span>
</h6>
<Alert color="primary">
<Media>
<Media left middle className="mr-3">
<span className="fa-stack fa-lg">
<i className="fa fa-circle fa-stack-2x alert-bg-icon"></i>
<i className="fa fa-caret-right fa-stack-1x fa-inverse alert-icon"></i>
</span>
</Media>
<Media body>
<h6 className="alert-heading mb-1">
Welcome!
</h6>
We're glad to see you again and wish you a nice day.
<div className="mt-2">
<Button color="primary">I Understand</Button>{' '}
<Button color="primary" outline>Cancel</Button>{' '}
</div>
</Media>
</Media>
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Big: Danger
<span className="small ml-1 text-muted">
#5.02
</span>
</h6>
<Alert color="danger">
<Media>
<Media left middle className="mr-3">
<span className="fa-stack fa-lg">
<i className="fa fa-circle fa-fw fa-stack-2x alert-bg-icon"></i>
<i className="fa fa-close fa-stack-1x fa-inverse alert-icon"></i>
</span>
</Media>
<Media body>
<h6 className="alert-heading mb-1">
Danger!
</h6>
Change a few things up and try submitting.
<div className="mt-2">
<Button color="danger">I Understand</Button>{' '}
<Button color="danger" outline>Cancel</Button>{' '}
</div>
</Media>
</Media>
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Big: Info
<span className="small ml-1 text-muted">
#5.03
</span>
</h6>
<Alert color="info">
<Media>
<Media left middle className="mr-3">
<span className="fa-stack fa-lg">
<i className="fa fa-circle fa-fw fa-stack-2x alert-bg-icon"></i>
<i className="fa fa-info fa-stack-1x fa-inverse alert-icon"></i>
</span>
</Media>
<Media body>
<h6 className="alert-heading mb-1">
Information!
</h6>
This alert needs your attention, but it's not important.
<div className="mt-2">
<Button color="info">I Understand</Button>{' '}
<Button color="info" outline>Cancel</Button>{' '}
</div>
</Media>
</Media>
</Alert>
</div>
{ /* END Example */}
</Col>
{ /* END Col6 1 */}
{ /* START Col6 2 */}
<Col lg={ 6 }>
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Big: Warning
<span className="small ml-1 text-muted">
#5.04
</span>
</h6>
<Alert color="warning">
<Media>
<Media left middle className="mr-3">
<span className="fa-stack fa-lg">
<i className="fa fa-circle fa-fw fa-stack-2x alert-bg-icon"></i>
<i className="fa fa-exclamation fa-stack-1x fa-inverse alert-icon"></i>
</span>
</Media>
<Media body>
<h6 className="alert-heading mb-1">
Warning!
</h6>
Better check yourself, you're not looking too good.
<div className="mt-2">
<Button color="warning">I Understand</Button>{' '}
<Button color="warning" outline>Cancel</Button>{' '}
</div>
</Media>
</Media>
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Big: Success
<span className="small ml-1 text-muted">
#5.05
</span>
</h6>
<Alert color="success">
<Media>
<Media left middle className="mr-3">
<span className="fa-stack fa-lg">
<i className="fa fa-circle fa-fw fa-stack-2x alert-bg-icon"></i>
<i className="fa fa-check fa-stack-1x fa-inverse alert-icon"></i>
</span>
</Media>
<Media body>
<h6 className="alert-heading mb-1">
Success!
</h6>
You successfully read this important alert message.
<div className="mt-2">
<Button color="success">I Understand</Button>{' '}
<Button color="success" outline>Cancel</Button>{' '}
</div>
</Media>
</Media>
</Alert>
</div>
{ /* END Example */}
{ /* START Example */}
<div className="mb-4">
<h6>
Icon Big: Dark
<span className="small ml-1 text-muted">
#5.06
</span>
</h6>
<Alert color="dark">
<Media>
<Media left middle className="mr-3">
<span className="fa-stack fa-lg">
<i className="fa fa-circle fa-fw fa-stack-2x"></i>
<i className="fa fa-question fa-stack-1x fa-inverse alert-icon"></i>
</span>
</Media>
<Media body>
<h6 className="alert-heading">
Attention!
</h6>
This alert needs your attention, but it's not important.
<div className="mt-2">
<Button color="dark">I Understand</Button>{' '}
<Button color="dark" outline>Cancel</Button>{' '}
</div>
</Media>
</Media>
</Alert>
</div>
{ /* END Example */}
</Col>
{ /* END Col6 2 */}
</Row>
{ /* END Section 4 */}
</Container>
</React.Fragment>
);
export default Alerts;

View File

@@ -0,0 +1,3 @@
import Alerts from './Alerts';
export default Alerts;