-
Notifications
You must be signed in to change notification settings - Fork 12
Homework#1 [Done] #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
a34bebb
074a21c
79c0e70
33b31d3
81dc8b8
8c7b0b9
94a7b9d
b7bf5a7
c2c00bc
2dba840
75dfe52
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 °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"> | ||
| <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°C</p><p class="night-props">18°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°C</p><p class="night-props">20°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°C</p><p class="night-props">27°C</p> | ||
| </li> | ||
| </ul> | ||
| </div> | ||
| </div> | ||
| </article> | ||
| </body> | ||
| </html> | ||
| 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; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just out of curiosity - isn't
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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; | ||
| } | ||
There was a problem hiding this comment.
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 👍