Skip to content

Commit

Permalink
Fixed some responsive issue
Browse files Browse the repository at this point in the history
  • Loading branch information
email2vimalraj committed Sep 13, 2019
1 parent 9ad0474 commit ab20096
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ import Question from "./pages/question";
import Feedback from "./pages/feedback";
import Admin from "./pages/admin";

import "./style.css";

function App() {
return (
<>
<Row justify="center" type="flex">
<Col>
<Link to="/">
<img src={HeaderImage} alt="Excellerate - Tata Communications" />
<img
className="logo"
src={HeaderImage}
alt="Excellerate - Tata Communications"
/>
</Link>
</Col>
</Row>
Expand All @@ -29,7 +35,7 @@ function App() {
</Router>

<Row>
<img src={FooterImage} alt="Footer Design" />
<img className="footerimage" src={FooterImage} alt="Footer Design" />
</Row>
</>

Expand Down
4 changes: 2 additions & 2 deletions src/pages/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { Row, Col, Button } from "antd";
import "../style.css";

export default () => (
<Row type="flex" justify="center" style={{ margin: 80 }}>
<Row justify="space-between" type="flex" gutter={48}>
<Row type="flex" justify="center" style={{ marginTop: 80, marginBottom: 80 }}>
<Row justify="space-between" type="flex">
<Col span={12}>
<Button size="large" className="button" href="/question">
Q & A Session
Expand Down
28 changes: 28 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,31 @@
background-color: #fafafa;
min-height: 200px;
}

.logo {
width: 250px;
}

.footerimage {
width: 300px;
}

@media (min-width: 576px) {
.logo {
width: 500px;
}

.footerimage {
width: 500px;
}
}

@media (min-width: 768px) {
.logo {
width: 870px;
}

.footerimage {
width: 870px;
}
}

0 comments on commit ab20096

Please sign in to comment.