Skip to content

Commit 04b71fd

Browse files
committed
Updated QR-code page layout
1 parent a812e1c commit 04b71fd

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

src/App.tsx

+6-3
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,16 @@ class App extends React.Component<IAppProps, {}> {
133133
var url = process.env.API.host + "/profile/" + account.token;
134134
return (
135135
<Flex
136-
column
137136
align="center"
138137
justify="center"
139138
className={classNames(style.container, style.start)}>
140139
<Button icon="times" alert className={style.quit} onClick={() => dispatch(login(account.card_id))}/>
141-
<Box ><QRCode size="200" value={url} /></Box>
142-
<Box >Scan the QRcode to view and edit your profile </Box>
140+
<Box>
141+
<div className={style.qrcode}>
142+
<QRCode size="200" value={url} className={style.qrcode} />
143+
</div>
144+
</Box>
145+
<Box p={3}><p>Scan the QRcode to<br />view and edit your profile.</p></Box>
143146
</Flex>);
144147
}else {
145148
return (

src/styles/App.scss

+10
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,13 @@ body {
5959
right: 0;
6060
z-index: 10;
6161
}
62+
.qrcode {
63+
width: 200px;
64+
height: 200px;
65+
border: solid 5px #fff;
66+
box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
67+
box-sizing: content-box;
68+
}
69+
p {
70+
line-height: 36px;
71+
}

src/styles/App.scss.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ export const white: string;
33
export const start: string;
44
export const quit: string;
55
export const overlay: string;
6+
export const qrcode: string;

0 commit comments

Comments
 (0)