Skip to content

Commit 003d32e

Browse files
committed
removed old class names from the join form component
1 parent d603b59 commit 003d32e

File tree

4 files changed

+48
-39
lines changed

4 files changed

+48
-39
lines changed

src/components/join/form.js

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,42 @@ import { BasicInput } from 'Components/fields/';
1212
class JoinForm extends React.Component {
1313
render() {
1414
return (
15-
<section css={{ backgroundImage: `url(${blueBg})` }}>
16-
<div className="container inner-top-md inner-bottom-sm">
17-
<div className="row">
18-
<div className="col-md-6 inner-right inner-bottom-xs">
19-
<header css={{ p: { fontSize: 16 }}}>
20-
<form css={{ background: 'white', borderRadius: '8px', padding: '18px', margin: '0 10px' }}>
21-
<h1>Create an account</h1>
22-
<p>You'll use your email to log in, your username is used when displaying submissions and comments.</p>
23-
<Field name="username" component={ BasicInput } type="text" required placeholder="Username" />
24-
<Field name="email" component={ BasicInput } type="email" required placeholder="Email"/>
25-
<Field name="password" component={ BasicInput } type="password" required placeholder="Password"/>
26-
<p>
27-
<StyledLink to={`${BACKEND_URL}/api/auth/github`} css={{ fontSize: '18px', padding: '15px 35px 17px' }}>
28-
Submit
29-
</StyledLink>
30-
</p>
31-
<p> Have an account?&nbsp;
32-
<Link to={`${BACKEND_URL}/api/auth/github`}>
33-
Log in
34-
</Link>
35-
</p>
36-
</form>
37-
</header>
38-
</div>
39-
<div className="col-md-6">
40-
<div css={{ margin: '10x 20px', textAlign: 'center', }}>
41-
<img src={logoSquared} alt="codecorgi logo" ariaIgnore />
42-
</div>
43-
</div>
44-
</div>
15+
<section css={{ backgroundImage: `url(${blueBg})`,
16+
backgroundSize: 'cover',
17+
padding: '40px 20px 80px',
18+
display: 'flex',
19+
justifyContent: 'center',
20+
alignItems: 'center',
21+
'> div': { padding: '10px 20px', flexGrow: 1, maxWidth: 450, },
22+
'@media (max-width: 860px)': {
23+
flexDirection: 'column',
24+
paddingBottom: 40,
25+
'> div': { maxWidth: '90%' },
26+
}
27+
}}>
28+
<div css={{ background: 'white', borderRadius: '6px', padding: '18px', margin: '0 20px' }}>
29+
<header css={{ p: { fontSize: 16 }}}>
30+
<form css={{ }}>
31+
<h1>Create an account</h1>
32+
<p>You&apos;ll use your email to log in, your username is used when displaying submissions and comments.</p>
33+
<Field name="username" component={ BasicInput } type="text" required placeholder="Username" />
34+
<Field name="email" component={ BasicInput } type="email" required placeholder="Email"/>
35+
<Field name="password" component={ BasicInput } type="password" required placeholder="Password"/>
36+
<p>
37+
<StyledLink to={`${BACKEND_URL}/api/auth/github`} css={{ fontSize: '18px', padding: '15px 35px 17px' }}>
38+
Submit
39+
</StyledLink>
40+
</p>
41+
<p> Have an account?&nbsp;
42+
<Link to={`${BACKEND_URL}/api/auth/github`}>
43+
Log in
44+
</Link>
45+
</p>
46+
</form>
47+
</header>
48+
</div>
49+
<div css={{ }}>
50+
<img src={logoSquared} alt="codecorgi logo" ariaIgnore />
4551
</div>
4652
</section>
4753
);

src/lib/buttons/Link.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ import { Link } from 'react-router-dom';
33

44
const StyledLink = styled(Link)(
55
{
6-
'-webkit-transition': 'background 200ms ease-out, font 200ms ease-out, padding 200ms ease-out, margin 200ms ease-out',
7-
'-moz-transition': 'background 200ms ease-out, font 200ms ease-out, padding 200ms ease-out, margin 200ms ease-out',
8-
'-o-transition': 'background 200ms ease-out, font 200ms ease-out, padding 200ms ease-out, margin 200ms ease-out',
9-
'transition': 'background 200ms ease-out, font 200ms ease-out, padding 200ms ease-out, margin 200ms ease-out',
6+
transition: 'background 200ms ease-out, font 200ms ease-out, padding 200ms ease-out, margin 200ms ease-out',
107
display: 'inline-block',
118
padding: '6px 12px',
129
marginBottom: 0,
@@ -16,13 +13,9 @@ const StyledLink = styled(Link)(
1613
textAlign: 'center',
1714
whiteSpace: 'nowrap',
1815
verticalAlign: 'middle',
19-
'-ms-touch-action': 'manipulation',
2016
touchAction: 'manipulation',
2117
cursor: 'pointer',
22-
'-webkit-user-select': 'none',
23-
'-moz-user-select': 'none',
24-
'-ms-user-select': 'none',
25-
'user-select': 'none',
18+
userSelect: 'none',
2619
backgroundImage: 'none',
2720
border: '1px solid transparent',
2821
borderRadius: '4px',

src/styles/emotion/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import Layout from './layout';
2+
3+
export { Layout };

src/styles/emotion/layout.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const Layout = {
2+
cols: {
3+
4+
}
5+
};
6+
7+
export default Layout;

0 commit comments

Comments
 (0)