Skip to content

Commit 0534734

Browse files
committed
fix: rwd
1 parent f965e28 commit 0534734

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

components/wizard/RecapBar.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ export default function RecapBar({ data, setData, onClickNext }) {
126126

127127
return (
128128
<div className="font-sans fixed bottom-4 z-index-10 w-full max-w-[56rem] left-2/4 transform -translate-x-2/4 ">
129-
<div className="flex justify-around bg-white dark:bg-black dark:bg-opacity-30 backdrop-blur-lg bg-opacity-30 px-6 py-4 rounded-xl border border-gray-200 dark:border-white dark:border-opacity-10 shadow-xl">
130-
<div className="mr-6">
129+
<div className="flex flex-wrap lg:justify-around bg-white dark:bg-black dark:bg-opacity-30 backdrop-blur-lg bg-opacity-30 px-6 pt-4 rounded-xl border border-gray-200 dark:border-white dark:border-opacity-10 shadow-xl">
130+
<div className="mr-6 mb-4">
131131
<p className="uppercase mb-2 text-gray-700 font-bold dark:text-white dark:opacity-60">
132132
Content
133133
</p>
@@ -140,7 +140,7 @@ export default function RecapBar({ data, setData, onClickNext }) {
140140
Edit Content
141141
</WizardButton>
142142
</div>
143-
<div className="mr-6 flex flex-col">
143+
<div className="mr-6 flex flex-col mb-4">
144144
<p className="uppercase mb-2 text-gray-700 font-bold dark:text-white dark:opacity-60">
145145
Theme
146146
</p>
@@ -151,23 +151,23 @@ export default function RecapBar({ data, setData, onClickNext }) {
151151
withBackground
152152
/>
153153
</div>
154-
<div className="mr-6">
154+
<div className="mr-6 mb-4">
155155
<WizardLabel>Headings</WizardLabel>
156156
<FontSwitcher
157157
cssVariable="--font-primary"
158158
data={data}
159159
setData={setData}
160160
/>
161161
</div>
162-
<div className="mr-6">
162+
<div className="mr-6 mb-4">
163163
<WizardLabel>Paragraphs</WizardLabel>
164164
<FontSwitcher
165165
cssVariable="--font-secondary"
166166
data={data}
167167
setData={setData}
168168
/>
169169
</div>
170-
<div className="mt-auto">
170+
<div className="mt-auto mb-4">
171171
<WizardButton
172172
as="a"
173173
href={deployUrl}

components/wizard/elements.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const NetlifyLogo = ({ className }) => (
1212
);
1313

1414
export const WizardTitle = ({ children }) => (
15-
<h2 className="mb-8 text-5xl">{children}</h2>
15+
<h2 className="mb-8 text-3xl lg:text-5xl">{children}</h2>
1616
);
1717

1818
export const WizardProgressBar = ({ value }) => {
@@ -32,7 +32,7 @@ export const WizardContent = ({ children, step }) => (
3232
<div className="flex justify-center mt-20 w-12 mx-auto">
3333
<NetlifyLogo className="text-black dark:text-white" />
3434
</div>
35-
<div className="py-12 pt-12 pb-20 max-w-2xl mx-auto">{children}</div>
35+
<div className="py-12 px-4 pt-12 pb-20 max-w-2xl mx-auto">{children}</div>
3636
</div>
3737
);
3838

components/wizard/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export default function Wizard(props) {
2626
}, [router.query.step]);
2727

2828
useEffect(() => {
29-
console.log({ step });
3029
if (step >= 4) {
3130
setData((prevData) => ({ ...prevData, isDone: true }));
3231
} else {
@@ -61,7 +60,7 @@ export default function Wizard(props) {
6160
title="Create new blog"
6261
description="Use this simple wizard to create a new blog. Based on Next.js, Tailwind 3.0 and MDX. Deploy straight to Netlify."
6362
/>
64-
<div className="w-full h-full min-h-screen flex flex-col items-center justify-center">
63+
<div className="w-full h-full min-h-screen flex flex-col items-center justify-center px-4">
6564
<Step
6665
onClickNext={onClickNext}
6766
onClickBack={onClickBack}

0 commit comments

Comments
 (0)