Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
ajout du nouveau menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnivtwelve authored Aug 12, 2022
1 parent 485d829 commit 0ba14dd
Show file tree
Hide file tree
Showing 16 changed files with 273 additions and 213 deletions.
Binary file added assets/about.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
154 changes: 115 additions & 39 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,23 @@ body {

:root {
--safe-space: 20px;
--safe-space-top: 15px;
--theme-color: #f9f9f9;
--bg: #00000022;
}

#iOS-cover {
background: #55555555;
-webkit-backdrop-filter: blur(24px);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 35pt;
display: none;
z-index: 9999999;
}

@media only screen
and (min-device-width: 414px)
and (min-device-height: 896px)
Expand All @@ -37,12 +50,23 @@ and (device-width : 428px)
and (device-height : 926px) {
:root {
--safe-space: 34pt;
--safe-space-top: 36px;
}

#iOS-cover {
display: block;
}

#appContent {
--safe-space-top: 55px;
}
}

#appContent {
height: calc(100vh - (57px + var(--safe-space)));
padding-top: var(--safe-space-top);
height: calc(100vh - (57px + (var(--safe-space) + var(--safe-space-top))));
overflow-y: scroll;
z-index: 9;
}

#menuContent {
Expand Down Expand Up @@ -87,7 +111,7 @@ and (device-height : 926px) {
.material-symbols-outlined {
font-variation-settings:
'FILL' 0,
'wght' 600,
'wght' 300,
'GRAD' 0,
'opsz' 48
}
Expand Down Expand Up @@ -181,6 +205,7 @@ and (device-height : 926px) {

#menu {
position: fixed;
display: flex;
top: 0;
left: 0;
width: 100vw;
Expand All @@ -192,42 +217,70 @@ and (device-height : 926px) {
justify-content: flex-end;
align-items: center;
padding-bottom: var(--safe-space);
z-index: 9999999999999999999999;

display: none;

animation: menu 0.3s forwards cubic-bezier(0,0,0,1);

backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
}

#menu.close {
animation: menuClose 0.15s forwards cubic-bezier(0,0,0,1);
}

#menuTabs {
width: 90vw;
position: absolute;
top: 0;
left: 0;
height: 100%;
background: #fff;
animation: menuTabs 0.3s forwards cubic-bezier(0,0,0,1);
pointer-events: all;
}

#menuTabs * {
animation: none;
border-radius: 0;
}

@keyframes menu {
0% {
background-color: #00000000;
backdrop-filter: blur(0px);
-webkit-backdrop-filter: blur(0px);
}
100% {
background-color: #00000052;
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
}
}

#menu.close #menuTabs {
animation: menuTabsClose 0.2s forwards;
}

@keyframes menuTabs {
0% {
left: -90vw;
}
100% {
left: 0vw;
}
}

@keyframes menuTabsClose {
0% {
left: 0vw;
}
100% {
left: -90vw;
}
}

@keyframes menuClose {
0% {
background-color: #00000052;
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
}
100% {
background-color: #00000000;
backdrop-filter: blur(0px);
-webkit-backdrop-filter: blur(0px);
}
}

Expand All @@ -239,10 +292,6 @@ and (device-height : 926px) {
animation: modal 0.3s forwards cubic-bezier(0,0,0,1);
}

#menu.close .modal {
animation: modalClose 0.15s forwards;
}

@keyframes modal {
0% {
transform: translateY(50px);
Expand All @@ -252,26 +301,17 @@ and (device-height : 926px) {
}
}

@keyframes modalClose {
0% {
transform: translateY(0px);
}
100% {
transform: translateY(20px);
opacity: 0%;
}
}

.linkList {
display: block;
margin-top: -12px;
}

.tabLink {
display: flex;
align-items: center;
border-bottom: 1px solid #00000020;
border-radius: 0px;
padding: 12px 0px;
padding: 15px 0px;
}

.tabLink:active {
Expand All @@ -284,16 +324,20 @@ and (device-height : 926px) {
}

.tabLink p {
font-weight: 500;
font-weight: 600;
font-size: 16px;
margin: 0;
}

.time {
margin-bottom: 14px;
width: calc(90vw - 50px);
padding: 14px 25px;
padding: 15px 25px;
display: flex;
align-items: center;
border-top: #00000022 1px solid;
position: absolute;
bottom: 0;
padding-bottom: var(--safe-space);
}

.time * {
Expand Down Expand Up @@ -329,29 +373,36 @@ and (device-height : 926px) {
.user {
margin-bottom: 14px;
width: 90vw;
background-position: center;
background-size: cover;
background-position: top !important;
background-size: cover !important;
background-repeat: no-repeat !important;
}

#userModalOver {
display: flex;
padding: 15px;
align-items: center;
flex-direction: column;
padding-top: var(--safe-space-top);
padding-bottom: 18px;
padding-right: 10px;
align-items: flex-start;
background-color: #00000077;
border-radius: 15px;
border-radius: 0px;
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
width: calc(90vw - 30px);
width: calc(90vw - 35px);
overflow: hidden;
padding-left: 25px;
}

#userAvatar {
background-color: #555;
margin-top: 18px;
width: 48px;
min-width: 48px !important;
height: 48px;
border-radius: 100px;
object-fit: cover;
margin-bottom: 10px;
}

.user * {
Expand All @@ -360,7 +411,7 @@ and (device-height : 926px) {
}

.userInfo {
margin-left: 15px;
/* margin-left: 15px; */
width: calc(90vw - 30px - 60px);
}

Expand All @@ -386,6 +437,8 @@ and (device-height : 926px) {
padding-left: 5vw;
}



@keyframes show {
from {
opacity: 0;
Expand All @@ -398,7 +451,7 @@ and (device-height : 926px) {
}

.cours {
background-color: #fff;
background-color: #ffffff;
box-shadow : 0px 1px 2px rgba(0, 0, 0, 0.15);
width: 90vw;
border-radius: 8px;
Expand Down Expand Up @@ -620,11 +673,23 @@ a {
background: #151920;
}

#iOS-cover {
background: #15192055;
}

#menuContent {
background: #1C212B;
border-top: 1px solid rgba(255, 255, 255, 0.1);
color: #fff;
}

#menuTabs {
background: #1C212B;
}

.time {
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

:root {
--theme-color: #151920;
Expand Down Expand Up @@ -713,4 +778,15 @@ a {
text-overflow: unset;
white-space: unset;
line-height: 18px;
}

.settings {
position: absolute;
right: 25px;
top: calc(20px + var(--safe-space-top));
opacity: 0.5;
}

.settings:active {
opacity: 0.2;
}
Loading

0 comments on commit 0ba14dd

Please sign in to comment.