Skip to content

Commit 478299f

Browse files
committed
docs: update links to documentation
1 parent 2f2c5ee commit 478299f

File tree

40 files changed

+174
-107
lines changed

40 files changed

+174
-107
lines changed

src/assets/images/components.webp

60.1 KB
Binary file not shown.

src/assets/images/icons.webp

57.1 KB
Binary file not shown.

src/components/DocsCallout.js

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/components/DocsComponents.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import PropTypes from 'prop-types'
2+
import React from 'react'
3+
4+
import ComponentsImg from 'src/assets/images/components.webp'
5+
6+
const DocsComponents = (props) => (
7+
<div className="bg-primary bg-opacity-10 border border-2 border-primary rounded mb-4">
8+
<div className="row d-flex align-items-center p-3 px-xl-4 flex-xl-nowrap">
9+
<div className="col-xl-auto col-12 d-none d-xl-block p-0">
10+
<img
11+
className="img-fluid"
12+
src={ComponentsImg}
13+
width="160px"
14+
height="160px"
15+
alt="CoreUI PRO hexagon"
16+
/>
17+
</div>
18+
<div className="col-md col-12 px-lg-4">
19+
Our Admin Panel isn’t just a mix of third-party components. It’s{' '}
20+
<strong>
21+
the only open-source React dashboard built on a professional, enterprise-grade UI
22+
Components Library
23+
</strong>
24+
. This component is part of this library, and we present only the basic usage of it here. To
25+
explore extended examples, detailed API documentation, and customization options, refer to
26+
our docs.
27+
</div>
28+
<div className="col-md-auto col-12 mt-3 mt-lg-0">
29+
<a
30+
className="btn btn-primary text-nowrap text-white"
31+
href={`https://coreui.io/react/docs/${props.href}`}
32+
target="_blank"
33+
rel="noopener noreferrer"
34+
>
35+
Explore Documentation
36+
</a>
37+
</div>
38+
</div>
39+
</div>
40+
)
41+
42+
DocsComponents.propTypes = {
43+
href: PropTypes.string,
44+
}
45+
46+
export default DocsComponents

src/components/DocsIcons.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import React from 'react'
2+
3+
import IconsImg from 'src/assets/images/icons.webp'
4+
5+
const DocsIcons = () => (
6+
<div className="bg-warning bg-opacity-10 border border-2 border-warning rounded mb-4">
7+
<div className="row d-flex align-items-center p-3 px-xl-4 flex-xl-nowrap">
8+
<div className="col-xl-auto col-12 d-none d-xl-block p-0">
9+
<img className="img-fluid" src={IconsImg} width="160px" height="160px" alt="CoreUI Icons" />
10+
</div>
11+
<div className="col-md col-12 px-lg-4">
12+
CoreUI Icons package is delivered with more than 1500 icons in multiple formats SVG, PNG,
13+
and Webfonts. CoreUI Icons are beautifully crafted symbols for common actions and items. You
14+
can use them in your digital products for web or mobile app. For more information please
15+
visit our documentation.
16+
</div>
17+
<div className="col-md-auto col-12 mt-3 mt-lg-0">
18+
<a
19+
className="btn btn-warning text-nowrap text-white"
20+
href="https://coreui.io/react/docs/components/icon/"
21+
target="_blank"
22+
rel="noopener noreferrer"
23+
>
24+
Explore Documentation
25+
</a>
26+
</div>
27+
</div>
28+
</div>
29+
)
30+
31+
export default DocsIcons

src/components/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import AppFooter from './AppFooter'
44
import AppHeader from './AppHeader'
55
import AppHeaderDropdown from './header/AppHeaderDropdown'
66
import AppSidebar from './AppSidebar'
7-
import DocsCallout from './DocsCallout'
7+
import DocsComponents from './DocsComponents'
8+
import DocsIcons from './DocsIcons'
89
import DocsLink from './DocsLink'
910
import DocsExample from './DocsExample'
1011

@@ -15,7 +16,8 @@ export {
1516
AppHeader,
1617
AppHeaderDropdown,
1718
AppSidebar,
18-
DocsCallout,
19+
DocsComponents,
20+
DocsIcons,
1921
DocsLink,
2022
DocsExample,
2123
}

src/views/base/accordion/Accordion.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ import {
1010
CAccordionHeader,
1111
CAccordionItem,
1212
} from '@coreui/react'
13-
import { DocsExample } from 'src/components'
13+
import { DocsComponents, DocsExample } from 'src/components'
1414

1515
const Accordion = () => {
1616
return (
1717
<CRow>
1818
<CCol xs={12}>
19+
<DocsComponents href="components/accordion" />
1920
<CCard className="mb-4">
2021
<CCardHeader>
2122
<strong>React Accordion</strong>

src/views/base/breadcrumbs/Breadcrumbs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ import {
99
CRow,
1010
CLink,
1111
} from '@coreui/react'
12-
import { DocsExample } from 'src/components'
12+
import { DocsComponents, DocsExample } from 'src/components'
1313

1414
const Breadcrumbs = () => {
1515
return (
1616
<CRow>
1717
<CCol xs={12}>
18+
<DocsComponents href="components/breadcrumb" />
1819
<CCard className="mb-4">
1920
<CCardHeader>
2021
<strong>React Breadcrumb</strong>

src/views/base/cards/Cards.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ import {
1919
CCol,
2020
CRow,
2121
} from '@coreui/react'
22-
import { DocsExample } from 'src/components'
22+
import { DocsComponents, DocsExample } from 'src/components'
2323

2424
import ReactImg from 'src/assets/images/react.jpg'
2525

2626
const Cards = () => {
2727
return (
2828
<CRow>
2929
<CCol xs={12}>
30+
<DocsComponents href="components/card" />
3031
<CCard className="mb-4">
3132
<CCardHeader>
3233
<strong>Card</strong> <small>Example</small>

src/views/base/carousels/Carousels.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
CCol,
1010
CRow,
1111
} from '@coreui/react'
12-
import { DocsExample } from 'src/components'
12+
import { DocsComponents, DocsExample } from 'src/components'
1313

1414
import AngularImg from 'src/assets/images/angular.jpg'
1515
import ReactImg from 'src/assets/images/react.jpg'
@@ -25,6 +25,7 @@ const Carousels = () => {
2525
return (
2626
<CRow>
2727
<CCol xs={12}>
28+
<DocsComponents href="components/carousel" />
2829
<CCard className="mb-4">
2930
<CCardHeader>
3031
<strong>Carousel</strong> <small>Slide only</small>

0 commit comments

Comments
 (0)