✨(demo) add a footer
Add a footer to display some useful links
This commit is contained in:
committed by
Jean-Baptiste PENRATH
parent
bacd9446b4
commit
d119b79c3f
@@ -23,7 +23,7 @@
|
|||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[](https://circleci.com/gh/openfun/cunningham/tree/main)
|
[](https://circleci.com/gh/openfun/cunningham/tree/main)
|
||||||
[](https://discord.gg/3qjUJjp)
|
[](https://discord.gg/TXPSCMeDzd)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -54,8 +54,8 @@ export const Home = ({ modal }: { modal: PageProps }) => {
|
|||||||
}, [pagination.page, sortModel, modal.isOpen, refresh]);
|
}, [pagination.page, sortModel, modal.isOpen, refresh]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="page__home">
|
<main className="page__home">
|
||||||
<div className="page__home__title">
|
<header className="page__home__title">
|
||||||
<h1 className="clr-greyscale-900">
|
<h1 className="clr-greyscale-900">
|
||||||
{/* eslint-disable-next-line react/no-unescaped-entities */}
|
{/* eslint-disable-next-line react/no-unescaped-entities */}
|
||||||
🍿Cunningham's <span className="clr-primary-400">Cast</span>
|
🍿Cunningham's <span className="clr-primary-400">Cast</span>
|
||||||
@@ -76,7 +76,8 @@ export const Home = ({ modal }: { modal: PageProps }) => {
|
|||||||
>
|
>
|
||||||
Add character
|
Add character
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</header>
|
||||||
|
<section>
|
||||||
<div className="card">
|
<div className="card">
|
||||||
<DataGrid
|
<DataGrid
|
||||||
columns={[
|
columns={[
|
||||||
@@ -152,6 +153,68 @@ export const Home = ({ modal }: { modal: PageProps }) => {
|
|||||||
onRowSelectionChange={setRowSelection}
|
onRowSelectionChange={setRowSelection}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
|
<footer className="links">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<Button
|
||||||
|
size="small"
|
||||||
|
color="tertiary-text"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
href="https://www.france-universite-numerique.fr/en/"
|
||||||
|
>
|
||||||
|
France Université Numérique
|
||||||
|
</Button>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<Button
|
||||||
|
size="small"
|
||||||
|
color="tertiary-text"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
href="https://discord.gg/TXPSCMeDzd"
|
||||||
|
>
|
||||||
|
Discord
|
||||||
|
</Button>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Button
|
||||||
|
size="small"
|
||||||
|
color="tertiary-text"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
href="https://github.com/openfun/cunningham"
|
||||||
|
>
|
||||||
|
Github
|
||||||
|
</Button>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Button
|
||||||
|
size="small"
|
||||||
|
color="tertiary-text"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
href="https://openfun.github.io/cunningham/storybook"
|
||||||
|
>
|
||||||
|
Documentation
|
||||||
|
</Button>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Button
|
||||||
|
size="small"
|
||||||
|
color="tertiary-text"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
href="https://www.figma.com/file/JbPT1R6YUFW4oH8jHvH960/DS-Cunningham---PUBLIC?type=design"
|
||||||
|
>
|
||||||
|
UI Kit
|
||||||
|
</Button>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</footer>
|
||||||
|
</main>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -23,10 +23,15 @@ a {
|
|||||||
|
|
||||||
// App
|
// App
|
||||||
html {
|
html {
|
||||||
min-height: 100vh;
|
|
||||||
background: linear-gradient(153deg, var(--c--theme--colors--greyscale-100) 0%, var(--c--theme--colors--greyscale-000) 100%);
|
background: linear-gradient(153deg, var(--c--theme--colors--greyscale-100) 0%, var(--c--theme--colors--greyscale-000) 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html, body, #root {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.pattern {
|
.pattern {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
@@ -65,6 +70,7 @@ html {
|
|||||||
.container {
|
.container {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
width: 1100px;
|
width: 1100px;
|
||||||
@media (max-width: 1200px) {
|
@media (max-width: 1200px) {
|
||||||
@@ -75,6 +81,10 @@ html {
|
|||||||
|
|
||||||
// Home
|
// Home
|
||||||
.page__home {
|
.page__home {
|
||||||
|
display: flex;
|
||||||
|
height: 100%;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
&__title {
|
&__title {
|
||||||
gap: 1.5rem;
|
gap: 1.5rem;
|
||||||
margin: 4rem 0;
|
margin: 4rem 0;
|
||||||
@@ -86,6 +96,10 @@ html {
|
|||||||
margin-top: 1.5rem;
|
margin-top: 1.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
section {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
html[data-theme="redflux"] {
|
html[data-theme="redflux"] {
|
||||||
@@ -150,3 +164,21 @@ html[data-theme="blueney"] {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// links
|
||||||
|
.links {
|
||||||
|
border-top: thin solid var(--c--theme--colors--greyscale-300);
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 0.5rem;
|
||||||
|
|
||||||
|
ul {
|
||||||
|
text-align: right;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
ul li {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0 0.5rem;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user