Skip to content
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tigran Kirakosov/assets/images/bg/Tokyo-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tigran Kirakosov/assets/images/graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tigran Kirakosov/assets/images/icons/cloudy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tigran Kirakosov/assets/images/icons/sun-ico.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tigran Kirakosov/assets/images/icons/sunny.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions Tigran Kirakosov/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Dosis:200,300,400,600&display=swap" rel="stylesheet">
<title>Tokyo Weather Widget</title>
</head>
<body>
<article class="weather-container_main">
<div class="weather-container_widget">
<div class="weather-container_first-half">
<div class="current-weather__state"><img class="current-weather__state_image" src="./assets/images/icons/sun-ico.png" alt="sun icon"></div>
<p class="current-weather__desc">Sunny</p>
<p class="current-weather__date">Tokyo - Wednesday, July 31</p>
</div>
<div class="weather-container_second-half">
<div class="current-weather__temperature"><p>28 &deg;C</p></div>
<div class="current-weather__graph"><img class="current-weather__graph_image" src="./assets/images/graph.png" alt="weather graph"></div>
<ul class="current-weather__next-days">

Choose a reason for hiding this comment

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

yeah, that's what I meant 👍

<li class="day">
<img class="day_symb" src="./assets/images/icons/sunny.png" alt="sunny icon"><div class="current-weather__day day-props">Thu</div><p class="day-props">28&deg;C</p><p class="night-props">18&deg;C</p>
</li>
<li class="day">
<img class="day_symb" src="./assets/images/icons/cloudy.png" alt="cloudy icon"><p class="current-weather__day day-props">Fri</p><p class="day-props">22&deg;C</p><p class="night-props">20&deg;C</p>
</li>
<li class="day">
<img class="day_symb" src="./assets/images/icons/cloudy.png" alt="cloudy icon"><p class="current-weather__day day-props">Sat</p><p class="day-props">30&deg;C</p><p class="night-props">27&deg;C</p>
</li>
</ul>
</div>
</div>
</article>
</body>
</html>
122 changes: 122 additions & 0 deletions Tigran Kirakosov/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
ul, li {
list-style: none;
}
/* Highier level containers states */
.weather-container_main {
width: 800px;
height: 600px;
margin: auto;
padding: 80px 110px;
font-family: 'Dosis', sans-serif;
font-weight: normal;
background-image: url("./assets/images/bg/Tokyo-bg.png");
border-radius: 10px;
color: white;
cursor: default;

Choose a reason for hiding this comment

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

just out of curiosity - isn't cursor: default for <article>?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, I did it in order to prevent cursor change on text hovering. I feel like its better for a user not to think about widget like its something common to the rest of the environment, but instead something different. I may be wrong, but for me, it feels right

Choose a reason for hiding this comment

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

Ok, actually I don't have any concerns about that 👍

}
.weather-container_widget {
display: flex;
flex-flow: column wrap;
width: 580px;
height: 437px;
border-radius: 5px;
-webkit-box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.75);
box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.55);
}
/* First container state */
.weather-container_first-half {
display: flex;
flex-direction: column;
height: 100%;
width: 290px;
text-align: center;
background-image: url("./assets/images/bg/Tokyo-bg-inner.png");
border-right: 1px solid rgba(51, 33, 38);
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
.current-weather__state {
flex: 3;
padding-top: 43px;
}
.current-weather__state_image {
width: 142px;
height: 142px;
}
.current-weather__desc {
flex: 1;
padding-top: 24px;
font-weight: 200;
font-size: 36px;
background: rgba(53, 27, 36, 0.9);
}
.current-weather__date {
flex: 1;
padding-top: 40px;
font-weight: 300;
font-size: 22px;
background: rgba(119, 25, 33, 0.9);
border-bottom-left-radius: 5px;
}
/* Second container state */
.weather-container_second-half {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
height: 100%;
max-width: 100%;
width: 290px;
padding-bottom: 5px;
background: white;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
.current-weather__temperature {
font-weight: 200;
font-size: 101px;
color: #7b1f27;
border-bottom: 1px solid #7b1f27;
}
.current-weather__graph {
border-bottom: 1px solid #7b1f27;
}
.current-weather__graph_image {
position: relative;
bottom: 15px;
}
.current-weather__next-days {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 210px;
font-weight: 600;
font-size: 16px;
}
.day {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}
.current-weather__day {
width: 45px;
padding-bottom: 10px;
text-align: center;
border-bottom: 1px solid #7b1f27;
}
.day-props {
margin-top: 10px;
color: #7b1f27;
}
.night-props {
margin-top: 5px;
padding-bottom: 5px;
color: #332126;
}