From a390df8ee656c3c0d94dbbfaf204b7ac22498ad4 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 9 Sep 2022 12:18:11 +0200 Subject: [PATCH 1/2] convert login/register to modal --- src/components/LoginModal.vue | 90 +++++++++++++++++++++++++++++++++ src/components/LoginPage.vue | 70 ------------------------- src/components/NavBar.vue | 22 +++++--- src/components/RegisterPage.vue | 70 ------------------------- src/router/router.js | 4 +- 5 files changed, 108 insertions(+), 148 deletions(-) create mode 100644 src/components/LoginModal.vue delete mode 100644 src/components/LoginPage.vue delete mode 100644 src/components/RegisterPage.vue diff --git a/src/components/LoginModal.vue b/src/components/LoginModal.vue new file mode 100644 index 00000000..589c7bba --- /dev/null +++ b/src/components/LoginModal.vue @@ -0,0 +1,90 @@ + + + diff --git a/src/components/LoginPage.vue b/src/components/LoginPage.vue deleted file mode 100644 index fc3598b2..00000000 --- a/src/components/LoginPage.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 86818752..9d6d48a4 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -32,10 +32,12 @@
  • - -
  • -
  • - +

  • @@ -52,8 +54,12 @@
    - - +

    @@ -78,20 +84,24 @@ :search-text="searchText" @searchchange="onSearchTextChange" /> + diff --git a/src/router/router.js b/src/router/router.js index 29bb7c61..8e04149c 100644 --- a/src/router/router.js +++ b/src/router/router.js @@ -44,12 +44,12 @@ const routes = [ { path: "/login", name: "Login", - component: () => import("../components/LoginPage.vue"), + component: () => import("../components/LoginModal.vue"), }, { path: "/register", name: "Register", - component: () => import("../components/RegisterPage.vue"), + component: () => import("../components/LoginModal.vue"), }, { path: "/feed", From aec6bc9c7d4370db637aaa38beca6f781304078a Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 9 Sep 2022 12:33:19 +0200 Subject: [PATCH 2/2] fix mobile layout --- efy/piped.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/efy/piped.css b/efy/piped.css index a6d2d76a..4805f14d 100644 --- a/efy/piped.css +++ b/efy/piped.css @@ -4,9 +4,9 @@ /*BG: Transparent*/ .video-grid div div, .pp-show-recs div div {background: transparent} -/*BG 1*/ .comment, .video-grid div, .pp-show-recs div, .pp-mobile-nav a, .suggestion-selected, .pp-chapters .chapter:not(.pp-chapter-active, .chapter:hover), .pp-chapters [title=chapters] {background: var(--efy_bg1)} +/*BG 1*/ .comment, .video-grid div, .pp-show-recs div, .pp-mobile-nav a, .pp-mobile-nav p, .suggestion-selected, .pp-chapters .chapter:not(.pp-chapter-active, .chapter:hover), .pp-chapters [title=chapters] {background: var(--efy_bg1)} /*Bold*/ .btn {font-weight: bold} -/*Margin: 0*/ .pp-watch-buttons .btn, .suggestions-container li, .suggestions-container ul, .pp-nav > ul, .pp-mobile-btn i, .pp-mobile-nav a, .modal-container button:first-of-type svg {margin: 0} +/*Margin: 0*/ .pp-watch-buttons .btn, .suggestions-container li, .suggestions-container ul, .pp-nav > ul, .pp-mobile-btn i, .pp-mobile-nav a, .pp-mobile-nav p, .modal-container button:first-of-type svg {margin: 0} /*Text-Align: Center*/ .btn, .pp-import-channel, .pp-sortby-feed, .pp-playlist-add-modal-top, .pp-nav, .pp-nav > div.flex-1.flex.justify-start > a, .pp-watch-bellow-options .flex.items-center, .pp-channel-page-author {align-items: center} {text-align: center} /*Justify-Content: Space-Between*/ .pp-playlist-add-modal-top, .pp-watch-bellow-options, .pp-nav {justify-content: space-between} @@ -16,7 +16,7 @@ /*Border*/ .modal-container, .video-grid>div {border: 1.5px solid var(--efy_bg1);} -/*Text-Fill-Color: Text*/ p, .pp-mobile-nav a, .video-grid div a, .pp-show-recs div a, .thumbnail-left, .thumbnail-right, .comment a, .pp-watch-bellow-options a, .pp-nav > ul a, .pp-nav > div.flex-1.flex.justify-start > a {-webkit-text-fill-color: var(--efy_text); text-decoration: none} +/*Text-Fill-Color: Text*/ p, .pp-mobile-nav a, .pp-mobile-nav p, .video-grid div a, .pp-show-recs div a, .thumbnail-left, .thumbnail-right, .comment a, .pp-watch-bellow-options a, .pp-nav > ul a, .pp-nav > div.flex-1.flex.justify-start > a {-webkit-text-fill-color: var(--efy_text); text-decoration: none} /*Text-Fill-Color: Text2*/ .btn, .btn a, a.btn, .modal button {-webkit-text-fill-color: var(--efy_text2); text-decoration: none} /*BG: efy*/ .btn, .pp-chapter-active, .pp-chapters .chapter:hover {background: linear-gradient(165deg, var(--efy_color), var(--efy_color2)); background-clip: padding-box; color: var(--efy_text2)} @@ -125,7 +125,7 @@ table {margin-top: 0} .pp-mobile-btn {display: none; padding: 10rem 12rem} .pp-mobile-nav {margin: 0 0 15rem 0} -.pp-mobile-nav a {padding: var(--efy_padding); width: 100%} +.pp-mobile-nav a, .pp-mobile-nav p {padding: var(--efy_padding); width: 100%; border-radius: var(--efy_radius)} /*Convergence*/ @media (max-width: 990px) {