Skip to content

Commit 3049368

Browse files
committed
improved styling
1 parent 462db86 commit 3049368

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

src/App.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ body {
1313

1414
.App {
1515
display: flex;
16-
height: 85vh;
17-
margin: 50px auto;
16+
/* height: 500px; */
17+
margin: 10px auto;
1818
width: 50vw;
1919
justify-content: space-around;
2020
align-items: center;
@@ -26,4 +26,5 @@ body {
2626
.header {
2727
text-align: center;
2828
font-size: 64px;
29+
margin-bottom: 150px;
2930
}

src/components/Array/Array.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.array-container {
22
display: flex;
33
flex-wrap: wrap;
4-
width: 100%;
4+
width: 120%;
55
justify-content: space-evenly;
6+
margin-bottom: 50px;
67
}

src/components/ArrayItem/ArrayItem.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import React from 'react';
22
import './ArrayItem.css';
33
const ArrayItem = ({ item, result }) => {
4-
let className = '';
4+
let className = 'array-item';
55
if (item == result) {
6-
className = 'result';
6+
className += ' result';
77
}
88
return (
9-
<div className='array-item'>
10-
<p className={className}>{item}</p>
9+
<div className={className}>
10+
<p>{item}</p>
1111
</div>
1212
);
1313
};

src/components/SearchBox/SearchBox.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
padding: 25px;
1212
border: none;
1313
min-width: 250px;
14+
margin-bottom: 100px;
1415
position: relative;
1516
}
1617
#search-button {
18+
margin-bottom: 100px;
1719
text-decoration: none;
1820
cursor: pointer;
1921
outline: none;

0 commit comments

Comments
 (0)