Загрузить файлы в «src/components»
This commit is contained in:
12
src/components/AppLogo.jsx
Normal file
12
src/components/AppLogo.jsx
Normal file
@@ -0,0 +1,12 @@
|
||||
// import Logo from "../assets/logo.svg"
|
||||
import Logo from "../assets/logo-commit.png"
|
||||
|
||||
export const AppLogo = () => {
|
||||
return (
|
||||
<div >
|
||||
<a href={'/'}>
|
||||
<img style={{width: '192px'}} src={Logo}/>
|
||||
</a>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
24
src/components/Layout.jsx
Normal file
24
src/components/Layout.jsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import './../css/Layout.css'
|
||||
import {
|
||||
Header,
|
||||
Footer,
|
||||
Padding
|
||||
} from '.'
|
||||
|
||||
|
||||
const Layout = ({ children, ...props }) => {
|
||||
return (
|
||||
<>
|
||||
<Padding>
|
||||
<Header/>
|
||||
<div className='content'>
|
||||
<div className="inside">{children}</div>
|
||||
</div>
|
||||
|
||||
</Padding>
|
||||
<Footer/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default Layout
|
||||
12
src/components/Padding.jsx
Normal file
12
src/components/Padding.jsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import './../css/Padding.css'
|
||||
|
||||
export const Padding = ({
|
||||
children = null,
|
||||
...props
|
||||
}) => {
|
||||
return (
|
||||
<div className='padding' {...props}>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
11
src/components/Title.jsx
Normal file
11
src/components/Title.jsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import '../css/Title.css'
|
||||
|
||||
export const Title = ({text,size,color,weight}) => {
|
||||
return (
|
||||
<div className='textElement' style={{
|
||||
fontWeight:`${weight}`,
|
||||
fontSize:`${size}`,
|
||||
color: `${color}`
|
||||
}}>{text}</div>
|
||||
)
|
||||
}
|
||||
7
src/components/index.jsx
Normal file
7
src/components/index.jsx
Normal file
@@ -0,0 +1,7 @@
|
||||
export * from './Padding'
|
||||
export * from './Header'
|
||||
export * from './AppLogo'
|
||||
export * from './Footer'
|
||||
export * from './Button'
|
||||
export * from './Title'
|
||||
|
||||
Reference in New Issue
Block a user