Skip to content

Commit e75043f

Browse files
committed
update web login
1 parent a71be43 commit e75043f

3 files changed

Lines changed: 343 additions & 100 deletions

File tree

web/src/components/QRSetup.tsx

Lines changed: 51 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -150,35 +150,49 @@ export const QRSetup = () => {
150150
<div
151151
style={{
152152
display: 'flex',
153-
flexDirection: 'row',
153+
flexDirection: 'column',
154154
alignItems: 'center',
155-
justifyContent: 'center'
155+
justifyContent: 'center',
156+
gap: CssVar.space(4),
157+
width: '100%',
158+
maxWidth: 420,
159+
margin: '0 auto'
156160
}}
157161
>
158-
<div>
159-
<div
162+
<div
163+
style={{
164+
width: 'min(220px, 70vw)',
165+
aspectRatio: '1 / 1',
166+
margin: '0 auto'
167+
}}
168+
>
169+
<QRCode
170+
value={signalURL}
171+
size={500}
172+
ecLevel="L"
173+
quietZone={50}
160174
style={{
161-
width: '200px',
162-
height: '200px',
163-
margin: '0 auto'
175+
width: '100%',
176+
height: '100%'
164177
}}
165-
>
166-
<QRCode
167-
value={signalURL}
168-
size={500}
169-
ecLevel="L"
170-
quietZone={50}
171-
style={{
172-
width: '100%',
173-
height: '100%'
174-
}}
175-
fgColor={'black'}
176-
bgColor={'transparent'}
177-
/>
178-
</div>
178+
fgColor={'white'}
179+
bgColor={'transparent'}
180+
qrStyle="fluid"
181+
eyeRadius={10}
182+
/>
179183
</div>
180184

181-
<div>
185+
<div
186+
style={{
187+
width: '100%',
188+
maxWidth: 380,
189+
display: 'flex',
190+
flexDirection: 'column',
191+
alignItems: 'center',
192+
gap: CssVar.space(3),
193+
textAlign: 'center'
194+
}}
195+
>
182196
{!ccid && (
183197
<Text>
184198
Concrntアプリで
@@ -194,7 +208,8 @@ export const QRSetup = () => {
194208
flexDirection: 'column',
195209
alignItems: 'center',
196210
justifyContent: 'center',
197-
gap: CssVar.space(2)
211+
gap: CssVar.space(2),
212+
width: '100%'
198213
}}
199214
>
200215
<Text variant="h4">パスキーを利用しますか?</Text>
@@ -205,7 +220,8 @@ export const QRSetup = () => {
205220
flexDirection: 'row',
206221
alignItems: 'center',
207222
justifyContent: 'center',
208-
gap: CssVar.space(2)
223+
gap: CssVar.space(2),
224+
flexWrap: 'wrap'
209225
}}
210226
>
211227
<Button
@@ -231,10 +247,19 @@ export const QRSetup = () => {
231247
)}
232248

233249
{ccid && domain && !pendingKeyGeneration && (
234-
<div>
250+
<div
251+
style={{
252+
width: '100%',
253+
display: 'flex',
254+
flexDirection: 'column',
255+
alignItems: 'center',
256+
gap: CssVar.space(2)
257+
}}
258+
>
235259
<div
236260
style={{
237-
width: '40vw'
261+
width: '100%',
262+
maxWidth: 360
238263
}}
239264
>
240265
<Tilt glareEnable={true} glareBorderRadius="5%">

0 commit comments

Comments
 (0)