index.css 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. *{margin:0;padding:0;box-sizing:border-box;}
  2. html, body{
  3. height: 100vh;
  4. width: 100vw;
  5. background: black;
  6. }
  7. .grid{
  8. display: grid;
  9. grid-template-columns: 1fr 1fr;
  10. grid-template-rows: 1fr 1fr;
  11. height: 100vh;
  12. width: 100vw;
  13. grid-template-areas:
  14. "topLeft topRight"
  15. "bottomLeft bottomRight";
  16. gap: 2px;
  17. }
  18. .grid > *{
  19. background: black;
  20. min-height: 0;
  21. min-width: 0;
  22. overflow: hidden;
  23. }
  24. .topLeft{
  25. display: flex;
  26. flex-direction: column;
  27. justify-content: space-around;
  28. align-items: center;
  29. grid-area: topLeft;
  30. color: white;
  31. }
  32. .topRight{
  33. display: flex;
  34. align-items: center;
  35. justify-content: center;
  36. grid-area: topRight;
  37. }
  38. .bottomRight{
  39. grid-area: bottomRight;
  40. }
  41. #date{
  42. font-size: 2.2em;
  43. }
  44. #time{
  45. font-size: 1.8em;
  46. text-align: center;
  47. }
  48. .weather{
  49. display: flex;
  50. justify-content: space-around;
  51. width: 100%;
  52. }
  53. .weatherBlock{
  54. display: flex;
  55. justify-content: space-around;
  56. align-items: center;
  57. position: relative;
  58. padding-top: 35px;
  59. width: 50%;
  60. }
  61. .weatherBlock h2{
  62. position: absolute;
  63. top: 0;
  64. left: 0;
  65. width: 100%;
  66. text-align: center;
  67. }
  68. .topRight img{
  69. height: 95%;
  70. }
  71. .bottomRight iframe{
  72. width: 100%;
  73. height: 100%;
  74. }