-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from PLADI-ALM/feat/PDW-39-manager-office
[PDW-39/Feat] 관리자 검색 바 Component 생성 및 페이지 UI 구현
- Loading branch information
Showing
8 changed files
with
158 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
import SearchInputImage from "../../assets/images/SearchInput.svg" | ||
import SearchButtonImage from "../../assets/images/SearchPlus.svg" | ||
|
||
|
||
|
||
const Container = styled.div` | ||
background: none; | ||
width: 100%; | ||
height: 50px; | ||
display: inline-flex; | ||
align-items: center; | ||
margin-bottom: 20px; | ||
` | ||
|
||
const ManageSearchContainer = styled.div` | ||
width: 85%; | ||
height: 100%; | ||
display: flex; | ||
align-items: center; | ||
border-radius: 8px; | ||
border: 1px solid #FFF; | ||
background: #FFF; | ||
margin-right: 20px; | ||
` | ||
const ManageSearchImage = styled.img` | ||
width: 30px; | ||
height: 30px; | ||
` | ||
|
||
const ManageSearchText = styled.input` | ||
width: 100%; | ||
height: 100%; | ||
background: none; | ||
border: none; | ||
` | ||
|
||
const ManageSearchButton = styled.button` | ||
width: 15%; | ||
height: 100%; | ||
border-radius: 8px; | ||
background: #8741CB; | ||
display: flex; | ||
align-items: center; | ||
` | ||
|
||
const ManageSearchButtonImage = styled.img` | ||
width: 20px; | ||
height: 20px; | ||
border-radius: 12px; | ||
border: 1px dashed var(--gray-300, #D0D5DD); | ||
margin: 0 15px 0 15px | ||
` | ||
|
||
const ManageSearchButtonLabel = styled.label` | ||
color: white; | ||
font-size: 20px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 16px; | ||
` | ||
|
||
|
||
|
||
function ManageSearchBar(props) { | ||
return( | ||
<Container> | ||
<ManageSearchContainer> | ||
<ManageSearchImage src={SearchInputImage} /> | ||
<ManageSearchText placeholder="이름 검색" /> | ||
</ManageSearchContainer> | ||
<ManageSearchButton> | ||
<ManageSearchButtonImage src={SearchButtonImage} /> | ||
<ManageSearchButtonLabel>{props.buttonTitle}</ManageSearchButtonLabel> | ||
</ManageSearchButton> | ||
</Container> | ||
); | ||
} | ||
|
||
export default ManageSearchBar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from "react"; | ||
import { useState, useEffect } from "react"; | ||
import axios from "axios"; | ||
import { RightContainer, TitleText, WhiteContainer } from "components/rightContainer/RightContainer"; | ||
import { Bar, BookedTable, BookedThead, TableContainer } from "../bookedList/BookedList"; | ||
import OfficeManageTableCell from "./OfficeManageTableCell"; | ||
import ManageSearchBar from "components/searchBar/ManageSearchBar"; | ||
|
||
|
||
function OfficeManage(props) { | ||
|
||
|
||
return ( | ||
<RightContainer> | ||
<TitleText>{props.title}</TitleText> | ||
<ManageSearchBar buttonTitle="자원 추가"/> | ||
|
||
<WhiteContainer> | ||
<Bar /> | ||
<TableContainer> | ||
<BookedTable> | ||
<BookedThead> | ||
<tr> | ||
<th width="20%">회의실명</th> | ||
<th width="20%">위치</th> | ||
<th width="20%">수용인원</th> | ||
<th width="40%">설명</th> | ||
</tr> | ||
</BookedThead> | ||
<tbody> | ||
<OfficeManageTableCell name={"회의실1"} location={"S1350"} capacity={"7"} description={"분명 추석 연휴가 긴 줄 알았는데 눈깜빡하니까 학교가겠"}/> | ||
</tbody> | ||
</BookedTable> | ||
</TableContainer> | ||
</WhiteContainer> | ||
</RightContainer> | ||
); | ||
} | ||
|
||
export default OfficeManage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import { BookedLineTr } from '../bookedList/BookedList'; | ||
|
||
|
||
|
||
|
||
function OfficeManageTableCell(props) { | ||
|
||
return ( | ||
<BookedLineTr> | ||
<td width="20%"><Link to={`/manage/office/${props.id}`}>{props.name}</Link></td> | ||
<td width="20%">{props.location}</td> | ||
<td width="20%">{props.capacity}</td> | ||
<td width="40%">{props.description}</td> | ||
</BookedLineTr> | ||
) | ||
} | ||
|
||
export default OfficeManageTableCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters