added profile page
This commit is contained in:
parent
65dc50e57d
commit
a5ba7581b4
|
@ -3,12 +3,129 @@
|
||||||
@section('page_title', 'My Profile')
|
@section('page_title', 'My Profile')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="card" style="min-height: 500px;">
|
<div class="container-fluid px-4">
|
||||||
<div class="card-header">
|
<div class="card w-100">
|
||||||
<i class="fa-solid fa-user" style="color:gray;"> My Profile</i>
|
<!-- Banner -->
|
||||||
|
<div class="banner d-flex align-items-center p-3">
|
||||||
|
<div class="banner-icon me-3">
|
||||||
|
<i class="fas fa-user-circle" style="font-size: 40px; color: #6c757d;"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<h4 class="fw-bold text-primary mb-0" style="margin-left:10px">LBTek Systems</h4>
|
||||||
<p>This is the Profile page content.</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
<!-- Profile Section -->
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<div class="row">
|
||||||
|
<!-- Profile Information -->
|
||||||
|
<div class="col-md-9">
|
||||||
|
<h3 class="fw-bold mb-3" style="font-size: 20px; font-weight:400">My Information</h3>
|
||||||
|
<div class="mb-2">
|
||||||
|
<span class="fw-bold text-dark">Username: </span>
|
||||||
|
<span>lbteksupport</span>
|
||||||
|
</div>
|
||||||
|
<div class="mb-2">
|
||||||
|
<span class="fw-bold text-dark">Email: </span>
|
||||||
|
<a href="mailto:support@lbteksystems.com" class="text-primary">support@lbteksystems.com</a>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span class="fw-bold text-dark">Access Role: </span>
|
||||||
|
<span>System Admin</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.card {
|
||||||
|
border-radius: 5px;
|
||||||
|
border: 1px solid #dee2e6;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||||||
|
margin-top: 2rem;
|
||||||
|
}
|
||||||
|
.banner {
|
||||||
|
background-color: #e6f0fa;
|
||||||
|
border-top-left-radius: 5px;
|
||||||
|
border-top-right-radius: 5px;
|
||||||
|
border-bottom: 1px solid #dee2e6;
|
||||||
|
}
|
||||||
|
.text-primary {
|
||||||
|
color: #003087 !important;
|
||||||
|
}
|
||||||
|
.text-dark {
|
||||||
|
color: #343a40 !important;
|
||||||
|
}
|
||||||
|
.profile-picture img {
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
.profile-picture img:hover {
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
.card-body {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
.card-body .fw-bold {
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
.btn-primary {
|
||||||
|
background-color: #0d6efd;
|
||||||
|
border-color: #0d6efd;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
padding: 0.25rem 0.75rem;
|
||||||
|
}
|
||||||
|
.btn-primary:hover {
|
||||||
|
background-color: #0b5ed7;
|
||||||
|
border-color: #0b5ed7;
|
||||||
|
}
|
||||||
|
@media (max-width: 576px) {
|
||||||
|
.profile-picture img {
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
}
|
||||||
|
.card-body {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
}
|
||||||
|
.card-body .fw-bold {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
.banner {
|
||||||
|
padding: 1.5rem;
|
||||||
|
}
|
||||||
|
.banner-icon i {
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
.banner h4 {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const profileImage = document.getElementById('profileImage');
|
||||||
|
const pictureInput = document.getElementById('profilePictureInput');
|
||||||
|
const changePictureBtn = document.getElementById('changePicture');
|
||||||
|
|
||||||
|
// Load saved profile picture
|
||||||
|
const savedPicture = sessionStorage.getItem('profilePicture');
|
||||||
|
if (savedPicture) {
|
||||||
|
profileImage.src = savedPicture;
|
||||||
|
}
|
||||||
|
|
||||||
|
changePictureBtn?.addEventListener('click', () => {
|
||||||
|
pictureInput?.click();
|
||||||
|
});
|
||||||
|
|
||||||
|
pictureInput?.addEventListener('change', (e) => {
|
||||||
|
const file = e.target.files[0];
|
||||||
|
if (file) {
|
||||||
|
const reader = new FileReader();
|
||||||
|
reader.onload = (event) => {
|
||||||
|
profileImage.src = event.target.result;
|
||||||
|
sessionStorage.setItem('profilePicture', event.target.result);
|
||||||
|
};
|
||||||
|
reader.readAsDataURL(file);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
Loading…
Reference in New Issue