A11y:
- Skip-to-content link lands first in the body and jumps to #main
past the header + sidebar for keyboard users.
- aria-label on the icon buttons that previously carried only an
icon: hamburger menu (+ aria-controls="sidebar"), mobile search
toggle, account menu (also drops the duplicate alt on the avatar
since the button name already speaks the user's name).
Admin:
- Dashboard stat card renamed "Live Videos" → "Ready" (matches the
DB status column; nothing on this card is actually live).
Settings:
- Duplicate "Prefer not to say" option on the Gender select — the
empty placeholder shared the same label as the real option.
Placeholder is now "Select…"; the real "Prefer not to say" option
stays unchanged.
- Birthday picker caps the Year dropdown at (this year − 13) and
the server-side register validation requires the same, so a
client bypass can't let a <13 user through.
Titles:
- Admin layout uses "{Page} | TAKEONE" to match the frontend format
(was "{Page} — TAKEONE"). User pages that said "| TAKEONE" literal
now interpolate config('app.name'). Shorts and Welcome moved from
" - " to " | " separator.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
153 lines
3.8 KiB
PHP
153 lines
3.8 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('title', 'Liked Videos | ' . config('app.name'))
|
|
|
|
@section('extra_styles')
|
|
<style>
|
|
.liked-header {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.liked-title {
|
|
font-size: 24px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Video Grid */
|
|
.yt-video-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.yt-video-card {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.yt-video-thumb {
|
|
position: relative;
|
|
aspect-ratio: 16/9;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
background: #1a1a1a;
|
|
}
|
|
|
|
.yt-video-thumb img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.yt-video-duration {
|
|
position: absolute;
|
|
bottom: 8px;
|
|
right: 8px;
|
|
background: rgba(0,0,0,0.8);
|
|
color: white;
|
|
padding: 3px 6px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.yt-video-info {
|
|
display: flex;
|
|
margin-top: 12px;
|
|
gap: 12px;
|
|
}
|
|
|
|
.yt-channel-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: #555;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.yt-video-details {
|
|
flex: 1;
|
|
}
|
|
|
|
.yt-video-title {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
margin: 0 0 4px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.yt-video-title a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.yt-channel-name, .yt-video-meta {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Empty State */
|
|
.yt-empty {
|
|
text-align: center;
|
|
padding: 80px 20px;
|
|
}
|
|
|
|
.yt-empty-icon {
|
|
font-size: 80px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.yt-empty-title {
|
|
font-size: 24px;
|
|
margin: 20px 0 8px;
|
|
}
|
|
|
|
.yt-empty-text {
|
|
color: var(--text-secondary);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.yt-video-grid {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.yt-video-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
</style>
|
|
@endsection
|
|
|
|
@section('content')
|
|
<div class="liked-header">
|
|
<h1 class="liked-title">Liked Videos</h1>
|
|
</div>
|
|
|
|
@if($videos->isEmpty())
|
|
<div class="yt-empty">
|
|
<i class="bi bi-hand-thumbs-up yt-empty-icon"></i>
|
|
<h2 class="yt-empty-title">No liked videos</h2>
|
|
<p class="yt-empty-text">Videos you like will appear here.</p>
|
|
<a href="{{ route('videos.index') }}" class="btn btn-primary" style="background: var(--brand-red); color: white; padding: 10px 20px; border-radius: 20px; text-decoration: none;">
|
|
<i class="bi bi-play-btn"></i> Browse Videos
|
|
</a>
|
|
</div>
|
|
@else
|
|
<div class="yt-video-grid">
|
|
@foreach($videos as $video)
|
|
<x-video-card :video="$video" size="small" />
|
|
@endforeach
|
|
</div>
|
|
|
|
<div class="mt-4">{{ $videos->onEachSide(1)->links() }}</div>
|
|
@endif
|
|
@endsection
|
|
|