Skip to content

Commit fd1aa80

Browse files
committed
scss로 모두 변경
1 parent dec36a6 commit fd1aa80

20 files changed

+608
-146
lines changed

package-lock.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"clean-webpack-plugin": "^3.0.0",
2121
"css-loader": "^3.2.0",
2222
"eslint": "^6.7.2",
23+
"file-loader": "^5.0.2",
2324
"html-webpack-plugin": "^3.2.0",
2425
"mini-css-extract-plugin": "^0.8.0",
2526
"node-sass": "^4.13.0",

src/app.scss

Lines changed: 1 addition & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
body,
2-
ul {
3-
margin: 0;
4-
padding: 0;
5-
}
6-
7-
ul {
8-
list-style: none;
9-
}
10-
11-
img {
12-
width: 100%;
13-
}
1+
@import 'normalize.scss';
142

153
.container {
164
margin: 0 15px 0 15px;
@@ -20,85 +8,6 @@ header {
208
padding: 15px 0 15px 0;
219
text-align: center;
2210
}
23-
24-
input[type=text] {
25-
display: block;
26-
box-sizing: border-box;
27-
width: 100%;
28-
margin: 15px 0 15px 0;
29-
padding: 10px 15px;
30-
font-size: 14px;
31-
line-height: 1.5;
32-
border: 1px solid #cccccc;
33-
34-
}
35-
3611
.content {
3712
border: 1px solid #ccc;
3813
}
39-
40-
.list li {
41-
box-sizing: border-box;
42-
display: block;
43-
padding: 15px;
44-
border-bottom: 1px solid #ccc;
45-
position: relative;
46-
}
47-
48-
.list li:last-child {
49-
border-bottom: none;
50-
}
51-
52-
.list li .number {
53-
margin-right: 15px;
54-
color: #ccc;
55-
}
56-
57-
.list li .date {
58-
position: absolute;
59-
right: 50px;
60-
top: 15px;
61-
margin-right: 15px;
62-
color: #ccc;
63-
}
64-
65-
.list li .btn-remove {
66-
position: absolute;
67-
right: 0px;
68-
top: 15px;
69-
margin-right: 15px;
70-
}
71-
72-
form {
73-
position: relative;
74-
}
75-
76-
.btn-reset,
77-
.btn-remove {
78-
border-radius: 50%;
79-
background-color: #ccc;
80-
color: white;
81-
border: none;
82-
padding: 2px 5px;
83-
}
84-
85-
.btn-reset {
86-
position: absolute;
87-
top: 12px;
88-
right: 10px;
89-
}
90-
91-
.btn-reset::before,
92-
.btn-remove::before {
93-
content: 'X'
94-
}
95-
96-
#search-result li {
97-
display: flex;
98-
margin-bottom: 15px;
99-
}
100-
101-
#search-result img {
102-
width: 30%;
103-
height: 30%;
104-
}

src/images/default-image.jpg

12.9 KB
Loading

src/images/times-circle.png

9.91 KB
Loading

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h2 class="container">검색</h2>
1010
</header>
1111

1212
<div class="container">
13-
<form>
13+
<form class="FormView">
1414
<input type="text" placeholder="검색어를 입력하세요" autofocus>
1515
<button type="reset" class="btn-reset"></button>
1616
</form>

src/models/SearchModel.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
const data = [{
22
id: 1,
3-
name: '[키친르쎌] 홈메이드 칠리소스 포크립 650g',
4-
image: 'https://cdn.bmf.kr/_data/product/H1821/5a4ed4e8a6751cb1cc089535c000f331.jpg'
3+
name: '[버거] 치즈버거처럼 생긴 새우버거',
4+
image: 'https://images.unsplash.com/photo-1547584370-2cc98b8b8dc8?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60'
55
},
66
{
77
id: 2,
8-
name: '[키친르쎌] 이탈리아 파티 세트 3~4인분',
9-
image: 'https://cdn.bmf.kr/_data/product/H503E/300d931e3b8252ed628b6a3c2f56936b.jpg'
8+
name: '[샐러드] 맛있는 색깔의 콥셀러드',
9+
image: 'https://images.unsplash.com/photo-1512621776951-a57141f2eefd?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60'
10+
},
11+
{
12+
id: 3,
13+
name: '[피자] 썸네일 주소가 잘못된 상품',
14+
image: 'http://foo.bar/image.jpg'
1015
}
1116
]
1217

0 commit comments

Comments
 (0)