Add ExtraContainer
This is the purple container that will contain additional weapons and sephira guidebooks
This commit is contained in:
parent
f948c25e28
commit
f6bc76e1d1
2 changed files with 61 additions and 0 deletions
50
components/extra/ExtraContainer/index.scss
Normal file
50
components/extra/ExtraContainer/index.scss
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
.ExtraContainer {
|
||||||
|
background: var(--extra-purple-bg);
|
||||||
|
border-radius: $card-corner;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
position: relative;
|
||||||
|
left: $unit;
|
||||||
|
margin: 20px auto;
|
||||||
|
max-width: calc($grid-width + 20px);
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
.ContainerItem {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1.19fr 3fr;
|
||||||
|
gap: $unit-2x;
|
||||||
|
padding: $unit-2x $unit-2x $unit-2x;
|
||||||
|
|
||||||
|
&.Disabled {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
|
||||||
|
.Header {
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.Header {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: $unit;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: $unit-4x;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
& > h3 {
|
||||||
|
color: var(--extra-purple-text);
|
||||||
|
font-size: $font-small;
|
||||||
|
font-weight: $medium;
|
||||||
|
line-height: 1.2;
|
||||||
|
font-weight: 500;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(:first-child) {
|
||||||
|
border-top: 1px solid var(--extra-purple-card-bg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
components/extra/ExtraContainer/index.tsx
Normal file
11
components/extra/ExtraContainer/index.tsx
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
import React, { PropsWithChildren } from 'react'
|
||||||
|
import './index.scss'
|
||||||
|
|
||||||
|
// Props
|
||||||
|
interface Props {}
|
||||||
|
|
||||||
|
const ExtraContainer = ({ children, ...props }: PropsWithChildren<Props>) => {
|
||||||
|
return <div className="ExtraContainer">{children}</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ExtraContainer
|
||||||
Loading…
Reference in a new issue