funuicss 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/component/Button.jsx +90 -0
- package/component/Icon.jsx +73 -0
- package/component/Typography.jsx +86 -0
- package/css/Maven_Pro/MavenPro.ttf +0 -0
- package/css/Maven_Pro/OFL.txt +93 -0
- package/css/Maven_Pro/README.txt +68 -0
- package/css/Maven_Pro/static/MavenPro-Black.ttf +0 -0
- package/css/Maven_Pro/static/MavenPro-Bold.ttf +0 -0
- package/css/Maven_Pro/static/MavenPro-ExtraBold.ttf +0 -0
- package/css/Maven_Pro/static/MavenPro-Medium.ttf +0 -0
- package/css/Maven_Pro/static/MavenPro-Regular.ttf +0 -0
- package/css/Maven_Pro/static/MavenPro-SemiBold.ttf +0 -0
- package/css/fun.css +664 -0
- package/package.json +26 -0
- package/src/Components/Alert.js +68 -0
- package/src/Components/Anchor.js +12 -0
- package/src/Components/Avatar.js +11 -0
- package/src/Components/Bg.js +6 -0
- package/src/Components/Breadcrumb.js +24 -0
- package/src/Components/Button.js +44 -0
- package/src/Components/Card.js +37 -0
- package/src/Components/CloseModal.jsx +10 -0
- package/src/Components/CloseSnackbar.js +0 -0
- package/src/Components/Col.js +9 -0
- package/src/Components/Color.js +6 -0
- package/src/Components/Container.js +9 -0
- package/src/Components/Div.js +31 -0
- package/src/Components/DropAction.js +8 -0
- package/src/Components/DropMenu.js +8 -0
- package/src/Components/Dropdown.js +9 -0
- package/src/Components/Dropitem.js +8 -0
- package/src/Components/Dropup.js +9 -0
- package/src/Components/Ellipsis.js +10 -0
- package/src/Components/Footer.js +62 -0
- package/src/Components/Grid.js +11 -0
- package/src/Components/Hr.js +9 -0
- package/src/Components/Icon.js +6 -0
- package/src/Components/IconicInput.js +22 -0
- package/src/Components/Input.js +150 -0
- package/src/Components/Layout.js +30 -0
- package/src/Components/LinkWrapper.js +14 -0
- package/src/Components/List.js +9 -0
- package/src/Components/ListItem.js +9 -0
- package/src/Components/LoadRing.js +11 -0
- package/src/Components/LoadSpan.js +10 -0
- package/src/Components/Logo.js +15 -0
- package/src/Components/Middle.js +9 -0
- package/src/Components/Modal.js +39 -0
- package/src/Components/Modalaction.js +6 -0
- package/src/Components/Modalcontent.js +13 -0
- package/src/Components/Modalheader.js +12 -0
- package/src/Components/NavBar.jsx +12 -0
- package/src/Components/NavLink.jsx +10 -0
- package/src/Components/NavLogo.js +15 -0
- package/src/Components/Navcenter.js +14 -0
- package/src/Components/Navleft.js +14 -0
- package/src/Components/Panelcontent.js +11 -0
- package/src/Components/Panelfront.js +11 -0
- package/src/Components/ProgressBar.js +18 -0
- package/src/Components/Roller.js +10 -0
- package/src/Components/RowFlex.js +9 -0
- package/src/Components/Section.js +9 -0
- package/src/Components/Sidebar.js +203 -0
- package/src/Components/SidebarTrigger.js +15 -0
- package/src/Components/Slidepanel.js +11 -0
- package/src/Components/Snackbar.js +28 -0
- package/src/Components/Table.js +17 -0
- package/src/Components/TableBody.js +9 -0
- package/src/Components/TableData.js +9 -0
- package/src/Components/TableHead.js +9 -0
- package/src/Components/TableRow.js +9 -0
- package/src/Components/Tip.js +7 -0
- package/src/Components/ToolTip.js +9 -0
- package/src/Components/Typography.js +38 -0
- package/src/index.js +44 -0
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "funuicss",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "React ui framework for creating reponsive and nice looking websites and apps.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"build": "webpack"
|
|
9
|
+
},
|
|
10
|
+
"author": "FunInc",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@babel/core": "^7.21.4",
|
|
14
|
+
"@babel/preset-env": "^7.21.4",
|
|
15
|
+
"@babel/preset-react": "^7.18.6",
|
|
16
|
+
"babel-loader": "^9.1.2",
|
|
17
|
+
"css-loader": "^6.7.3",
|
|
18
|
+
"style-loader": "^3.3.2",
|
|
19
|
+
"webpack": "^5.80.0",
|
|
20
|
+
"webpack-cli": "^5.0.2"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"react": "^18.2.0",
|
|
24
|
+
"react-dom": "^18.2.0"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
export default function Alert({message, funcss , type , outlined}) {
|
|
3
|
+
return (
|
|
4
|
+
<div>
|
|
5
|
+
{
|
|
6
|
+
outlined ?
|
|
7
|
+
<div className={`alert ${type}-outline`}>
|
|
8
|
+
<div className="alert-icon">
|
|
9
|
+
{
|
|
10
|
+
type === "success" &&
|
|
11
|
+
<i className="fa fa-check"></i>
|
|
12
|
+
}
|
|
13
|
+
{
|
|
14
|
+
type === "info" &&
|
|
15
|
+
<i className="fa fa-info-circle"></i>
|
|
16
|
+
}
|
|
17
|
+
{
|
|
18
|
+
type === "warning" &&
|
|
19
|
+
<i className="fa fa-exclamation-triangle"></i>
|
|
20
|
+
}
|
|
21
|
+
{
|
|
22
|
+
type === "danger" &&
|
|
23
|
+
<i className="far fa-times-circle" ></i>
|
|
24
|
+
}
|
|
25
|
+
</div>
|
|
26
|
+
<div className="alert-text">
|
|
27
|
+
{message}
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
:""
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
{
|
|
34
|
+
!outlined ?
|
|
35
|
+
|
|
36
|
+
<div className={`alert ${funcss} ${type} `}>
|
|
37
|
+
<div className="alert-icon">
|
|
38
|
+
{
|
|
39
|
+
type === "success" &&
|
|
40
|
+
<i className="fa fa-check"></i>
|
|
41
|
+
}
|
|
42
|
+
{
|
|
43
|
+
type === "info" &&
|
|
44
|
+
<i className="fa fa-info-circle"></i>
|
|
45
|
+
}
|
|
46
|
+
{
|
|
47
|
+
type === "warning" &&
|
|
48
|
+
<i className="fa fa-exclamation-triangle"></i>
|
|
49
|
+
}
|
|
50
|
+
{
|
|
51
|
+
type === "danger" &&
|
|
52
|
+
<i className="far fa-times-circle" ></i>
|
|
53
|
+
}
|
|
54
|
+
</div>
|
|
55
|
+
<div className="alert-text">
|
|
56
|
+
{message}
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
:""
|
|
60
|
+
}
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
export default function Avatar({funcss ,children , width, height , bg , content}) {
|
|
3
|
+
return (
|
|
4
|
+
<button className={`button circle padding ${funcss} ${bg}`} style={{
|
|
5
|
+
width:`${width}`,
|
|
6
|
+
height:`${height}`
|
|
7
|
+
}}>
|
|
8
|
+
{children}{content}
|
|
9
|
+
</button>
|
|
10
|
+
)
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
export default function Breadcumb({type , funcss}) {
|
|
4
|
+
return (
|
|
5
|
+
<span>
|
|
6
|
+
{
|
|
7
|
+
type === "slash" &&
|
|
8
|
+
<span className={`text-bold padding-left-5 padding-right-5 ${funcss}`}> / </span>
|
|
9
|
+
}
|
|
10
|
+
{
|
|
11
|
+
type === "greater" &&
|
|
12
|
+
<span className={`text-bold padding-left-5 padding-right-5 ${funcss}`}> {`>`} </span>
|
|
13
|
+
}
|
|
14
|
+
{
|
|
15
|
+
type === "less" &&
|
|
16
|
+
<span className={`text-bold padding-left-5 padding-right-5 ${funcss}`}> {`<`} </span>
|
|
17
|
+
}
|
|
18
|
+
{
|
|
19
|
+
type === "straight" &&
|
|
20
|
+
<span className={`text-bold padding-left-5 padding-right-5 ${funcss}`}> {`|`} </span>
|
|
21
|
+
}
|
|
22
|
+
</span>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
export default function Button({color ,
|
|
4
|
+
bg,
|
|
5
|
+
funcss ,
|
|
6
|
+
size,
|
|
7
|
+
onChange ,
|
|
8
|
+
onClick,
|
|
9
|
+
startIcon,
|
|
10
|
+
endIcon ,
|
|
11
|
+
children,
|
|
12
|
+
text,
|
|
13
|
+
rounded,
|
|
14
|
+
raised,
|
|
15
|
+
height,
|
|
16
|
+
width,
|
|
17
|
+
float
|
|
18
|
+
}) {
|
|
19
|
+
return (
|
|
20
|
+
<button className={`button
|
|
21
|
+
text-${color}
|
|
22
|
+
${bg}
|
|
23
|
+
${funcss}
|
|
24
|
+
${size}
|
|
25
|
+
${rounded ? "roundBtn" : ""}
|
|
26
|
+
${float ? "floatBtn" : ""}
|
|
27
|
+
${raised ? "card" : ""}
|
|
28
|
+
`}
|
|
29
|
+
onClick={onClick}
|
|
30
|
+
onChange={onChange}
|
|
31
|
+
style={{
|
|
32
|
+
height:height ? height : "",
|
|
33
|
+
width:width ? width : ""
|
|
34
|
+
}}
|
|
35
|
+
>
|
|
36
|
+
{startIcon}
|
|
37
|
+
{text}
|
|
38
|
+
{children}
|
|
39
|
+
{endIcon}
|
|
40
|
+
</button>
|
|
41
|
+
)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const Card = ({
|
|
2
|
+
color,
|
|
3
|
+
bg ,
|
|
4
|
+
width,
|
|
5
|
+
height,
|
|
6
|
+
minHeight ,
|
|
7
|
+
minWidth,
|
|
8
|
+
margin,
|
|
9
|
+
padding,
|
|
10
|
+
funcss,
|
|
11
|
+
children,
|
|
12
|
+
roundEdge,
|
|
13
|
+
maxHeight,
|
|
14
|
+
maxWidth
|
|
15
|
+
// fab
|
|
16
|
+
}) => {
|
|
17
|
+
return (
|
|
18
|
+
<div className={`card text-${color} ${bg} ${funcss} ${roundEdge ? "round-edge" : ""}`}
|
|
19
|
+
style={{
|
|
20
|
+
width:`${width ? width : ""}`,
|
|
21
|
+
height:`${height ? height : ""}`,
|
|
22
|
+
minHeight:`${minHeight ? minHeight : ""}`,
|
|
23
|
+
minWidth:`${minWidth ? minWidth : ""}`,
|
|
24
|
+
maxHeight:maxHeight ? maxHeight : "",
|
|
25
|
+
maxWidth:maxWidth ? maxWidth : "",
|
|
26
|
+
margin:`${margin ? margin : ""}`,
|
|
27
|
+
padding:`${padding ? padding : ""}`
|
|
28
|
+
|
|
29
|
+
}}
|
|
30
|
+
>
|
|
31
|
+
{children}
|
|
32
|
+
|
|
33
|
+
</div>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export default Card;
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
const Container = ({
|
|
3
|
+
children ,
|
|
4
|
+
funcss ,
|
|
5
|
+
content,
|
|
6
|
+
minHeight,
|
|
7
|
+
maxHeight,
|
|
8
|
+
maxWidth,
|
|
9
|
+
minWidth,
|
|
10
|
+
height,
|
|
11
|
+
width,
|
|
12
|
+
padding,
|
|
13
|
+
margin,
|
|
14
|
+
fit
|
|
15
|
+
}) => {
|
|
16
|
+
return (
|
|
17
|
+
<div className={`${fit ? "width-100-p height-100-p" : ""} ${funcss}`} style={{
|
|
18
|
+
height:height ? height : "",
|
|
19
|
+
maxHeight:maxHeight ? maxHeight : "",
|
|
20
|
+
minHeight:minHeight ? minHeight : "",
|
|
21
|
+
maxWidth:maxWidth ? maxWidth : "",
|
|
22
|
+
minWidth:minWidth ? minWidth : "",
|
|
23
|
+
width:width ? width : "",
|
|
24
|
+
padding:padding ? padding : "",
|
|
25
|
+
margin:margin ? margin : ""
|
|
26
|
+
}}>
|
|
27
|
+
{children} {content}
|
|
28
|
+
</div>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
export default Container;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
export default function DropMenu({children , funcss , hoverable , duration , animation}) {
|
|
3
|
+
return (
|
|
4
|
+
<div className={`drop-menu ${funcss} item-${hoverable}`} style={{animation:` ${duration}s ${animation}`}}>
|
|
5
|
+
{children}
|
|
6
|
+
</div>
|
|
7
|
+
)
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
export default function LoadSpan({funcss , width , height}) {
|
|
3
|
+
return (
|
|
4
|
+
<div className="ellipsis" style={{width:`${width}px` , height:`${height}px`}}>
|
|
5
|
+
<div className={`${funcss}`}></div>
|
|
6
|
+
<div className={`${funcss}`}></div>
|
|
7
|
+
<div className={`${funcss}`}></div>
|
|
8
|
+
</div>
|
|
9
|
+
)
|
|
10
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import Link from "next/link";
|
|
2
|
+
import Logo from "./Logo"
|
|
3
|
+
import Button from "../Funcss/Components/Button"
|
|
4
|
+
import Card from "../Funcss/Components/Card"
|
|
5
|
+
function Footer() {
|
|
6
|
+
const year = new Date().getFullYear()
|
|
7
|
+
return (
|
|
8
|
+
<footer className="padding-top-50 padding-bottom-20 text-small">
|
|
9
|
+
<div className="container">
|
|
10
|
+
<div className="row">
|
|
11
|
+
<div className="col sm-12 md-8 lg-8 padding">
|
|
12
|
+
<div className="section">
|
|
13
|
+
<div><Logo /></div>
|
|
14
|
+
Fun css is a modern responsive css framework, it will ease your work in developing
|
|
15
|
+
websites, it comes with pre-defined class names which are use to style your website.
|
|
16
|
+
{/* You can download the framework for free and use our website themes and components for free. */}
|
|
17
|
+
<div className="section">
|
|
18
|
+
<a href="/app/funcss.apk">
|
|
19
|
+
{/* <button className="button success text-white">
|
|
20
|
+
<i className="fab fa-android"></i> Download Android
|
|
21
|
+
</button> */}
|
|
22
|
+
<Card>
|
|
23
|
+
<Button color="indigo" text="Download Android"/>
|
|
24
|
+
</Card>
|
|
25
|
+
</a>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<div className="col sm-12 md-4 lg-4">
|
|
31
|
+
<div className="padding">
|
|
32
|
+
<div className="h4 padding">Guides</div>
|
|
33
|
+
<div className="hr"></div>
|
|
34
|
+
<Link href="/gettingstarted">
|
|
35
|
+
<a className="text-black"><div className="button padding">Getting Started</div></a>
|
|
36
|
+
</Link>
|
|
37
|
+
<Link href="/themes">
|
|
38
|
+
<a className="text-black"><div className="button padding">Our Themes</div></a>
|
|
39
|
+
</Link>
|
|
40
|
+
<a className="text-black" href="https://github.com/fun-css"><div className="button padding">Our Github Repo</div></a>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div className="row">
|
|
46
|
+
<div className="col sm-12 md-8 lg-8">
|
|
47
|
+
<div className="padding">
|
|
48
|
+
©{year} Funcss, All rights reserved
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<div className="col sm-12 md-4 lg-4">
|
|
52
|
+
<div className="padding">
|
|
53
|
+
<a className="text-black" href="https://github.com/fun-css/funcss/blob/main/LICENSE">MIT License</a>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</footer>
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export default Footer;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
export default function IconicInput({funcss , children , position, icon , input ,iconicBg}) {
|
|
3
|
+
return (
|
|
4
|
+
<div className={`icon-container ${funcss} ${position}`}>
|
|
5
|
+
{
|
|
6
|
+
position == "left" ?
|
|
7
|
+
<div className={`leftIcon`}
|
|
8
|
+
style={{backgroundColor:iconicBg ? iconicBg : ""}}
|
|
9
|
+
>{position == "left" ? icon : ""}</div>
|
|
10
|
+
:""
|
|
11
|
+
}
|
|
12
|
+
{children} {input}
|
|
13
|
+
{
|
|
14
|
+
position == "right" ?
|
|
15
|
+
<div className="rightIcon"
|
|
16
|
+
style={{backgroundColor:iconicBg ? iconicBg : ""}}
|
|
17
|
+
>{position == "right" ? icon : ""}</div>
|
|
18
|
+
:""
|
|
19
|
+
}
|
|
20
|
+
</div>
|
|
21
|
+
)
|
|
22
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
|
|
2
|
+
import React , {Component} from "react"
|
|
3
|
+
export default class Input extends Component{
|
|
4
|
+
render(){
|
|
5
|
+
if(this.props.select){
|
|
6
|
+
if(this.props.bordered){
|
|
7
|
+
return (
|
|
8
|
+
<select className={`
|
|
9
|
+
input
|
|
10
|
+
${this.props.funcss}
|
|
11
|
+
bordered
|
|
12
|
+
`}
|
|
13
|
+
onChange={this.props.onChange}
|
|
14
|
+
defaultValue = {this.props.defaultValue}
|
|
15
|
+
type={this.props.type}
|
|
16
|
+
name={this.props.name}
|
|
17
|
+
|
|
18
|
+
style={{
|
|
19
|
+
borderRadius:`${this.props.rounded ? "400rem" : ""}`,
|
|
20
|
+
width:`${this.props.fullWidth ? "100%" : ""}`
|
|
21
|
+
|
|
22
|
+
}}
|
|
23
|
+
value={this.props.value}
|
|
24
|
+
>
|
|
25
|
+
{
|
|
26
|
+
this.props.options ? this.props.options.map(doc=>(
|
|
27
|
+
<option value={doc.value} key={doc.value}>{doc.text}</option>
|
|
28
|
+
)):""
|
|
29
|
+
}
|
|
30
|
+
</select>
|
|
31
|
+
);
|
|
32
|
+
}else if (this.props.bordereless){
|
|
33
|
+
return (
|
|
34
|
+
<select className={`
|
|
35
|
+
input
|
|
36
|
+
${this.props.funcss}
|
|
37
|
+
borderless
|
|
38
|
+
`}
|
|
39
|
+
onChange={this.props.onChange}
|
|
40
|
+
defaultValue = {this.props.defaultValue}
|
|
41
|
+
type={this.props.type}
|
|
42
|
+
placeholder={this.props.label}
|
|
43
|
+
name={this.props.name}
|
|
44
|
+
value={this.props.value}
|
|
45
|
+
style={{
|
|
46
|
+
borderRadius:`${this.props.rounded ? "400rem" : ""}`,
|
|
47
|
+
width:`${this.props.fullWidth ? "100%" : ""}`
|
|
48
|
+
|
|
49
|
+
}}
|
|
50
|
+
>
|
|
51
|
+
{
|
|
52
|
+
this.props.options ? this.props.options.map(doc=>(
|
|
53
|
+
<option value={doc.value} key={doc.value}>{doc.text}</option>
|
|
54
|
+
)):""
|
|
55
|
+
}
|
|
56
|
+
</select>
|
|
57
|
+
);
|
|
58
|
+
}else{
|
|
59
|
+
return (
|
|
60
|
+
<select className={`
|
|
61
|
+
input
|
|
62
|
+
${this.props.funcss}
|
|
63
|
+
`}
|
|
64
|
+
onChange={this.props.onChange}
|
|
65
|
+
defaultValue = {this.props.defaultValue}
|
|
66
|
+
type={this.props.type}
|
|
67
|
+
placeholder={this.props.label}
|
|
68
|
+
name={this.props.name}
|
|
69
|
+
value={this.props.value}
|
|
70
|
+
style={{
|
|
71
|
+
borderRadius:`${this.props.rounded ? "400rem" : ""}`,
|
|
72
|
+
width:`${this.props.fullWidth ? "100%" : ""}`
|
|
73
|
+
|
|
74
|
+
}}
|
|
75
|
+
>
|
|
76
|
+
{
|
|
77
|
+
this.props.options ? this.props.options.map(doc=>(
|
|
78
|
+
<option value={doc.value} key={doc.value}>{doc.text}</option>
|
|
79
|
+
)):""
|
|
80
|
+
}
|
|
81
|
+
</select>
|
|
82
|
+
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
}else{
|
|
86
|
+
if(this.props.bordered){
|
|
87
|
+
return (
|
|
88
|
+
<input className={`
|
|
89
|
+
input
|
|
90
|
+
${this.props.funcss}
|
|
91
|
+
bordered
|
|
92
|
+
`}
|
|
93
|
+
onChange={this.props.onChange}
|
|
94
|
+
defaultValue = {this.props.defaultValue}
|
|
95
|
+
type={this.props.type}
|
|
96
|
+
placeholder={this.props.label}
|
|
97
|
+
name={this.props.name}
|
|
98
|
+
style={{
|
|
99
|
+
borderRadius:`${this.props.rounded ? "400rem" : ""}`,
|
|
100
|
+
width:`${this.props.fullWidth ? "100%" : ""}`
|
|
101
|
+
}}
|
|
102
|
+
value={this.props.value}
|
|
103
|
+
/>
|
|
104
|
+
|
|
105
|
+
);
|
|
106
|
+
}else if (this.props.bordereless){
|
|
107
|
+
return (
|
|
108
|
+
<input className={`
|
|
109
|
+
input
|
|
110
|
+
${this.props.funcss}
|
|
111
|
+
borderless
|
|
112
|
+
`}
|
|
113
|
+
onChange={this.props.onChange}
|
|
114
|
+
defaultValue = {this.props.defaultValue}
|
|
115
|
+
type={this.props.type}
|
|
116
|
+
placeholder={this.props.label}
|
|
117
|
+
name={this.props.name}
|
|
118
|
+
value={this.props.value}
|
|
119
|
+
style={{
|
|
120
|
+
borderRadius:`${this.props.rounded ? "400rem" : ""}`,
|
|
121
|
+
width:`${this.props.fullWidth ? "100%" : ""}`
|
|
122
|
+
|
|
123
|
+
}}
|
|
124
|
+
/>
|
|
125
|
+
|
|
126
|
+
);
|
|
127
|
+
}else{
|
|
128
|
+
return (
|
|
129
|
+
<input className={`
|
|
130
|
+
input
|
|
131
|
+
${this.props.funcss}
|
|
132
|
+
`}
|
|
133
|
+
onChange={this.props.onChange}
|
|
134
|
+
defaultValue = {this.props.defaultValue}
|
|
135
|
+
type={this.props.type}
|
|
136
|
+
placeholder={this.props.label}
|
|
137
|
+
name={this.props.name}
|
|
138
|
+
value={this.props.value}
|
|
139
|
+
style={{
|
|
140
|
+
borderRadius:`${this.props.rounded ? "400rem" : ""}`,
|
|
141
|
+
width:`${this.props.fullWidth ? "100%" : ""}`
|
|
142
|
+
|
|
143
|
+
}}
|
|
144
|
+
/>
|
|
145
|
+
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import Sidebar from './Sidebar';
|
|
2
|
+
import Navbar from './Navbar';
|
|
3
|
+
import Footer from './Footer';
|
|
4
|
+
import Head from 'next/head';
|
|
5
|
+
import Script from 'next/script'
|
|
6
|
+
import { useEffect, useState } from 'react';
|
|
7
|
+
const Layout = ({children}) => {
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<div lang="en">
|
|
11
|
+
<Script src="/js/ads.js" />
|
|
12
|
+
|
|
13
|
+
{/* <Script src="/js/jQuery.js"/> */}
|
|
14
|
+
<Script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossOrigin="anonymous" />
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
<Navbar />
|
|
18
|
+
<div className="Page">
|
|
19
|
+
<Sidebar />
|
|
20
|
+
<div className="Content">
|
|
21
|
+
|
|
22
|
+
{children}
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default Layout;
|