-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
74 lines (68 loc) · 2.12 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import React from "react";
import add_circle from "./resources/add_circle.svg";
import Pagination from "./Pagination";
import Toggle from "./Toggle";
import Location from "./Location";
import Temp from "./Temp";
import Picture from "./Picture";
import Hero from "./Hero";
import Graph from "./Graph";
import Humidity from "./Humidity";
import Wind from "./Wind";
import Precipitation from "./Precipitation";
import UV from "./UV";
import FeelsLike from "./Feelslike";
import ChanceOfRain from "./ChanceOfRain";
import Mobile from "./resources/mobile/Mobile";
const App = () => {
const isDesktop = window.matchMedia('(min-width: 768px)').matches;
if (!isDesktop) {
return (
<Mobile/>
);
}
return (
<div className="bg-primary h-screen w-screen flex justify-center items-center overflow-hidden">
<div className="flex justify-end rounded-[38px] bg-ternary h-5/6 w-[90%] overflow-hidden">
<div className="flex flex-col h-6/6 w-2/6">
{/* Top section */}
<div className="flex flex-row flex-wrap justify-between align-middle items-center">
<img src={add_circle} className="h-7 w-7 mt-7 ml-5"></img>
<Pagination totalPages={3} />
<Toggle />
</div>
{/* Location section */}
<div>
<Location />
<Temp />
<Picture />
</div>
</div>
<div className="rounded-[38px] bg-secondary h-6/6 w-4/6">
{/* HERO SECTION */}
<div className="flex flex-col">
<Hero name={"Isabella"} />
<Graph />
</div>
{/* More details */}
<div>
<p className="font-custom text-black font-black ml-12">
More details of today's weather
</p>
<div className="flex flex-row">
<Humidity />
<Wind />
<Precipitation />
</div>
<div className="flex flex-row">
<UV />
<FeelsLike />
<ChanceOfRain />
</div>
</div>
</div>
</div>
</div>
);
};
export default App;