doctor profile

master
taha12322 3 years ago
commit 0b8ab1fd8d
  1. 23
      profile/.gitignore
  2. 70
      profile/README.md
  3. 41
      profile/package.json
  4. 13
      profile/public/index.html
  5. 12
      profile/src/App.js
  6. 20
      profile/src/Profile.js
  7. 6
      profile/src/assets/camera.svg
  8. 9
      profile/src/assets/chat.svg
  9. 8
      profile/src/assets/man1.svg
  10. 8
      profile/src/assets/man2.svg
  11. 5
      profile/src/assets/phone.svg
  12. 6
      profile/src/assets/plus.svg
  13. 5
      profile/src/assets/star.svg
  14. 17
      profile/src/components/about-doctor/About.js
  15. 8
      profile/src/components/about-doctor/About.scss
  16. 32
      profile/src/components/comments/Comment/Comment.js
  17. 41
      profile/src/components/comments/Comment/Comment.scss
  18. 75
      profile/src/components/comments/Comments.js
  19. 38
      profile/src/components/comments/comments.scss
  20. 13
      profile/src/components/present/Presents.js
  21. 0
      profile/src/components/present/present.scss
  22. 54
      profile/src/components/request/Request.js
  23. 38
      profile/src/components/request/Request.scss
  24. 8
      profile/src/index.js
  25. 7
      profile/src/index.scss
  26. 12056
      profile/yarn.lock

23
profile/.gitignore vendored

@ -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;

@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" width="27.245" height="18.59" viewBox="0 0 27.245 18.59">
<g id="camera" transform="translate(0.75 0.75)">
<path id="Path_1121" data-name="Path 1121" d="M20.022,12.671A1.056,1.056,0,0,0,19,12.6L15.45,14.2a3.7,3.7,0,0,1,.071.8V25.674a3.7,3.7,0,0,1-.071.8L19,28.067a1,1,0,0,0,.441.1A1.109,1.109,0,0,0,20.022,28a1.09,1.09,0,0,0,.484-.9V13.568A1.09,1.09,0,0,0,20.022,12.671Z" transform="translate(5.239 -11.788)" fill="none" stroke="#a8e03d" stroke-width="1.5"/>
<path id="Path_1122" data-name="Path 1122" d="M15.076,29.09H2.887A3.062,3.062,0,0,1,0,25.886V15.2A3.062,3.062,0,0,1,2.887,12H15.076a3.062,3.062,0,0,1,2.887,3.2V25.886A3.062,3.062,0,0,1,15.076,29.09Z" transform="translate(0 -12)" fill="none" stroke="#a8e03d" stroke-width="1.5"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 802 B

@ -0,0 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" width="22.618" height="22.597" viewBox="0 0 22.618 22.597">
<g id="chat" transform="translate(0.75 0.75)">
<g id="Group_1668" data-name="Group 1668" transform="translate(0 0)">
<g id="Group_1667" data-name="Group 1667" transform="translate(0 0)">
<path id="Path_2712" data-name="Path 2712" d="M90.851,22.993l-1.419-4.129A10.306,10.306,0,0,0,87.516,7.1a10.311,10.311,0,1,0-7.355,17.545h.016A10.351,10.351,0,0,0,84.695,23.6l4.129,1.419a1.608,1.608,0,0,0,.523.088,1.6,1.6,0,0,0,1.5-2.115Z" transform="translate(-69.842 -4.011)" fill="none" stroke="#08e3e4" stroke-width="1.5"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 669 B

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 21 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 10 KiB

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="29.993" height="29.959" viewBox="0 0 29.993 29.959">
<g id="phone" transform="matrix(-0.259, -0.966, 0.966, -0.259, 7.002, 28.971)">
<path id="Path_1113" data-name="Path 1113" d="M22.168,16.743l-3.184-3.184a2.117,2.117,0,0,0-3.525.8,2.167,2.167,0,0,1-2.5,1.364c-2.274-.569-5.344-3.525-5.912-5.913a2.061,2.061,0,0,1,1.364-2.5,2.118,2.118,0,0,0,.8-3.525L6.023.6a2.271,2.271,0,0,0-3.07,0L.792,2.757c-2.16,2.274.227,8.3,5.571,13.644s11.37,7.846,13.644,5.572l2.16-2.16A2.271,2.271,0,0,0,22.168,16.743Z" fill="none" stroke="#f97674" stroke-width="1.5"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 615 B

@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
<g id="plus" transform="translate(-11 -11)">
<path id="Path_3419" data-name="Path 3419" d="M18,12V24" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
<path id="Path_3420" data-name="Path 3420" d="M12,18H24" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 451 B

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="15.839" height="15.104" viewBox="0 0 15.839 15.104">
<g id="star" transform="translate(0 0)">
<path id="Path_192" data-name="Path 192" d="M15.465,17.333l-5.13-.476L8.3,12.125a.411.411,0,0,0-.755,0L5.5,16.857l-5.13.476a.411.411,0,0,0-.233.718l3.871,3.4L2.878,26.478a.411.411,0,0,0,.611.444l4.43-2.631,4.43,2.631a.411.411,0,0,0,.611-.444l-1.133-5.026,3.871-3.4A.411.411,0,0,0,15.465,17.333Z" transform="translate(0 -11.877)" fill="#06e5af"/>
</g>
</svg>

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;
}

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save