Skip to content

Commit

Permalink
Enhancement in Widget Menu.
Browse files Browse the repository at this point in the history
Added Glass Overlay Effect in Widget Menu.
Added Photos Section in Widget Menu
  • Loading branch information
anand-3399 committed Oct 8, 2022
1 parent 1980b05 commit 08ba9bc
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 19 deletions.
2 changes: 2 additions & 0 deletions ToDo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add this layout in Widgets Menu.
https://blogs.windows.com/wp-content/uploads/prod/sites/2/2021/06/WIN_Widgets_Light-Theme_16x9_en-US-1-1024x576.png
54 changes: 44 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<source src="img/video.webm" type="video/webm">
</video>


<div class="icons">
<img src="img/icons/chromeicon.png" alt="">
<div>Google Chrome</div>
Expand Down Expand Up @@ -313,6 +314,7 @@
</div>


<!-- <div class="widgetMenu" style="left: 0px;"> -->
<div class="widgetMenu">
<div class="time">
<div class="timedate_Of_Widgets">
Expand All @@ -326,8 +328,10 @@

<div class="AllWidget Wheather">
<div class="topMenuWidget">
<img src="img/icons/cloudyDay.svg" alt="">
<span class="MainApp">Wheather</span>
<div>
<img src="img/icons/cloudyDay.svg" alt="">
<span class="MainApp">Wheather</span>
</div>

<img src="img\icons\more-info.png" class="moreInfo"></img>
</div>
Expand All @@ -351,11 +355,12 @@
</div>
</div>
</div>

<div class="AllWidget MicrosoftEdge">
<div class="topMenuWidget">
<img src="img\icons\edge.svg" alt="">
<span class="MainApp">Microsoft Edge</span>
<div>
<img src="img\icons\edge.svg" alt="">
<span class="MainApp">Microsoft Edge</span>
</div>

<img src="img\icons\more-info.png" class="moreInfo"></img>
</div>
Expand All @@ -371,16 +376,45 @@
</p>
</div>
</div>
<div class="AllWidget"></div>
<div class="AllWidget"></div>
<div class="AllWidget"></div>
<div class="AllWidget"></div>
<div class="AllWidget MicrosoftOneDrive">
<div class="topMenuWidget">
<div>
<img src="img\icons\icons8-microsoft-onedrive-2019.svg" alt="">
<span class="MainApp">Photos</span>
</div>
<img src="img\icons\more-info.png" class="moreInfo"></img>
</div>

<div class="heading">On this Day</div>
<div class="subHeading">
<span>OCT 22</span>
<p>See all</p>
</div>

<div class="Images">
<img src="https://308286-943399-raikfcquaxqncofqfm.stackpathdns.com/wp-content/uploads/2022/03/stylish-standard-whatsapp-dp-for-boys.png"
alt="" style="border-radius: 0 0 0 8px;">


<div>
<span>
<img src="https://c4.wallpaperflare.com/wallpaper/757/370/472/heavy-bike-harley-davidson-harley-davidson-modified-wallpaper-preview.jpg"
alt="">
<img src="https://wallpaperaccess.com/full/124378.jpg" alt=""
style="border-radius: 0 0 8px 0;">
</span>

</div>
</div>

</div>

<div class="AllWidget MicrosoftToDo"></div>
</div>
</div>




</body>
<script src="script.js"></script>

Expand Down
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Menu = document.getElementById("Menu")
startmenu = document.getElementsByClassName("startmenu")[0]

Menu.addEventListener("click", () => {
if (startmenu.style.bottom == "50px") {
startmenu.style.bottom = "-655px"
Expand Down
66 changes: 58 additions & 8 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,11 @@ figure {
position: absolute;
bottom: 50px;
z-index: 90;
background-color: #f2f2f2;
background-color: #f2f2f2c2;
border: 2px solid #f2f2f2;
margin-bottom: 4px;
border-radius: 7px;

backdrop-filter: blur(4px);
}

.timedate_Of_Widgets {
Expand All @@ -427,7 +427,7 @@ figure {
.WidgetsPlace {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(5, 1fr);
/* grid-template-rows: repeat(5, 1fr); */
}

.topMenuWidget {
Expand All @@ -437,10 +437,11 @@ figure {
}

.MainApp {
margin-left: -10rem;
/* margin-left: -10rem; */
}

.topMenuWidget img {
.topMenuWidget img,
.topMenuWidget div img {
width: 13px;
margin-left: 8px;
}
Expand All @@ -451,7 +452,7 @@ figure {
}

.Wheather {
background: linear-gradient(177deg, #f1e6e6, #d6d62a);
background: linear-gradient(135deg, #f1e6e6, #d6d62a);
}

.topMenuWidget {
Expand Down Expand Up @@ -521,7 +522,7 @@ figure {
}

.MicrosoftEdge .MainApp {
margin-left: -8rem;
/* margin-left: -8rem; */
color: black;
}

Expand All @@ -534,8 +535,9 @@ figure {
top: calc(44% - 249px); */

position: relative;
height: 22px;
height: 16px;
top: 0;
width: 15px;
}

.MicrosoftEdge .search {
Expand All @@ -554,4 +556,52 @@ figure {

.MicrosoftEdge .MainContentWindow p img {
width: 1rem;
}

.MicrosoftOneDrive {
background-color: #eae9e9;
margin-top: calc(5% - 29px);
}

.MicrosoftOneDrive .MainApp {
/* margin-left: -11rem; */
color: black;
}

.MicrosoftOneDrive .heading {
font-size: 20px;
margin: 7px;
margin-top: 13px;
}

.MicrosoftOneDrive .subHeading {
display: flex;
justify-content: space-between;
margin: 10px 10px;
}

.MicrosoftOneDrive .subHeading p {
color: blue;
font-weight: 600;
}

.MicrosoftOneDrive .Images img {
width: 49%;
}

.MicrosoftOneDrive .Images {
display: flex;
}

.MicrosoftOneDrive .Images div span img {
width: 99%;
}

.MicrosoftOneDrive .Images div {
display: contents;
}

.MicrosoftOneDrive .Images div span {
display: flex;
flex-direction: column;
}

0 comments on commit 08ba9bc

Please sign in to comment.