From 3124f05544c99b23513d6bd0b8c1dd69800661f4 Mon Sep 17 00:00:00 2001 From: Piyush Sharma Date: Mon, 4 Apr 2022 23:06:59 -0400 Subject: [PATCH 1/2] Added New Carousel --- .../client/src/components/HomeCarousel.js | 54 +++++++++++++++++++ sports-matcher/client/src/pages/Welcome.js | 8 +-- .../client/src/styles/HomeCarousel.css | 5 ++ 3 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 sports-matcher/client/src/components/HomeCarousel.js create mode 100644 sports-matcher/client/src/styles/HomeCarousel.css diff --git a/sports-matcher/client/src/components/HomeCarousel.js b/sports-matcher/client/src/components/HomeCarousel.js new file mode 100644 index 0000000..4f667a8 --- /dev/null +++ b/sports-matcher/client/src/components/HomeCarousel.js @@ -0,0 +1,54 @@ +import React from "react"; +import { Carousel } from "react-bootstrap"; +import "../styles/HomeCarousel.css"; +export default class HomeCarousel extends React.Component{ + constructor(props) { + super(props); + } + render() { + return ( + + + Connect Slide + +
+

Connect

+

Connect with other athletes in your area!

+
+
+
+ + Schedule Slide + +
+

Schedule

+

Schedule sport meets with other athletes!

+
+
+
+ + Rent Slide + +
+

Rent

+

Rent sports equipment from other athletes!

+
+
+
+
+ ); + } +} + diff --git a/sports-matcher/client/src/pages/Welcome.js b/sports-matcher/client/src/pages/Welcome.js index c172574..e1484c7 100644 --- a/sports-matcher/client/src/pages/Welcome.js +++ b/sports-matcher/client/src/pages/Welcome.js @@ -1,5 +1,6 @@ import React from "react"; import { apiClient } from "../utils/httpClients"; +import HomeCarousel from "../components/HomeCarousel"; export default class Welcome extends React.Component { constructor(props) { super(props); @@ -9,9 +10,10 @@ export default class Welcome extends React.Component { render() { return (
-
-

Sports Matcher

-

The best place to find a local match for a good game of your favourite sport!

+
+ {/*

Sports Matcher

+

The best place to find a local match for a good game of your favourite sport!

*/} +

Why?

diff --git a/sports-matcher/client/src/styles/HomeCarousel.css b/sports-matcher/client/src/styles/HomeCarousel.css new file mode 100644 index 0000000..885f649 --- /dev/null +++ b/sports-matcher/client/src/styles/HomeCarousel.css @@ -0,0 +1,5 @@ +.captionStyle { + background-color: seashell; + color: black; + outline: 1px solid black; +} \ No newline at end of file From 900f98615dac3f6e3c65ad16e4f233d9b91a0446 Mon Sep 17 00:00:00 2001 From: Piyush Sharma Date: Mon, 4 Apr 2022 23:28:23 -0400 Subject: [PATCH 2/2] Change indicator colour --- sports-matcher/client/src/styles/HomeCarousel.css | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sports-matcher/client/src/styles/HomeCarousel.css b/sports-matcher/client/src/styles/HomeCarousel.css index 885f649..ecedbf6 100644 --- a/sports-matcher/client/src/styles/HomeCarousel.css +++ b/sports-matcher/client/src/styles/HomeCarousel.css @@ -2,4 +2,14 @@ background-color: seashell; color: black; outline: 1px solid black; -} \ No newline at end of file +} + +.carousel-control-next, +.carousel-control-prev /*, .carousel-indicators */ { + filter: invert(100%); +} + +.carousel-indicators button { + filter: invert(100%); +} +