generated from lucien/actix-react-template
modifié : front/src/components/LogoButton.tsx
modifié : front/src/components/NavBar.tsx modifié : front/src/index.css modifié : front/src/pages/MainPage.tsx front/src/components/Footer.tsx Ajout du footer
This commit is contained in:
parent
a239d17697
commit
7d8dd263eb
4 changed files with 15 additions and 4 deletions
|
@ -1,10 +1,13 @@
|
|||
import * as React from 'react';
|
||||
|
||||
interface LogoButtonProps {
|
||||
url:string;
|
||||
logo:string
|
||||
logo:string;
|
||||
style?: React.CSSProperties;
|
||||
}
|
||||
|
||||
export default function LogoButton ({url, logo}: LogoButtonProps) {
|
||||
export default function LogoButton ({url, logo, style}: LogoButtonProps) {
|
||||
return (
|
||||
<a href={url}><img src={logo}/></a>
|
||||
<a href={url}><img src={logo} style={{ ...style }}/></a>
|
||||
)
|
||||
}
|
|
@ -6,7 +6,7 @@ export default function NavBar(){
|
|||
return (
|
||||
<nav style={{ display: "flex", alignItems: "center", justifyContent: "space-between" }}>
|
||||
<div style={{ display : "flex", alignItems: "center", flexDirection: "row"}}>
|
||||
<LogoButton url="https://archlinux.org" logo = "https://archlinux.org/static/hetzner_logo.41114a37d25f.png" />
|
||||
<LogoButton url="https://archlinux.org" logo = "https://archlinux.org/static/hetzner_logo.41114a37d25f.png"/>
|
||||
<ClickableLink url="https://archlinux.org" text = "Prout" />
|
||||
<ClickableLink url="https://archlinux.org" text = "Prout2" />
|
||||
</div>
|
||||
|
|
|
@ -4,4 +4,8 @@
|
|||
--color-darkblue: #005792;
|
||||
--color-lightblue: #00bbf0;
|
||||
--color-yellow: #fdb44b;
|
||||
}
|
||||
|
||||
footer {
|
||||
text-align: center;
|
||||
}
|
|
@ -1,11 +1,15 @@
|
|||
import ArticlesSection from '../components/ArticlesSection.tsx'
|
||||
import NavBar from '../components/NavBar.tsx'
|
||||
import Footer from '../components/Footer.tsx'
|
||||
|
||||
export default function MainPage() {
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
<NavBar />
|
||||
<ArticlesSection />
|
||||
</div>
|
||||
<Footer />
|
||||
</>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue