Skip to content

Commit

Permalink
Removed commented code and reduced some more css
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeNamedRobin committed Jan 2, 2024
1 parent 013ec3a commit 202961b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 82 deletions.
67 changes: 15 additions & 52 deletions src/views/LoginView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
<main class="flex flex-column flex-grow-1 text-center mx-auto my-7 max-w-21rem">
<img class="max-h-9rem block mx-auto my-0" src="@/assets/img/bier.png" alt="logo"/>
<div class="text-900 text-5xl mt-0 mx-auto mb-2 w-full">{{ $t('login.SudoSOS Login') }}</div>
<Button id="login-gewis-button" @click="loginViaGEWIS" severity="success">
<Button
id="login-gewis-button"
@click="loginViaGEWIS"
severity="success"
class="my-3 mx-auto w-full flex justify-content-center align-items-center"
>
<img class="max-h-2rem py-1 mr-3" src="@/assets/img/gewis-branding.svg" alt="GEWIS"/>
{{ $t('login.Login via GEWIS') }}
</Button>
Expand All @@ -18,7 +23,7 @@
v-bind="username"
size="large"
name="username"
class="input-field"
class="w-full pt-2 pb-0 pl-1 h-4rem"
:class="{ 'p-invalid': loginForm.errors.value.username }"
/>
<label :class="{ 'contains-text': username.modelValue }" for="username"
Expand All @@ -38,18 +43,22 @@
v-bind="password"
size="large"
name="password"
class="input-field"
class="w-full pt-2 pb-0 pl-1 h-4rem"
:class="{ 'p-invalid': loginForm.errors.value.password }"
/>
<label :class="{ 'contains-text': password.modelValue }" for="password"
>{{ $t('login.Password') }}
</label>
<smal class="p-error">
<small class="p-error">
<i v-if="loginForm.errors.value.password" class="pi pi-exclamation-circle"/>
{{ loginForm.errors.value.password }}
</smal>
</small>
</span>
<Button type="submit" id="login-button">
<Button
type="submit"
id="login-button"
class="my-3 mx-auto w-full flex justify-content-center align-items-center"
>
{{ $t('login.Login') }}
</Button>
<div class="text-900 underline" @click="resetPassword">
Expand Down Expand Up @@ -153,44 +162,6 @@ const toHomeView = () => {
<style scoped lang="scss">
//TODO Fix the amount of css used related to #14 and #29
form {
display: flex;
flex-direction: column;
}
h1 {
max-width: 350px;
width: 100%;
margin: 0 auto;
font-size: 2.5rem;
margin-bottom: 1.5rem;
}
#login-image {
max-height: 150px;
display: block;
margin: 0 auto;
}
main {
display: flex;
flex-direction: column;
text-align: center;
max-width: 350px;
margin: 4rem auto;
}
.p-button {
margin: 1rem auto;
max-width: 350px;
width: 100%;
max-height: 38px;
display: flex;
align-items: center;
justify-content: center;
}
.p-error {
display: block;
font-size: 12px;
Expand All @@ -205,14 +176,6 @@ main {
line-height: 12px;
}
.input-field {
width: 100%;
padding-top: 18px;
padding-left: 12px;
padding-bottom: 0;
height: 60px;
}
.p-float-label label {
top: 30%;
margin-top: 0;
Expand Down
28 changes: 0 additions & 28 deletions src/views/SingleUserView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,32 +131,4 @@ const getUserMutations = async (take: number, skip: number) :
</script>

<style scoped lang="scss">
//form {
// display: flex;
// flex-direction: column;
//}
//
//.update-button {
// margin-top: 10px;
// width: fit-content;
//}
//
//#userBalance {
// width: 20rem;
// height: 20rem;
//}
//
//.row {
// display: flex;
// flex-direction: row;
// justify-content: space-between;
// width: 100%;
// margin-bottom: 10px;
// margin-top: 10px;
//}
//
//.content-wrapper {
// display: flex;
// flex-direction: column;
//}
</style>
1 change: 0 additions & 1 deletion src/views/TermsOfServiceView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ const handleLogout = () => {
</script>

<style scoped lang="scss">
//@import '../styles/BasePage.css';
.checkbox {
margin-right: 1rem;
Expand Down
1 change: 0 additions & 1 deletion src/views/TransactionsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@ const getUserMutations = async (take: number, skip: number)
</script>

<style scoped lang="scss">
//@import '../styles/BasePage.css';
</style>

0 comments on commit 202961b

Please sign in to comment.