Skip to content

Commit

Permalink
2fa, dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickFuereder committed Nov 30, 2023
1 parent f666928 commit d86e2f3
Show file tree
Hide file tree
Showing 8 changed files with 999 additions and 323 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/.github/workflows"
schedule:
interval: "weekly"
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ jobs:
run: rsync -avz -e 'ssh -i ~/.ssh/staging.key -o StrictHostKeyChecking=no' --progress ./build.tar.gz $SSH_USER@$SSH_HOST:/home/$SSH_USER/$REPO_NAME

- name: Unzip
run: ssh staging "cd /home/$SSH_USER/$REPO_NAME/ && sudo tar --no-same-owner --no-same-permissions -xvf build.tar.gz"
run: ssh staging "cd /home/$SSH_USER/$REPO_NAME/ && sudo tar --no-same-owner --no-same-permissions -xf build.tar.gz"

- name: Delete build zip
run: ssh staging "cd /home/$SSH_USER/$REPO_NAME/ && sudo rm build.tar.gz"

- name: Delete current deployed files
run: ssh staging 'sudo rm -r -d /var/www/netdbBeta'
Expand Down
141 changes: 141 additions & 0 deletions Assets/css/dialog.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
.dialog-container {
width: 100%;
background-color: rgba(0, 0, 0, .5);
height: 100vh;
position: fixed;
top: 0;
left: 0;
z-index: 2000;
justify-content: center;
align-items: center;
display: none;
opacity: 0;
animation: fadein .5s forwards;
}

.dialog {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
background-color: #444;
flex-direction: column;
border-radius: 1em;
overflow: hidden;
min-width: 20%;
padding-bottom: 1em;
opacity: 0;
animation: fadein .5s forwards;
/* animation: scale .5s forwards; */
/* transform: scale(.75); */
}

@keyframes fadein {
from {
opacity: 0;
}

to {
opacity: 1;
}
}

@keyframes scale {
from {
transform: scale(.75);
}

to {
transform: scale(1);
}
}

.dialog-container.visible {
display: block;
}

.dialog-container.visible .dialog {
opacity: 1;
}

.dialog-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1rem;
width: 100%;
color: white;
padding: .5em;
margin: 0;
}

.dialog-content {
margin-bottom: 1rem;
width: 100%;
padding: .5em 2em;
}

.dialog-button {
padding: 0.5rem 1rem;
border: 1px solid #ccc;
background-color: #fff;
cursor: pointer;
color: black;
width: 30%;
align-self: center;
border-radius: 11em;
}

.dialog-button:hover {
background-color: #ccc;
}

.dialog.info .dialog-title {
background-color: #3077d2;
}

.dialog.error .dialog-title {
background-color: #c11f1f;
}

.dialog.warning .dialog-title {
background-color: #ffa500;
}

.dialog.debug .dialog-title {
background-color: #888;
}

.dialog.pink .dialog-title {
background: linear-gradient(124deg, #ff2400, #e81d1d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3);
background-size: 1800% 1800%;
animation: rainbow 18s ease infinite;
}

@keyframes rainbow {
0% {
background-position: 0% 82%
}

50% {
background-position: 100% 19%
}

100% {
background-position: 0% 82%
}
}

.custom-dialog {
display: none;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
position: fixed;
z-index: 2100;
}

.custom-dialog.visible {
display: block;
}

53 changes: 50 additions & 3 deletions Assets/css/profile.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ li a {
text-decoration: none;
}

h4, h5 {
margin: 0;
}

.settings-container {
width: 100%;
overflow: hidden;
Expand Down Expand Up @@ -118,6 +122,38 @@ button:active {
background-color: #393939;
}

button[disabled] {
background-color: #222;
color: #4d4d4d;
cursor: pointer;
}

select {
padding: 1em;
margin: .5em 0;
background-color: #393939;
border-radius: .2em;
color: #fff;
outline: none;
border: none;
outline: 2px solid transparent;
transition: all .2s ease-in-out;
}

select:focus {
outline: 2px solid white;
}

select:hover {
background-color: #4d4d4d;
}

select[disabled] {
background-color: #222;
color: #4d4d4d;
cursor: pointer;
}

.connected-accounts {
display: flex;
gap: 1em;
Expand Down Expand Up @@ -187,7 +223,6 @@ button:active {

.connected-accounts h1:nth-child(4) {
background-color: white;
color: black;
}

.connected-accounts h1:nth-child(5) {
Expand All @@ -214,6 +249,7 @@ button:active {
display: flex;
align-items: center;
margin-top: .5em;
gap: .5em;
}

.flex.end {
Expand Down Expand Up @@ -290,20 +326,26 @@ th {
overflow: hidden;
}

.apiKeysTable td:nth-child(3) {
.apiKeysTable td:nth-child(2) {
display: flex;
gap: 1em;
}

.apiKeysTable td:nth-child(3) button {
.apiKeysTable td:nth-child(2) button {
padding: .8em;
}

.apiKeysTable td {
overflow: hidden;
text-overflow: ellipsis;
}

.collapsible-content {
padding: 0 18px;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
overflow-y: auto;
}

.collapsible-content > div:nth-child(1) {
Expand Down Expand Up @@ -345,6 +387,11 @@ th {
margin-left: auto;
}

.ssoClients a {
color: #fff;
text-decoration: none;
}

.ssoRedirects > div{
display: flex;
align-items: center;
Expand Down
Loading

0 comments on commit d86e2f3

Please sign in to comment.