Skip to content

Commit 8874e91

Browse files
committed
bootstrap added
1 parent 4b1fe87 commit 8874e91

File tree

6 files changed

+71
-21
lines changed

6 files changed

+71
-21
lines changed

package-lock.json

Lines changed: 29 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
@@ -6,6 +6,7 @@
66
"@testing-library/jest-dom": "^5.17.0",
77
"@testing-library/react": "^13.4.0",
88
"@testing-library/user-event": "^13.5.0",
9+
"bootstrap": "^5.3.3",
910
"react": "^18.3.1",
1011
"react-dom": "^18.3.1",
1112
"react-scripts": "5.0.1",

public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
name="description"
88
content="Weather application react-app"
99
/>
10+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
1011
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
1112

1213

src/App.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sunny from './images/sun.png'
2-
import './App.css';
2+
import './index.css';
33

44
export default function App() {
55
return (
@@ -18,10 +18,11 @@ export default function App() {
1818
<div className='weather-icon'>
1919
<img src={sunny} alt='sunny' />
2020
</div>
21-
<div className='date'>Friday, <strong> July 30,</strong> 2024</div>
22-
<div className='weather-description'>Clear & Sunny</div>
2321
<div className='temp'>30° C</div>
2422

23+
<div className='weather-description'>Clear & Sunny</div>
24+
25+
<div className='date'>Friday July 30, 2024</div>
2526
<div className='weather-details'>
2627
<div className='humidity'>Humidity
2728
<div>
@@ -33,6 +34,14 @@ export default function App() {
3334
</div>
3435

3536
</div>
37+
<div className='forecast-box'>
38+
<div className='box-column'>
39+
<div className='day-one'>day one forecast</div>
40+
<div className='day-two'>day 2 forecast</div>
41+
<div className='day-three'>day 3</div>
42+
</div>
43+
44+
</div>
3645
</div>
3746

3847
<footer>

src/index.css

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
height: 100vh;
1313
background-image:#fdb44b;
1414
display: flex;
15-
z-index: -1;
1615
justify-content: center;
1716
align-items: center;
1817
}
@@ -21,7 +20,7 @@
2120

2221
min-width:fit-content;
2322
max-width: 35rem;
24-
max-height: 100vh;
23+
max-height: 120vh;
2524
padding: 2em;
2625
box-shadow: -2px 18px 24px 6px rgba(0, 0, 0, 0.7);
2726
border-radius: 2em;
@@ -71,6 +70,7 @@
7170
}
7271
.search-bar{
7372
display:block;
73+
padding-bottom: .5em;
7474
position: relative;
7575
margin-left: 1.5em;
7676
margin-right: 1.5em;
@@ -102,17 +102,24 @@ img{
102102
width: 150px;
103103
}
104104
.temp{
105-
font-size: 48px;
106-
font-family:'Segoe UI', monospace;
107-
margin-bottom: .25em;
105+
font-size: 54px;
106+
color: rgb(17, 16, 16);
107+
font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
108108
font-weight: 600;
109+
padding-bottom:.2em;
109110
}
110111
.date{
111-
margin-bottom: 1em;
112+
margin-bottom: 2em;
113+
margin-top: 1em;
114+
color: rgb(17, 16, 16);
112115
word-spacing: .1em;
116+
font-weight: 200;
113117
}
114118
.weather-description{
115-
font-size: 18px;
119+
font-size: 24px;
120+
font-family: "Bitter", serif;
121+
font-weight: 500;
122+
color: rgb(17, 16, 16);
116123
margin-bottom: .5em;
117124
}
118125
.weather-details{
@@ -126,25 +133,27 @@ img{
126133
}
127134
.humidity, .wind{
128135
background: rgba(225, 225, 226, 0.372);
129-
border-radius: 5px;
136+
border-radius: 15px;
137+
color: rgb(17, 16, 16);
138+
border:2px ridge rgb(33, 43, 50);
139+
padding:5px;
130140
}
131141

132142
.weather-details i{
133143
grid-row: 2;
134-
font-size: 12px;
144+
font-size: 14px;
135145
}
136-
.footer a{
137-
color:rgb(248, 187, .7);
146+
footer{
147+
text-align: center;
148+
letter-spacing: .5px;
149+
}
150+
footer a{
151+
color:rgb(33, 43, 50);
138152
text-decoration: none;
139-
font-size: 12px;
153+
font-size: 14px;
140154
letter-spacing: 1px;
141155
margin-left: 2px;
142156
}
143-
footer{
144-
margin-top: 1.5em;
145-
}
146-
.footer, .footer p{
147-
font-size: 12px;
148-
}
157+
149158

150159

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom/client';
33
import './index.css';
4+
import "bootstrap/dist/css/bootstrap.css";
45
import App from './App';
56
import reportWebVitals from './reportWebVitals';
67

0 commit comments

Comments
 (0)