✨(demo) new demo
This new demo aims to take advantage of all the new Cunningham's components. The old demo was kind of a draft, this new one gives a better overview of what Cunningham is capable of.
This commit is contained in:
@@ -3,28 +3,95 @@
|
||||
@use "@openfun/cunningham-react/style";
|
||||
@use "cunningham-tokens";
|
||||
|
||||
:root {
|
||||
font-family: Roboto, sans-serif;
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
font-weight: 400;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 3rem;
|
||||
background-color: var(--c--theme--colors--greyscale-000);
|
||||
|
||||
// Reset
|
||||
h1 {
|
||||
font-family: var(--c--theme--font--families--accent);
|
||||
font-size: 4rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
.center {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 2rem;
|
||||
background-color: var(--c--theme--colors--greyscale-100);
|
||||
border-radius: 1rem;
|
||||
// App
|
||||
html {
|
||||
min-height: 100vh;
|
||||
padding-bottom: 5rem;
|
||||
background: linear-gradient(153deg, var(--c--theme--colors--greyscale-100) 0%, var(--c--theme--colors--greyscale-000) 100%);
|
||||
}
|
||||
|
||||
h1, h3 {
|
||||
margin-bottom: 40px;
|
||||
.pattern {
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
top: -200px;
|
||||
left: -290px;
|
||||
transform: rotate(335deg);
|
||||
}
|
||||
|
||||
.theme-switch {
|
||||
position: fixed;
|
||||
right: 1rem;
|
||||
top: 0.75rem;
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: var(--c--theme--colors--greyscale-000);
|
||||
padding: 2rem;
|
||||
border-radius: 4px;
|
||||
border: 1px var(--c--theme--colors--greyscale-300) solid;
|
||||
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
||||
}
|
||||
|
||||
.cunningham-theme--dark {
|
||||
.card {
|
||||
box-shadow: none;
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
margin: auto;
|
||||
position: relative;
|
||||
|
||||
width: 1100px;
|
||||
@media (max-width: 1200px) {
|
||||
width: calc(100% - 2rem);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Home
|
||||
.page__home {
|
||||
&__title {
|
||||
gap: 1.5rem;
|
||||
margin: 4rem 0;
|
||||
|
||||
h1 {
|
||||
}
|
||||
|
||||
button {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Create
|
||||
.page__create {
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin: 4rem 0;
|
||||
}
|
||||
|
||||
.card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
|
||||
h3, h4 {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user