diff --git a/src/components/sections/openness/Openness.tsx b/src/components/sections/openness/Openness.tsx index 6df256b6e..54cec6ad8 100644 --- a/src/components/sections/openness/Openness.tsx +++ b/src/components/sections/openness/Openness.tsx @@ -12,9 +12,9 @@ export interface OpennessProps { export default function Openness({ section }: OpennessProps) { return (
-
- {section.basicTitle} -
+ + {section.basicTitle} +
diff --git a/src/components/sections/openness/openness.module.css b/src/components/sections/openness/openness.module.css index 1eef0508c..34b14fb32 100644 --- a/src/components/sections/openness/openness.module.css +++ b/src/components/sections/openness/openness.module.css @@ -10,17 +10,17 @@ color: var(--text-primary); } -.image { - height: 30rem; - - & img { - border-radius: 0.375rem 6rem 0.375rem 0.375rem; - } -} - .title { width: 40rem; color: var(--text-primary); + + @media (max-width: 834px) { + width: 25.875rem; + } + + @media (max-width: 425px) { + width: 19.4375rem; + } } .content { @@ -29,4 +29,28 @@ align-items: flex-start; padding: 0.25rem; gap: 1rem; + + @media (max-width: 768px) { + display: flex; + flex-direction: column; + padding: 1.5rem; + } +} + +.image { + height: 30rem; + + & img { + border-radius: 0.375rem 6rem 0.375rem 0.375rem; + } + + @media (max-width: 834px) { + height: 26.25rem; + align-self: stretch; + } + + @media (max-width: 425px) { + align-self: stretch; + height: 22.375; + } } diff --git a/src/components/smileyBox/SmileyBox.tsx b/src/components/smileyBox/SmileyBox.tsx index d1cfb9878..a2ae212a8 100644 --- a/src/components/smileyBox/SmileyBox.tsx +++ b/src/components/smileyBox/SmileyBox.tsx @@ -9,11 +9,11 @@ type SmileyBoxProps = { export default function SmileyBox({ description }: SmileyBoxProps) { return ( - description && ( -
-
+
+
+
{description}
- ) +
); } diff --git a/src/components/smileyBox/smileyBox.module.css b/src/components/smileyBox/smileyBox.module.css index 4f233579d..13b9723c7 100644 --- a/src/components/smileyBox/smileyBox.module.css +++ b/src/components/smileyBox/smileyBox.module.css @@ -4,10 +4,21 @@ justify-content: space-between; align-items: flex-start; height: 30rem; - min-width: var(19.75rem); + min-width: 19.75rem; padding: 2.25rem; border-radius: 6rem 6rem 0.375rem 0.375rem; background-color: #dafbdc; + + @media (max-width: 834px) { + align-self: stretch; + height: 26.25rem; + } + + @media (max-width: 425px) { + align-self: stretch; + height: 26.25rem; + min-width: 19.4375rem; + } } .smiley { @@ -23,3 +34,15 @@ background-color: var(--text-primary); } } + +.description { + align-self: stretch; + + @media (max-width: 834px) { + max-width: 27.1875rem; + } + + @media (max-width: 425px) { + max-width: 19.4375rem; + } +}