From f6bc76e1d1041398b10137a927125887e74d75c3 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 19 Apr 2023 00:23:35 -0700 Subject: [PATCH] Add ExtraContainer This is the purple container that will contain additional weapons and sephira guidebooks --- components/extra/ExtraContainer/index.scss | 50 ++++++++++++++++++++++ components/extra/ExtraContainer/index.tsx | 11 +++++ 2 files changed, 61 insertions(+) create mode 100644 components/extra/ExtraContainer/index.scss create mode 100644 components/extra/ExtraContainer/index.tsx diff --git a/components/extra/ExtraContainer/index.scss b/components/extra/ExtraContainer/index.scss new file mode 100644 index 00000000..73865e6d --- /dev/null +++ b/components/extra/ExtraContainer/index.scss @@ -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); + } + } +} diff --git a/components/extra/ExtraContainer/index.tsx b/components/extra/ExtraContainer/index.tsx new file mode 100644 index 00000000..508f3d57 --- /dev/null +++ b/components/extra/ExtraContainer/index.tsx @@ -0,0 +1,11 @@ +import React, { PropsWithChildren } from 'react' +import './index.scss' + +// Props +interface Props {} + +const ExtraContainer = ({ children, ...props }: PropsWithChildren) => { + return
{children}
+} + +export default ExtraContainer