Загрузить файлы в «src/components»

This commit is contained in:
2026-03-27 12:27:39 +09:00
parent 453c1b85f9
commit 326e86030d
5 changed files with 66 additions and 0 deletions

View 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
View 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

View 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
View 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
View File

@@ -0,0 +1,7 @@
export * from './Padding'
export * from './Header'
export * from './AppLogo'
export * from './Footer'
export * from './Button'
export * from './Title'