Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release 1.0.6 ver #34

Merged
merged 7 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified public/favicon.ico
Binary file not shown.
6 changes: 5 additions & 1 deletion src/assets/icons/User.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icons/down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/assets/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import PublicFacilities from '@/assets/icons/publicFacilities.svg';
import MaintenanceCost from '@/assets/icons/maintenanceCost.svg';
import Survey from '@/assets/icons/survey.svg';
import Setting from '@/assets/icons/setting.svg';
import Down from '@/assets/icons/down.svg';

export {
Notification,
Expand All @@ -32,4 +33,5 @@ export {
MaintenanceCost,
Survey,
Setting,
Down,
};
44 changes: 40 additions & 4 deletions src/components/admin/visitor/VisitorSearch.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Down } from '@/assets/icons';
import { getSearchVisitors } from '@/pages/api/visitor/visitorRequests';
import theme from '@/styles/theme';
import { VisitorSearchProps } from '@/types/visitor/visitor';
Expand Down Expand Up @@ -56,10 +57,13 @@ function VisitorSearch({ setVisitorList, setPage }: VisitorSearchProps) {
<div css={container}>
<p>검색</p>
<div css={searchForm}>
<select onChange={(e) => onChangeSelectHandler(e)}>
<option value="COMPANY">입주사명</option>
<option value="VISITOR">방문자명</option>
</select>
<div css={selectDivStyles}>
<select id="data" onChange={(e) => onChangeSelectHandler(e)}>
<option value="COMPANY">입주사명</option>
<option value="VISITOR">방문자명</option>
</select>
<Down />
</div>
<input
type="text"
placeholder={
Expand Down Expand Up @@ -91,6 +95,17 @@ const container = css`
}
`;

const selectDivStyles = css`
display: flex;
justify-content: space-between;
align-items: center;
height: 44px;
border-radius: 8px;
border: 1px solid ${theme.palette.greyscale.grey30};
padding: 011px;
word-break: keep-all;
`;

const searchForm = css`
display: flex;
align-items: center;
Expand All @@ -104,6 +119,27 @@ const searchForm = css`
padding: 10px 11px;
word-break: keep-all;
}
select {
border: 0; //기본 스타일 제거

-webkit-appearance: none; /* for chrome */

-moz-appearance: none; /*for firefox*/

appearance: none;

box-sizing: border-box; //select 박스의 크기 방식 지정.

background: transparent; //배경색 투명 처리
}

select::-ms-expand {
display: none; /*for IE10,11*/
}

select:focus {
outline: none;
}

input {
width: 290px;
Expand Down
5 changes: 5 additions & 0 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ function Document() {
return (
<Html lang="ko">
<Head />
<meta property="og:title" content="오피스너" />
<meta property="og:description" content="편리한 오피스 생활의 시작" />
<meta property="og:url" content="officener.vercel.app" />

<title>Officener</title>
<body>
<Main />
<NextScript />
Expand Down