diff --git a/src/pages/ReviewPage/ReviewCards.js b/src/pages/ReviewPage/ReviewCards.js new file mode 100644 index 0000000..44245be --- /dev/null +++ b/src/pages/ReviewPage/ReviewCards.js @@ -0,0 +1,32 @@ +import React from 'react' +import './ReviewPage.css' +function ReviewCards({ desc,rate }) { + return ( +
+
+
+
+
+ ❝ +
+
+
+
+
+ {desc} +
+
+
+
Strugatsky Brothers
+
Rating {rate}
+
+
+
+
+
+
+ + ) +} + +export default ReviewCards \ No newline at end of file diff --git a/src/pages/ReviewPage/ReviewPage.css b/src/pages/ReviewPage/ReviewPage.css index faca923..172772d 100644 --- a/src/pages/ReviewPage/ReviewPage.css +++ b/src/pages/ReviewPage/ReviewPage.css @@ -31,8 +31,9 @@ section.t-bq-section { .t-bq-quote-paul .t-bq-quote-paul-pattern { flex-basis: 80px; - background: url("https://raw.githubusercontent.com/taviskaron/t-div-blockquotes/main/img/hexabump.png") repeat; + /* background: url("https://raw.githubusercontent.com/taviskaron/t-div-blockquotes/main/img/hexabump.png") repeat; */ border-radius: 10px 0 0 10px; + background: linear-gradient(180deg,rgba(9,76,131,.75),#21b8cb),#efffec; } .t-bq-quote-paul .t-bq-quote-paul-base { @@ -63,7 +64,7 @@ section.t-bq-section { left: 45px; width: 70px; height: 70px; - background: url("https://raw.githubusercontent.com/taviskaron/t-div-blockquotes/main/img/strug.jpg") center center no-repeat; + /* background: url("https://raw.githubusercontent.com/taviskaron/t-div-blockquotes/main/img/strug.jpg") center center no-repeat; */ background-size: cover; border-radius: 50%; } diff --git a/src/pages/ReviewPage/ReviewPage.js b/src/pages/ReviewPage/ReviewPage.js index 7b4f6e7..2ce575b 100644 --- a/src/pages/ReviewPage/ReviewPage.js +++ b/src/pages/ReviewPage/ReviewPage.js @@ -1,44 +1,31 @@ -import React, { useEffect } from 'react' +import React, { useEffect,useState } from 'react' import Mainlayout from '../../components/Mainlayout/Mainlayout' import './ReviewPage.css' import axios from 'axios' import baseUrl from '../../utils/Urls' -import {useEffect,useState} from 'react' +import ReviewCards from './ReviewCards' function ReviewPage() { - +const[reviews,setReviews]=useState([]) useEffect(()=>{ axios.get(`${baseUrl}/reviews/`).then((response)=>{ - + setReviews(response.data) }) -}) +},[]) return ( -
-
-
-
-
- ❝ -
-
-
-
-
-Psychologically, almost all of them were slaves - slaves of faith, slaves of their own kind, slaves of passions, slaves of greed. And if, by the will of fate, one of them was born or became a master, he did not know what to do with his freedom. He again hurried to become a slave - a slave of wealth, unnatural excesses, a slave of dissolute friends, a slave of his slaves. -
-
-
-
Strugatsky Brothers
-
Hard to Be a God
-
-
-
-
+
+ { + reviews.map((item)=>{ + return( + + ) + }) + }
-
-
+ + ) }