Skip to content

Commit

Permalink
Chore: UserSelectCard 컴포넌트 아이콘 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
PortalCube committed Nov 16, 2023
1 parent 5fef48f commit b2d5d62
Showing 1 changed file with 16 additions and 28 deletions.
44 changes: 16 additions & 28 deletions src/components/UserDashBoard/UserSelectCard.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import { useState } from "react";
import PropTypes from "prop-types";
import styled from "styled-components";
import Icondoctor from "../../assets/icons/icondoctor.png";
import Iconmajor from "../../assets/icons/iconmajor.png";
import Iconhospital from "../../assets/icons/iconhospital.png";
import DoctorImage from "../../assets/images/user/Odoctor.png";
import TherapistImage from "../../assets/images/user/Otherapist.png";
import { ReservationCreateModal } from "../Reservation/ReservationCreateModal";
import { useDispatch } from "react-redux";
import { show } from "../../redux/modalSlice.js";

import { FaUser } from "react-icons/fa";
import { MdLocalHospital, MdLocationOn } from "react-icons/md";

const Card = styled.div`
width: 280px;
border: 1px solid #e1e1e1;
Expand All @@ -18,7 +16,6 @@ const Card = styled.div`
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
margin: 20px;
font-family: "Spoqa Han Sans Neo", "sans-serif";
background-color: #ffffff;
`;

Expand Down Expand Up @@ -52,14 +49,18 @@ const Avatar = styled.img`
const UserName = styled.span`
font-size: 30px;
font-weight: bold;
font-family: "Spoqa Han Sans Neo", "sans-serif";
`;

const Info = styled.div`
font-family: "Spoqa Han Sans Neo", "sans-serif";
font-size: 12px;
margin-bottom: 10px;
text-align: left;
& > svg {
height: 16px;
width: 16px;
margin-right: 5px;
vertical-align: middle;
}
`;

const Button = styled.button`
Expand All @@ -74,17 +75,6 @@ const Button = styled.button`
font-size: 12px;
`;

const Icon = styled.img`
height: 12px;
width: 12px;
margin-right: 5px;
vertical-align: middle;
`;

const MidSection = styled.div`
background-color: rgba(0, 100, 255, 0.03);
`;

export const UserSelectCard = ({
id,
role,
Expand All @@ -109,21 +99,19 @@ export const UserSelectCard = ({
<Card>
<Title>담당 {role} 프로필</Title>
<Separator />
<MidSection>
<ImageContainer>
<Avatar src={image} alt="avatar" />
</ImageContainer>
<UserName>{name}</UserName>
</MidSection>
<ImageContainer>
<Avatar src={image} alt="avatar" />
</ImageContainer>
<UserName>{name}</UserName>
<Separator />
<Info>
<Icon src={Icondoctor} alt="icon" /> {role}
<FaUser /> {role}
</Info>
<Info>
<Icon src={Iconhospital} alt="icon" /> {hospital}
<MdLocalHospital /> {hospital}
</Info>
<Info>
<Icon src={Iconmajor} alt="icon" /> {department}
<MdLocationOn /> {department}
</Info>
<Separator />
<Button onClick={handleClick}>진료 예약</Button>
Expand Down

0 comments on commit b2d5d62

Please sign in to comment.