From 2814000eebd654892de256f02ec490a189ad8a15 Mon Sep 17 00:00:00 2001 From: ayeshrodz Date: Sun, 10 Jan 2021 01:19:12 +0530 Subject: [PATCH] css modify --- .eslintcache | 2 +- src/components/App.css | 4 +-- src/components/App.js | 43 +++++++++++++++++-------------- src/components/about/About.js | 4 --- src/components/auth/AuthMain.css | 4 +-- src/components/auth/Signup.css | 0 src/components/auth/Signup.js | 3 ++- src/components/home/Home.js | 19 ++++---------- src/components/profile/Profile.js | 3 --- src/components/review/Review.js | 9 +------ 10 files changed, 35 insertions(+), 56 deletions(-) create mode 100644 src/components/auth/Signup.css diff --git a/.eslintcache b/.eslintcache index 02ec577..68a9c18 100644 --- a/.eslintcache +++ b/.eslintcache @@ -1 +1 @@ -[{"C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\index.js":"1","C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\App.js":"2","C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\NotFound.js":"3","C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\about\\About.js":"4","C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\home\\Home.js":"5","C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\profile\\Profile.js":"6","C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\header\\Header.js":"7","C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\review\\Review.js":"8","C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\auth\\AuthMain.js":"9","C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\auth\\Signup.js":"10","C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\contexts\\AuthContext.js":"11","C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\firebase.js":"12","C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\Landing\\Landing.js":"13","C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\SearchResult\\SearchResult.js":"14"},{"size":267,"mtime":1609403827945,"results":"15","hashOfConfig":"16"},{"size":1174,"mtime":1609741653799,"results":"17","hashOfConfig":"16"},{"size":22297,"mtime":1609403827878,"results":"18","hashOfConfig":"16"},{"size":314,"mtime":1609651777779,"results":"19","hashOfConfig":"16"},{"size":1352,"mtime":1609741768600,"results":"20","hashOfConfig":"16"},{"size":2656,"mtime":1609741844059,"results":"21","hashOfConfig":"16"},{"size":1328,"mtime":1609666347022,"results":"22","hashOfConfig":"16"},{"size":404,"mtime":1609741761914,"results":"23","hashOfConfig":"16"},{"size":553,"mtime":1609403827880,"results":"24","hashOfConfig":"16"},{"size":2074,"mtime":1609651601862,"results":"25","hashOfConfig":"16"},{"size":906,"mtime":1609651994252,"results":"26","hashOfConfig":"16"},{"size":590,"mtime":1609403827944,"results":"27","hashOfConfig":"16"},{"size":848,"mtime":1609655366519,"results":"28","hashOfConfig":"16"},{"size":1547,"mtime":1609790058271,"results":"29","hashOfConfig":"16"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"1p1e19c",{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"39","messages":"40","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"41","messages":"42","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"49","messages":"50","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"57","messages":"58","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\index.js",[],["59","60"],"C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\App.js",[],"C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\NotFound.js",[],"C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\about\\About.js",[],"C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\home\\Home.js",["61","62","63","64"],"C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\profile\\Profile.js",["65","66","67"],"C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\header\\Header.js",[],"C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\review\\Review.js",[],"C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\auth\\AuthMain.js",[],"C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\auth\\Signup.js",[],"C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\contexts\\AuthContext.js",[],"C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\firebase.js",[],"C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\Landing\\Landing.js",[],"C:\\Users\\User\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\SearchResult\\SearchResult.js",["68","69"],{"ruleId":"70","replacedBy":"71"},{"ruleId":"72","replacedBy":"73"},{"ruleId":"74","severity":1,"message":"75","line":4,"column":10,"nodeType":"76","messageId":"77","endLine":4,"endColumn":13},{"ruleId":"74","severity":1,"message":"78","line":4,"column":15,"nodeType":"76","messageId":"77","endLine":4,"endColumn":18},{"ruleId":"74","severity":1,"message":"79","line":7,"column":8,"nodeType":"76","messageId":"77","endLine":7,"endColumn":14},{"ruleId":"74","severity":1,"message":"80","line":8,"column":8,"nodeType":"76","messageId":"77","endLine":8,"endColumn":18},{"ruleId":"74","severity":1,"message":"81","line":4,"column":10,"nodeType":"76","messageId":"77","endLine":4,"endColumn":16},{"ruleId":"74","severity":1,"message":"82","line":4,"column":23,"nodeType":"76","messageId":"77","endLine":4,"endColumn":34},{"ruleId":"74","severity":1,"message":"83","line":4,"column":36,"nodeType":"76","messageId":"77","endLine":4,"endColumn":44},{"ruleId":"84","severity":1,"message":"85","line":41,"column":7,"nodeType":"86","endLine":41,"endColumn":37},{"ruleId":"87","severity":1,"message":"88","line":44,"column":13,"nodeType":"86","endLine":44,"endColumn":64},"no-native-reassign",["89"],"no-negated-in-lhs",["90"],"no-unused-vars","'Col' is defined but never used.","Identifier","unusedVar","'Row' is defined but never used.","'Button' is defined but never used.","'background' is defined but never used.","'Navbar' is defined but never used.","'NavDropdown' is defined but never used.","'CardDeck' is defined but never used.","jsx-a11y/anchor-is-valid","The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md","JSXOpeningElement","jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","no-global-assign","no-unsafe-negation"] \ No newline at end of file +[{"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\index.js":"1","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\App.js":"2","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\NotFound.js":"3","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\auth\\AuthMain.js":"4","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\profile\\Profile.js":"5","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\home\\Home.js":"6","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\review\\Review.js":"7","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\about\\About.js":"8","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\Landing\\Landing.js":"9","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\SearchResult\\SearchResult.js":"10","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\auth\\Signup.js":"11","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\contexts\\AuthContext.js":"12","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\header\\Header.js":"13","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\firebase.js":"14"},{"size":255,"mtime":1607747487817,"results":"15","hashOfConfig":"16"},{"size":1268,"mtime":1610221562207,"results":"17","hashOfConfig":"16"},{"size":22297,"mtime":1609398099404,"results":"18","hashOfConfig":"16"},{"size":553,"mtime":1609360599772,"results":"19","hashOfConfig":"16"},{"size":2554,"mtime":1610221083758,"results":"20","hashOfConfig":"16"},{"size":1108,"mtime":1610219340073,"results":"21","hashOfConfig":"16"},{"size":232,"mtime":1610221066444,"results":"22","hashOfConfig":"16"},{"size":209,"mtime":1610221105642,"results":"23","hashOfConfig":"16"},{"size":848,"mtime":1610217775626,"results":"24","hashOfConfig":"16"},{"size":1547,"mtime":1610218443539,"results":"25","hashOfConfig":"16"},{"size":2113,"mtime":1610220966254,"results":"26","hashOfConfig":"16"},{"size":906,"mtime":1608052622062,"results":"27","hashOfConfig":"16"},{"size":1328,"mtime":1610217775630,"results":"28","hashOfConfig":"16"},{"size":590,"mtime":1608049660052,"results":"29","hashOfConfig":"16"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"1mbzqh7",{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"39","messages":"40","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"41","messages":"42","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"43","messages":"44","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"45","messages":"46","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"49","messages":"50","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"51","usedDeprecatedRules":"32"},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\index.js",[],["60","61"],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\App.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\NotFound.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\auth\\AuthMain.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\profile\\Profile.js",["62","63","64","65"],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\home\\Home.js",["66"],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\review\\Review.js",["67"],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\about\\About.js",["68"],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\Landing\\Landing.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\SearchResult\\SearchResult.js",["69"],"import React from \"react\";\r\nimport Header from \"../header/Header\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport \"./SearchResult.css\";\r\nimport Form from \"react-bootstrap/Form\";\r\nimport ArrowDropDownIcon from \"@material-ui/icons/ArrowDropDown\";\r\nimport SearchLogo from \"../Images/search-result.jpeg\"\r\n\r\nfunction SearchResult() {\r\n return (\r\n
\r\n {/* Navigation Bar Component */}\r\n
\r\n {/* Navigation Bar Component End */}\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n\r\n \r\n
\r\n \r\n
\r\n

Colombo To Badulla

\r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nexport default SearchResult;\r\n","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\auth\\Signup.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\contexts\\AuthContext.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\header\\Header.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\firebase.js",[],{"ruleId":"70","replacedBy":"71"},{"ruleId":"72","replacedBy":"73"},{"ruleId":"74","severity":1,"message":"75","line":3,"column":8,"nodeType":"76","messageId":"77","endLine":3,"endColumn":14},{"ruleId":"74","severity":1,"message":"78","line":4,"column":10,"nodeType":"76","messageId":"77","endLine":4,"endColumn":16},{"ruleId":"74","severity":1,"message":"79","line":4,"column":23,"nodeType":"76","messageId":"77","endLine":4,"endColumn":34},{"ruleId":"74","severity":1,"message":"80","line":4,"column":36,"nodeType":"76","messageId":"77","endLine":4,"endColumn":44},{"ruleId":"74","severity":1,"message":"75","line":2,"column":8,"nodeType":"76","messageId":"77","endLine":2,"endColumn":14},{"ruleId":"74","severity":1,"message":"75","line":3,"column":8,"nodeType":"76","messageId":"77","endLine":3,"endColumn":14},{"ruleId":"74","severity":1,"message":"75","line":2,"column":8,"nodeType":"76","messageId":"77","endLine":2,"endColumn":14},{"ruleId":"74","severity":1,"message":"81","line":7,"column":8,"nodeType":"76","messageId":"77","endLine":7,"endColumn":18},"no-native-reassign",["82"],"no-negated-in-lhs",["83"],"no-unused-vars","'Header' is defined but never used.","Identifier","unusedVar","'Navbar' is defined but never used.","'NavDropdown' is defined but never used.","'CardDeck' is defined but never used.","'SearchLogo' is defined but never used.","no-global-assign","no-unsafe-negation"] \ No newline at end of file diff --git a/src/components/App.css b/src/components/App.css index 12471be..f1efeaa 100644 --- a/src/components/App.css +++ b/src/components/App.css @@ -1,6 +1,4 @@ .container, .container-fluid, .row{ clear: both; /* float: left; */ - width: 100%; - - } \ No newline at end of file + } diff --git a/src/components/App.js b/src/components/App.js index 9f63998..ea8f0dc 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -1,34 +1,37 @@ import React from "react"; import { BrowserRouter as Router, Switch, Route } from "react-router-dom"; import Home from "./home/Home"; -import './App.css'; +import Header from "./header/Header"; +import "./App.css"; import Profile from "./profile/Profile"; import About from "./about/About"; import AuthMain from "./auth/AuthMain"; import Review from "./review/Review"; import NotFound from "./NotFound"; -import Landing from "./Landing/Landing" -import SearchResult from "./SearchResult/SearchResult" +import Landing from "./Landing/Landing"; +import SearchResult from "./SearchResult/SearchResult"; function App() { return ( -
- - -
- - - - - - - - - - - -
-
+
+
+
+ +
+ + + + + + + + + + + +
+
+
); } diff --git a/src/components/about/About.js b/src/components/about/About.js index 1c900fb..c6d868b 100644 --- a/src/components/about/About.js +++ b/src/components/about/About.js @@ -4,10 +4,6 @@ import Header from "../header/Header"; function About() { return (
- {/* Navigation Bar Component */} -
- {/* Navigation Bar Component Ends */} -

About Component

); diff --git a/src/components/auth/AuthMain.css b/src/components/auth/AuthMain.css index 5cbab15..2f57ee6 100644 --- a/src/components/auth/AuthMain.css +++ b/src/components/auth/AuthMain.css @@ -1,7 +1,7 @@ .sign-up-main { - min-height: 85vh; + min-height: 80vh; } .sign-up-content { - max-width: 400px; + max-width: 380px; } \ No newline at end of file diff --git a/src/components/auth/Signup.css b/src/components/auth/Signup.css new file mode 100644 index 0000000..e69de29 diff --git a/src/components/auth/Signup.js b/src/components/auth/Signup.js index 7fc90af..c9c40cb 100644 --- a/src/components/auth/Signup.js +++ b/src/components/auth/Signup.js @@ -2,6 +2,7 @@ import React, { useRef, useState } from "react"; import { Form, Button, Card, Alert } from "react-bootstrap"; import { useAuth } from "../../contexts/AuthContext"; import { Link } from "react-router-dom"; +import "./Signup.css"; export default function Signup() { const emailRef = useRef(); @@ -29,7 +30,7 @@ export default function Signup() { return ( <> - +

Sign Up

{error && {error}} diff --git a/src/components/home/Home.js b/src/components/home/Home.js index c8a97b5..e542834 100644 --- a/src/components/home/Home.js +++ b/src/components/home/Home.js @@ -1,23 +1,15 @@ import React from "react"; import Header from "../header/Header"; import Form from "react-bootstrap/Form"; -import { Col, Row } from "reactstrap"; import "./Home.css"; import TextField from "@material-ui/core/TextField"; -import Button from "react-bootstrap/Button"; -import background from "../Images/background.jpg" -import {Link} from "react-router-dom" +import { Link } from "react-router-dom"; function Home() { return (
- {/* Navigation Bar Component */} -
- {/* Navigation Bar Component Ends */} -

Plan Your Journey With Us

-
@@ -36,13 +28,12 @@ function Home() { }} />
- - + + -
); } diff --git a/src/components/profile/Profile.js b/src/components/profile/Profile.js index 4664755..c9fe2fb 100644 --- a/src/components/profile/Profile.js +++ b/src/components/profile/Profile.js @@ -7,9 +7,6 @@ import { Card } from "react-bootstrap"; function Profile() { return (
- {/* Navigation Bar Component */} -
- {/* Navigation Bar Component End */}

Welcome to your Account

diff --git a/src/components/review/Review.js b/src/components/review/Review.js index b1c8ad7..8d3c8c1 100644 --- a/src/components/review/Review.js +++ b/src/components/review/Review.js @@ -5,14 +5,7 @@ import Header from "../header/Header"; function Review() { return (
- {/* Navigation Bar Component */} -
- {/* Navigation Bar Component Ends */} -
-
- -
-
+

Review page

); }