Skip to content

Commit

Permalink
Footer update
Browse files Browse the repository at this point in the history
  • Loading branch information
VladDergun committed Apr 8, 2024
1 parent bada85f commit 1157abc
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 3 deletions.
Binary file modified _framework/Weather.dll
Binary file not shown.
Binary file modified _framework/Weather.dll.br
Binary file not shown.
Binary file modified _framework/Weather.dll.gz
Binary file not shown.
Binary file modified _framework/Weather.pdb.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions _framework/blazor.boot.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"entryAssembly": "Weather",
"resources": {
"hash": "sha256-70IMo6sZGGm7JX/3uYP8WYZP3HkjqgzFwvao94xRayA=",
"hash": "sha256-12p9DQGPBcvX+BRdZKFldVQ1HUI5sJiP3WUegsq7UMo=",
"runtime": {
"dotnet.7.0.16.kns5mql5af.js": "sha256-F8lwjaVPMjAYJ0euy2kZ7fRuh2vr0eT6miTFbzMhalQ=",
"dotnet.timezones.blat": "sha256-rwyJqJu36keQwNmm/O1XV7tnkkVldIOK8GIjn4gTUt4=",
Expand Down Expand Up @@ -71,7 +71,7 @@
"System.Xml.ReaderWriter.dll": "sha256-yUVpRWFjVzadOG+Iso7e/Cd3+L1DVamnHG40C0+32KA=",
"System.Xml.XDocument.dll": "sha256-7oYZgfSDm99dVCC4cR6NrauPvCS43I1amjmKe3rsEkk=",
"System.Xml.XmlSerializer.dll": "sha256-LRWj9CwahmDSJYYJxD092gnF5xSFwg08tFqKCXFASVQ=",
"Weather.dll": "sha256-yRo6uPKRoQTTm6oocBiRTgO5ILvsLgoR/9tG3PYF6l8="
"Weather.dll": "sha256-jCXxlI6oF79VQOcuH2Srkf+pvIrGiAkOhJuaJGN/DKs="
},
"runtimeAssets": {
"dotnet.wasm": {
Expand Down
Binary file modified _framework/blazor.boot.json.br
Binary file not shown.
Binary file modified _framework/blazor.boot.json.gz
Binary file not shown.
27 changes: 26 additions & 1 deletion css/mainStyles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
padding:0;
margin:0;
}
main {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.header{
width:100%;
z-index:110;
Expand Down Expand Up @@ -187,6 +192,7 @@
flex-direction: row;
gap: 30px;
width: 100%;

}


Expand Down Expand Up @@ -294,7 +300,23 @@
font-family:sans-serif;
color:white;
}
footer {
z-index: 10;
background-color:gray;
width:100%;
}

.footer {
color: white;
display: flex;
align-items: center;
width: 100%;
justify-content: center;
font-family: sans-serif;
gap: 10px;
font-size:16px;

}
@keyframes sun-rotation{
from{
transform: rotate(0deg);
Expand All @@ -321,7 +343,9 @@
.search-dropdown{
width:350px;
}

}

@media (min-width: 800px){
.weather-hour {
min-width: 90px;
Expand Down Expand Up @@ -350,6 +374,7 @@
width:80%;
}


}


Expand All @@ -365,7 +390,7 @@
50% {
transform: translateX(-50%);
}

https://cdn.weatherapi.com/weather/64x64/day/113.png
100% {
transform: translateX(0); /* Adjust based on the width of your background */
}
Expand Down
Binary file added css/weather/weatherapi_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,29 @@ function rotateLine() {
leftScrollButton.addEventListener("click", scrollLeft);
rightScrollButton.addEventListener("click", scrollRight);

let isGrabbed = false;
let grabStartX = 0;
let scrollLeftStart = 0;

const itemContainer = scrollableArea;

itemContainer.addEventListener('mousedown', (e) => {
isGrabbed = true;
grabStartX = e.pageX - itemContainer.offsetLeft;
scrollLeftStart = itemContainer.scrollLeft;
});

itemContainer.addEventListener('mouseleave', () => {
isGrabbed = false;
});

itemContainer.addEventListener('mouseup', () => {
isGrabbed = false;
});

itemContainer.addEventListener('mousemove', (e) => {
if (!isGrabbed) return;
const mouseX = e.pageX - itemContainer.offsetLeft;
const scrollX = mouseX - grabStartX;
itemContainer.scrollLeft = scrollLeftStart - scrollX;
});

0 comments on commit 1157abc

Please sign in to comment.