@ -0,0 +1,23 @@ |
|||||||
|
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. |
||||||
|
|
||||||
|
# dependencies |
||||||
|
/node_modules |
||||||
|
/.pnp |
||||||
|
.pnp.js |
||||||
|
|
||||||
|
# testing |
||||||
|
/coverage |
||||||
|
|
||||||
|
# production |
||||||
|
/build |
||||||
|
|
||||||
|
# misc |
||||||
|
.DS_Store |
||||||
|
.env.local |
||||||
|
.env.development.local |
||||||
|
.env.test.local |
||||||
|
.env.production.local |
||||||
|
|
||||||
|
npm-debug.log* |
||||||
|
yarn-debug.log* |
||||||
|
yarn-error.log* |
@ -0,0 +1,70 @@ |
|||||||
|
# Getting Started with Create React App |
||||||
|
|
||||||
|
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). |
||||||
|
|
||||||
|
## Available Scripts |
||||||
|
|
||||||
|
In the project directory, you can run: |
||||||
|
|
||||||
|
### `yarn start` |
||||||
|
|
||||||
|
Runs the app in the development mode.\ |
||||||
|
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. |
||||||
|
|
||||||
|
The page will reload if you make edits.\ |
||||||
|
You will also see any lint errors in the console. |
||||||
|
|
||||||
|
### `yarn test` |
||||||
|
|
||||||
|
Launches the test runner in the interactive watch mode.\ |
||||||
|
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. |
||||||
|
|
||||||
|
### `yarn build` |
||||||
|
|
||||||
|
Builds the app for production to the `build` folder.\ |
||||||
|
It correctly bundles React in production mode and optimizes the build for the best performance. |
||||||
|
|
||||||
|
The build is minified and the filenames include the hashes.\ |
||||||
|
Your app is ready to be deployed! |
||||||
|
|
||||||
|
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. |
||||||
|
|
||||||
|
### `yarn eject` |
||||||
|
|
||||||
|
**Note: this is a one-way operation. Once you `eject`, you can’t go back!** |
||||||
|
|
||||||
|
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. |
||||||
|
|
||||||
|
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. |
||||||
|
|
||||||
|
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. |
||||||
|
|
||||||
|
## Learn More |
||||||
|
|
||||||
|
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). |
||||||
|
|
||||||
|
To learn React, check out the [React documentation](https://reactjs.org/). |
||||||
|
|
||||||
|
### Code Splitting |
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) |
||||||
|
|
||||||
|
### Analyzing the Bundle Size |
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) |
||||||
|
|
||||||
|
### Making a Progressive Web App |
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) |
||||||
|
|
||||||
|
### Advanced Configuration |
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) |
||||||
|
|
||||||
|
### Deployment |
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) |
||||||
|
|
||||||
|
### `yarn build` fails to minify |
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) |
@ -0,0 +1,41 @@ |
|||||||
|
{ |
||||||
|
"name": "profile", |
||||||
|
"version": "0.1.0", |
||||||
|
"private": true, |
||||||
|
"dependencies": { |
||||||
|
"@testing-library/jest-dom": "^5.11.4", |
||||||
|
"@testing-library/react": "^11.1.0", |
||||||
|
"@testing-library/user-event": "^12.1.10", |
||||||
|
"bootstrap": "^5.1.0", |
||||||
|
"node-sass": "4.14.1", |
||||||
|
"react": "^17.0.2", |
||||||
|
"react-dom": "^17.0.2", |
||||||
|
"react-scripts": "4.0.3", |
||||||
|
"reactstrap": "^8.9.0", |
||||||
|
"web-vitals": "^1.0.1" |
||||||
|
}, |
||||||
|
"scripts": { |
||||||
|
"start": "react-scripts start", |
||||||
|
"build": "react-scripts build", |
||||||
|
"test": "react-scripts test", |
||||||
|
"eject": "react-scripts eject" |
||||||
|
}, |
||||||
|
"eslintConfig": { |
||||||
|
"extends": [ |
||||||
|
"react-app", |
||||||
|
"react-app/jest" |
||||||
|
] |
||||||
|
}, |
||||||
|
"browserslist": { |
||||||
|
"production": [ |
||||||
|
">0.2%", |
||||||
|
"not dead", |
||||||
|
"not op_mini all" |
||||||
|
], |
||||||
|
"development": [ |
||||||
|
"last 1 chrome version", |
||||||
|
"last 1 firefox version", |
||||||
|
"last 1 safari version" |
||||||
|
] |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
<!DOCTYPE html> |
||||||
|
<html lang="en"> |
||||||
|
<head> |
||||||
|
<meta charset="utf-8" /> |
||||||
|
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> |
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" /> |
||||||
|
<title>profile</title> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
<noscript>You need to enable JavaScript to run this app.</noscript> |
||||||
|
<div id="root"></div> |
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,12 @@ |
|||||||
|
import React from "react"; |
||||||
|
import Profile from "./Profile"; |
||||||
|
|
||||||
|
const App = () => { |
||||||
|
return ( |
||||||
|
<> |
||||||
|
<Profile /> |
||||||
|
</> |
||||||
|
); |
||||||
|
}; |
||||||
|
|
||||||
|
export default App; |
@ -0,0 +1,20 @@ |
|||||||
|
import React from "react"; |
||||||
|
import Request from "./components/request/Request"; |
||||||
|
import About from "./components/about-doctor/About"; |
||||||
|
import Comments from "./components/comments/Comments"; |
||||||
|
import Presents from "./components/present/Presents"; |
||||||
|
|
||||||
|
const Profile = () => { |
||||||
|
return ( |
||||||
|
<> |
||||||
|
<div className='container'> |
||||||
|
<Request /> |
||||||
|
<About /> |
||||||
|
<Comments /> |
||||||
|
<Presents /> |
||||||
|
</div> |
||||||
|
</> |
||||||
|
); |
||||||
|
}; |
||||||
|
|
||||||
|
export default Profile; |
After Width: | Height: | Size: 802 B |
After Width: | Height: | Size: 669 B |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 615 B |
After Width: | Height: | Size: 451 B |
After Width: | Height: | Size: 507 B |
@ -0,0 +1,17 @@ |
|||||||
|
import React from "react" |
||||||
|
import './About.scss' |
||||||
|
|
||||||
|
const About = () => { |
||||||
|
return ( |
||||||
|
<div> |
||||||
|
<h6 className='title'>درباره پزشک</h6> |
||||||
|
<p className='discription'> |
||||||
|
لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ، و با استفاده |
||||||
|
از طراحان گرافیک است، چاپگرها و متون بلکه روزنامه و مجله در ستون و |
||||||
|
سطرآنچنان که لازم است، و برای شرایط فعلی تکنولوژی مورد نیاز، و کاربردهای |
||||||
|
</p> |
||||||
|
</div> |
||||||
|
); |
||||||
|
}; |
||||||
|
|
||||||
|
export default About; |
@ -0,0 +1,8 @@ |
|||||||
|
.title{ |
||||||
|
margin-bottom: 0.75rem; |
||||||
|
} |
||||||
|
|
||||||
|
.discription{ |
||||||
|
font-size: 13px; |
||||||
|
text-align: justify; |
||||||
|
} |
@ -0,0 +1,32 @@ |
|||||||
|
import React from "react"; |
||||||
|
import "./Comment.scss"; |
||||||
|
|
||||||
|
const Comments = ({ item }) => { |
||||||
|
return ( |
||||||
|
<> |
||||||
|
<div className="navMain"> |
||||||
|
<nav className="navHeader"> |
||||||
|
<img alt="avatar" src={item.avatar} /> |
||||||
|
<nav className="navItems"> |
||||||
|
<nav className="navTitle"> |
||||||
|
<p> |
||||||
|
<b>{item.name}</b> |
||||||
|
</p> |
||||||
|
<p className="text-muted">{item.time}</p> |
||||||
|
</nav> |
||||||
|
|
||||||
|
<nav> |
||||||
|
<span className="backgroundRate"> |
||||||
|
<p>{item.rate}</p> |
||||||
|
<img alt="star" src={item.icon} /> |
||||||
|
</span> |
||||||
|
</nav> |
||||||
|
</nav> |
||||||
|
</nav> |
||||||
|
<p className="discriptionComment">{item.comment}</p> |
||||||
|
</div> |
||||||
|
</> |
||||||
|
); |
||||||
|
}; |
||||||
|
|
||||||
|
export default Comments; |
@ -0,0 +1,41 @@ |
|||||||
|
.navMain { |
||||||
|
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px; |
||||||
|
border-radius: 1rem; |
||||||
|
width: 230px; |
||||||
|
padding: 1rem; |
||||||
|
margin: 1rem 0 10px 1rem; |
||||||
|
.navHeader { |
||||||
|
display: flex; |
||||||
|
width: 200px; |
||||||
|
justify-content: space-around; |
||||||
|
.navItems { |
||||||
|
display: flex; |
||||||
|
|
||||||
|
.navTitle { |
||||||
|
margin: 0px 1rem 0 1rem; |
||||||
|
p { |
||||||
|
font-size: 13px; |
||||||
|
margin: 0; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.backgroundRate { |
||||||
|
background-color: #06E5AF30; |
||||||
|
padding: 2px 8px; |
||||||
|
display: flex; |
||||||
|
border-radius: 20px; |
||||||
|
p { |
||||||
|
padding-left: 2px; |
||||||
|
margin: 0; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
.discriptionComment{ |
||||||
|
margin-top: 1rem; |
||||||
|
font-size: 12px; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,75 @@ |
|||||||
|
import React from "react"; |
||||||
|
import Component from "./Comment/Comment"; |
||||||
|
import star from "../../assets/star.svg"; |
||||||
|
import avatar1 from "../../assets/man1.svg"; |
||||||
|
import avatar2 from "../../assets/man2.svg"; |
||||||
|
import plus from "../../assets/plus.svg"; |
||||||
|
|
||||||
|
import "./comments.scss"; |
||||||
|
|
||||||
|
const comments = () => { |
||||||
|
const comments = [ |
||||||
|
{ |
||||||
|
name: "محسن محمدی", |
||||||
|
time: "4 ساعت پیش", |
||||||
|
comment: |
||||||
|
"لورم ایپسوم متن ساختگی با گی با تول تول ی با گی با تول تولید سا ت ید سا تولید سادگی ", |
||||||
|
icon: star, |
||||||
|
avatar: avatar2, |
||||||
|
rate: 5, |
||||||
|
}, |
||||||
|
{ |
||||||
|
name: "محمد اسلامی", |
||||||
|
time: "1 ساعت پیش", |
||||||
|
comment: "لورم ایپسوم متن ساختگی با تولید سادگی ", |
||||||
|
icon: star, |
||||||
|
avatar: avatar1, |
||||||
|
rate: 1, |
||||||
|
}, |
||||||
|
{ |
||||||
|
name: "رضا اسدی", |
||||||
|
time: "7 ساعت پیش", |
||||||
|
comment: "لورم ایپسوم متن ساختگی با تولید سادگی ", |
||||||
|
icon: star, |
||||||
|
avatar: avatar1, |
||||||
|
rate: 3, |
||||||
|
}, |
||||||
|
]; |
||||||
|
|
||||||
|
return ( |
||||||
|
<> |
||||||
|
<header> |
||||||
|
<nav className="headerNavComment"> |
||||||
|
<nav className="navComment"> |
||||||
|
<h6 className="m-0">نظرات</h6> |
||||||
|
<img className="me-1 ms-1" alt="star" src={star} /> |
||||||
|
<p className="m-0">4.9</p> |
||||||
|
<small className="text-muted me-1"> |
||||||
|
<sub> (150) </sub> |
||||||
|
</small> |
||||||
|
</nav> |
||||||
|
<nav> |
||||||
|
<a className="moreLink" href="http://localhost:3000"> |
||||||
|
مشاهده همه |
||||||
|
</a> |
||||||
|
</nav> |
||||||
|
</nav> |
||||||
|
</header> |
||||||
|
<div className="navListComments"> |
||||||
|
{comments.map((item) => ( |
||||||
|
<> |
||||||
|
<Component item={item} /> |
||||||
|
</> |
||||||
|
))} |
||||||
|
</div> |
||||||
|
<button className='insertCommentBtn'> |
||||||
|
<nav className="circleNav"> |
||||||
|
<img alt="مثبت" src={plus} /> |
||||||
|
</nav> |
||||||
|
افزودن نظر |
||||||
|
</button> |
||||||
|
</> |
||||||
|
); |
||||||
|
}; |
||||||
|
|
||||||
|
export default comments; |
@ -0,0 +1,38 @@ |
|||||||
|
.headerNavComment { |
||||||
|
display: flex; |
||||||
|
justify-content: space-between; |
||||||
|
align-items: center; |
||||||
|
.navComment { |
||||||
|
display: flex; |
||||||
|
} |
||||||
|
.moreLink { |
||||||
|
font-size: 14px; |
||||||
|
color: #6146c6; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.navListComments{ |
||||||
|
overflow-x: scroll; |
||||||
|
display: flex; |
||||||
|
} |
||||||
|
.navListComments::-webkit-scrollbar { |
||||||
|
display: none; |
||||||
|
} |
||||||
|
|
||||||
|
.insertCommentBtn{ |
||||||
|
display: flex; |
||||||
|
border-radius: 50px; |
||||||
|
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px; |
||||||
|
border: none; |
||||||
|
background-color: #fff; |
||||||
|
padding: 8px 0.75rem; |
||||||
|
} |
||||||
|
|
||||||
|
.circleNav{ |
||||||
|
margin-left: 5px; |
||||||
|
background-color: #6146c6; |
||||||
|
border-radius: 50%; |
||||||
|
display: flex; |
||||||
|
justify-content: center; |
||||||
|
padding: 5px; |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
import React from 'react' |
||||||
|
|
||||||
|
const Presents = () => { |
||||||
|
return ( |
||||||
|
<> |
||||||
|
<header> |
||||||
|
ساعات حضور |
||||||
|
</header> |
||||||
|
</> |
||||||
|
) |
||||||
|
} |
||||||
|
|
||||||
|
export default Presents |
@ -0,0 +1,54 @@ |
|||||||
|
import React from "react"; |
||||||
|
import camera from "../../assets/camera.svg"; |
||||||
|
import chat from "../../assets/chat.svg"; |
||||||
|
import phone from "../../assets/phone.svg"; |
||||||
|
|
||||||
|
import "./Request.scss"; |
||||||
|
|
||||||
|
const Request = () => { |
||||||
|
const requestItem = [ |
||||||
|
{ |
||||||
|
title: "تماس تصویری", |
||||||
|
icon: camera, |
||||||
|
alt: "تماس تصویری ", |
||||||
|
bgColor: "#A8E03D50", |
||||||
|
color: '#A8E03D', |
||||||
|
}, |
||||||
|
{ |
||||||
|
title: "چت", |
||||||
|
icon: chat, |
||||||
|
alt: "چت و صحبت با کاربران", |
||||||
|
bgColor: "#08E3E450", |
||||||
|
color: '#08E3E4', |
||||||
|
}, |
||||||
|
{ |
||||||
|
title: "تماس صوتی", |
||||||
|
icon: phone, |
||||||
|
alt: "تماس صوتی به تلفن همراه", |
||||||
|
bgColor: "#F8767450", |
||||||
|
color: '#F87674', |
||||||
|
}, |
||||||
|
]; |
||||||
|
return ( |
||||||
|
<> |
||||||
|
<section className="navContianer"> |
||||||
|
<header className="navItems"> |
||||||
|
{requestItem.map((item) => ( |
||||||
|
<nav className="navItem"> |
||||||
|
<span |
||||||
|
style={{ backgroundColor: item.bgColor }} |
||||||
|
className="backgroundColorIcon" |
||||||
|
> |
||||||
|
<img alt={item.alt} src={item.icon} /> |
||||||
|
</span> |
||||||
|
<p className="title">{item.title}</p> |
||||||
|
</nav> |
||||||
|
))} |
||||||
|
</header> |
||||||
|
<button className="btnRequest">ارسال درخواست به صندوق پیام</button> |
||||||
|
</section> |
||||||
|
</> |
||||||
|
); |
||||||
|
}; |
||||||
|
|
||||||
|
export default Request; |
@ -0,0 +1,38 @@ |
|||||||
|
.navContianer { |
||||||
|
border-radius: 15px; |
||||||
|
width: 95%; |
||||||
|
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px; |
||||||
|
text-align: center; |
||||||
|
margin: 0 auto 1.5rem auto; |
||||||
|
.navItems { |
||||||
|
// border: gray solid 1.5px; |
||||||
|
display: flex; |
||||||
|
justify-content: space-around; |
||||||
|
align-items: center; |
||||||
|
padding: 1.5rem 0.5rem 0.5rem 0.75rem; |
||||||
|
} |
||||||
|
|
||||||
|
.navItem { |
||||||
|
text-align: center; |
||||||
|
.backgroundColorIcon { |
||||||
|
box-shadow: rgba(0, 0, 0, 0.1) 0px 6px 12px; |
||||||
|
border-radius: 7px; |
||||||
|
padding: 1rem; |
||||||
|
} |
||||||
|
|
||||||
|
.title { |
||||||
|
margin-top: 1.5rem; |
||||||
|
font-size: 13px; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.btnRequest { |
||||||
|
border: #6146c6 solid 1.5px; |
||||||
|
background-color: #fff; |
||||||
|
border-radius: 7px; |
||||||
|
padding: 0.5rem 2.5rem; |
||||||
|
margin-bottom: 1rem; |
||||||
|
color: #6146c6; |
||||||
|
font-size: 13px; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,8 @@ |
|||||||
|
import React from "react"; |
||||||
|
import ReactDOM from "react-dom"; |
||||||
|
import App from "./App"; |
||||||
|
import "bootstrap/dist/css/bootstrap.css"; |
||||||
|
import "./index.scss"; |
||||||
|
|
||||||
|
|
||||||
|
ReactDOM.render(<App />, document.getElementById("root")); |
@ -0,0 +1,7 @@ |
|||||||
|
body{ |
||||||
|
margin-top: 10rem; |
||||||
|
margin-bottom: 10rem; |
||||||
|
padding: 0; |
||||||
|
font-family: 'IranSans'; |
||||||
|
direction: rtl; |
||||||
|
} |