Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions public/images/eye-slash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/images/eye.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/login_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public/images/social/devicon_google.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/images/social/fe_github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/images/social/logos_facebook.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions public/images/social/prime_twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions resources/assets/sass/pages/login.scss
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,8 @@
border-right: 1px solid #ccc;
flex: 1;
}
}

.help-block .errorlist {
margin: 0;
}
9 changes: 4 additions & 5 deletions resources/lang/en/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@
'google' => 'Sign in with Google',
'azure' => 'Sign in with Azure',

'email' => 'E-Mail Address',
'email' => 'Email address',
'password' => 'Password',
'remember' => 'Remember Me',
'forgotten_password' => 'Forgot Your Password ?',
'remember' => 'Keep me signed in',
'forgotten_password' => 'Forgot Your Password',
'no_account' => 'Don\'t have an account ?',
'signup' => 'Sign Up',
'reset' => 'Reset Your Password',
'send_password' => 'Send Password Reset Link',
'confirm_password' => 'Confirm Password',
'name' => 'name',

'name' => 'Full name',
];
192 changes: 112 additions & 80 deletions resources/views/auth/login.blade.php
Original file line number Diff line number Diff line change
@@ -1,101 +1,133 @@
@extends('layout.base')
@extends('layout.new_base')

@section('content')
<section id="codeweek-login-page" class="codeweek-page">

<section class="codeweek-banner simple">
<div class="text">
<h2>#EUCodeWeek</h2>
<h1>@lang('login.login')</h1>
</div>
</section>

<section class="codeweek-content-wrapper">

<section class="codeweek-content-wrapper-inside">
@php
$list = [
(object) ['label' => __('menu.signin'), 'href' => ''],
];
@endphp
@section('layout.breadcrumb')
@include('layout.breadcrumb', ['list' => $list])
@endsection

<div class="social-media-buttons">

<a href="/login/facebook" class="codeweek-action-link-button facebook">
<img src="/images/facebook_white.svg">
@lang('login.facebook')
</a>
<a href="/login/google" class="codeweek-action-link-button google">
<img src="/images/google_white.svg">
@lang('login.google')
</a>
<a href="/login/github" class="codeweek-action-link-button github">
<img src="/images/github_white.svg">
@lang('login.github')
@section('content')
<section id="codeweek-login-page">
<section class="py-10 px-5 lg:p-20 bg-secondary-gradient flex justify-center relative overflow-hidden">
<div class="bg-white pb-10 pt-6 px-6 lg:p-16 rounded-[2rem] w-full md:max-w-[760px] z-10">
<div class="flex">
<a class="flex-1 flex justify-center p-4 border-b-4 border-dark-blue font-['Montserrat'] font-bold text-xl text-dark-blue cursor-pointer">
@lang('login.login')
</a>
<a href="/login/twitter" class="codeweek-action-link-button twitter">
<img src="/images/x_logo.svg">
@lang('login.X')
<a class="flex-1 flex justify-center p-4 border-b-4 border-dark-blue-300 font-['Montserrat'] font-medium text-xl text-dark-blue-400 cursor-pointer" href="/register">
@lang('login.register')
</a>
</div>

<div class="separator">
<div class="line"></div>
<div class="text" style="text-transform: uppercase">@lang('base.or')</div>
<div class="line"></div>
<div class="flex justify-center p-6 lg:p-10">
<div class="flex gap-4">
<a href="/login/twitter" class="flex justify-center items-center bg-dark-blue-50 w-10 h-10 rounded-full">
<img src="/images/social/prime_twitter.svg">
</a>
<a href="/login/github" class="flex justify-center items-center bg-dark-blue-50 w-10 h-10 rounded-full">
<img src="/images/social/fe_github.svg">
</a>
<a href="/login/facebook" class="flex justify-center items-center bg-dark-blue-50 w-10 h-10 rounded-full">
<img src="/images/social/logos_facebook.svg">
</a>
<a href="/login/google" class="flex justify-center items-center bg-dark-blue-50 w-10 h-10 rounded-full">
<img src="/images/social/devicon_google.svg">
</a>
</div>
</div>
<div class="h-[1px] w-full bg-black relative">
<div class="uppercase px-4 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white font-['Blinker'] font-bold text-xl">@lang('base.or')</div>
</div>
<form class="pt-6 lg:pt-10 font-['Blinker']" method="POST" action="{{ route('login') }}">
{{ csrf_field() }}

<div class="login-form">
<form method="POST" action="{{ route('login') }}">
{{ csrf_field() }}

<div class="codeweek-form-field-wrapper">
<div class="codeweek-form-field">
<label for="email">@lang('login.email')</label>
<input id="email" type="email" name="email"
value="{{old('email')}}" required autofocus>
</div>
<div class="errors">
@component('components.validation-errors', ['field'=>'email'])@endcomponent
</div>
<div class="mb-6">
<div>
<label for="email" class="font-normal text-xl">@lang('login.email')*</label>
<input id="email" type="email" name="email"
class="border-2 border-solid border-dark-blue-200 w-full rounded-full h-12 px-4 mt-3"
value="{{old('email')}}" required autofocus>
</div>
<div class="text-error-200 font-semibold mt-2">
@component('components.validation-errors', ['field'=>'email'])@endcomponent
</div>
<div class="codeweek-form-field-wrapper">
<div class="codeweek-form-field">
<label for="password">@lang('login.password')</label>
</div>
<div class="mb-3">
<div>
<label for="password" class="font-normal text-xl">@lang('login.password')*</label>
<div class="relative mt-3">
<input id="password" type="password" name="password"
class="border-2 border-solid border-dark-blue-200 w-full rounded-full h-12 px-4"
value="{{old('title')}}" required>
</div>
<div class="errors">
@component('components.validation-errors', ['field'=>'password'])@endcomponent
</div>
</div>
<div class="codeweek-form-field-checkbox">
<label>
<input id="remember" name="remember" type="checkbox" {{ old('remember') ? 'checked' : '' }}>
@lang('login.remember')
</label>
</div>

<div class="codeweek-form-button-container">
<div class="codeweek-button">
<input type="submit" value="@lang('login.login')">
<img src="/images/eye.svg" id="password-eye" class="absolute right-4 top-1/2 -translate-y-1/2 cursor-pointer">
<img src="/images/eye-slash.svg" id="password-eye-slash" class="absolute right-4 top-1/2 -translate-y-1/2 cursor-pointer hidden">
</div>
</div>
</form>
<div class="login-other-actions">
<div class="forgot-password">
<a href="{{ route('password.request') }}">
@lang('login.forgotten_password')
</a>
</div>
<div class="sign-up">
@lang('login.no_account') &nbsp;
<a href="/register">
@lang('login.signup')
</a>
<div class="text-error-200 font-semibold mt-2">
@component('components.validation-errors', ['field'=>'password'])@endcomponent
</div>
</div>
<div class="flex justify-end">
<a class="text-dark-blue text-lg font-semibold underline" href="{{ route('password.request') }}">
@lang('login.forgotten_password')
</a>
</div>
<div class="relative flex items-center gap-3">
<input id="remember" name="remember" type="checkbox"
class="peer relative w-8 h-8 border-2 border-solid border-dark-blue-200 rounded-md appearance-none cursor-pointer checked:bg-dark-blue checked:border-0"
{{ old('remember') ? 'checked' : '' }}>
<label for="remember" class="font-normal text-[16px] cursor-pointer">@lang('login.remember')</label>
<svg
class="absolute top-1 w-6 h-6 hidden peer-checked:block ml-1"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="white"
stroke-width="4"
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
</div>

</div>

</section>
<div class="flex justify-center mt-6">
<input class="cursor-pointer bg-primary hover:bg-hover-orange rounded-full py-4 px-20 font-semibold text-base w-full md:w-auto text-center text-[#20262C] transition-all duration-300" type="submit" value="@lang('login.login')">
</div>
</form>
</div>

<img
class="absolute top-0 -right-1/4 h-full max-w-[calc(70vw)] object-cover opacity-70 hidden md:block"
loading="lazy"
src="../images/login_bg.png"
style="clip-path: ellipse(70% 140% at 70% 25%);"
/>
</section>

@livewire('still-have-question-section')
</section>
@endsection

@push('scripts')
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
const passwordInput = document.getElementById('password');
const eyeIcon = document.getElementById('password-eye');
const eyeSlashIcon = document.getElementById('password-eye-slash');

const togglePasswordVisibility = () => {
const isPassword = passwordInput.type === 'password';
passwordInput.type = isPassword ? 'text' : 'password';
eyeIcon.style.display = isPassword ? 'none' : 'block';
eyeSlashIcon.style.display = isPassword ? 'block' : 'none';
};

eyeIcon.addEventListener('click', togglePasswordVisibility);
eyeSlashIcon.addEventListener('click', togglePasswordVisibility);
});
</script>
@endpush
Loading