Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 9d7cc95

Browse files
committed
fix mobile view of subscribe section
1 parent e4cc95d commit 9d7cc95

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

components/subscribe.js

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component } from 'react';
2-
import { Form, Message } from 'semantic-ui-react';
2+
import { Form, Message, Grid } from 'semantic-ui-react';
33
import { baseEventsURL, subscribeURL } from '../utils/urls';
44

55
class Subscribe extends Component {
@@ -76,18 +76,24 @@ class Subscribe extends Component {
7676
) : (
7777
<Form onSubmit={this.handleSubmit} error={hasError}>
7878
<Form.Group>
79-
<Form.Input
80-
placeholder="Enter email address"
81-
name="email"
82-
value={this.state.subscribersEmail}
83-
onChange={this.handleChange}
84-
disabled={this.state.submittingEmail}
85-
/>
86-
<Form.Button
87-
loading={this.state.submittingEmail}
88-
color="pink"
89-
content="Subscribe"
90-
/>
79+
<Grid stackable columns={2}>
80+
<Grid.Column width={12}>
81+
<Form.Input
82+
placeholder="Enter email address"
83+
name="email"
84+
value={this.state.subscribersEmail}
85+
onChange={this.handleChange}
86+
disabled={this.state.submittingEmail}
87+
/>
88+
</Grid.Column>
89+
<Grid.Column width={4}>
90+
<Form.Button
91+
loading={this.state.submittingEmail}
92+
color="pink"
93+
content="Subscribe"
94+
/>
95+
</Grid.Column>
96+
</Grid>
9197
</Form.Group>
9298
<Message
9399
error

0 commit comments

Comments
 (0)