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

[jeongminsang] UI 작업 #27

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"axios": "^1.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.8.0",
"react-router-dom": "^6.11.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
Expand Down
76 changes: 76 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
body {
background-color: #cae9ff;
}
.App {
display: flex;
flex-direction: column;
margin: 20px auto;
max-width: 600px;
padding: 10px;
}
.container {
display: flex;
flex-direction: row;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저는 block이 기본값인 요소에 flex 넣을 때 flex-direction 안 넣고 작업해왔는데 혹시 이 속성을 쓸때랑 안쓸때의 차이가 있나요?

background-color: #fff;
border-radius: 30px;
}
h2 {
font-size: 30px;
text-align: center;
width: 430px;
margin: 0 auto;
margin-top: 50px;
margin-bottom: 50px;
}
input {
width: 100%;
font-weight: 400;
padding-left: 30px;
outline: none;
border: none;
padding: 20px 20px 20px 0px;
}
ul {
background-color: #fff;
list-style: none;
border-radius: 20px;
padding: 20px;
margin-top: 10px;
}
li {
display: flex;
flex-direction: row;
align-items: center;
border-radius: 20px;
padding: 5px;
margin: 10px 0;
}
.suggestion__title {
color: grey;
font-size: 12px;
}
.search-icon {
margin-right: 10px;
}
.search-icon__input {
width: 50px;
padding: 22px 0px 0px 15px;
}
button {
background-color: #007be9;
color: #ffffff;
cursor: pointer;
border: none;
border-radius: 0 30px 30px 0;
padding: 20px;
width: 90px;
}
.empty-list {
display: flex;
flex-direction: column;
background-color: #ffffff;
border-radius: 20px;
padding: 20px;
height: 20px;
margin-top: 10px;
}
1 change: 1 addition & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import SearchBar from './pages/SearchBar';
import './App.css';

function App() {
return (
Expand Down
4 changes: 2 additions & 2 deletions src/components/SearchBarInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import React from 'react';
const SearchBarInput = ({ keyword, handleInputChange, handleKeyDown }) => {
return (
<input
type="text"
type="search"
value={keyword}
onChange={handleInputChange}
onKeyDown={handleKeyDown}
placeholder="search"
placeholder="질환명을 입력해주세요"
/>
);
};
Expand Down