2022-01-01 14:14:57 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
|
|
<title>{{ $user->info->detail->user->nickname }} - TikTok</title>
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/bulmaswatch/superhero/bulmaswatch.min.css">
|
|
|
|
<link rel="stylesheet" href="../styles/user.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<section class="hero is-primary">
|
|
|
|
<div class="hero-body">
|
|
|
|
<div class="container">
|
|
|
|
<p class="title">{{ $user->info->detail->user->uniqueId }}'s profile</p>
|
|
|
|
<p class="subtitle">{{ $user->info->detail->user->signature }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="section">
|
|
|
|
<div class="columns is-multiline is-vcentered">
|
|
|
|
@foreach ($user->items as $item)
|
|
|
|
<div class="column is-one-quarter">
|
2022-01-01 18:06:00 -05:00
|
|
|
<a id="{{$item->id}}" href="#{{$item->id}}" class="clickable-img" data-video_url="{{ $item->video->playAddr }}"
|
|
|
|
data-video_download="{{ $item->video->downloadAddr }}"
|
|
|
|
data-desc="{{ $item->desc }}"
|
|
|
|
data-video_width="{{ $item->video->width }}"
|
|
|
|
data-video_height="{{ $item->video->height }}"
|
|
|
|
data-music_title="{{ $item->music->title }}"
|
|
|
|
data-music_url="{{ $item->music->playUrl }}">
|
|
|
|
<img src="{{ $item->video->originCover }}"/>
|
|
|
|
</a>
|
2022-01-01 14:14:57 -05:00
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
2022-01-01 14:48:42 -05:00
|
|
|
<div class="buttons">
|
2022-01-01 18:06:00 -05:00
|
|
|
@isset ($_GET['cursor'])
|
|
|
|
<a class="button is-danger" href="?cursor=0">First</a>
|
|
|
|
@endisset
|
|
|
|
<a class="button is-danger" href="javascript:history.back()">Back</a>
|
2022-01-01 14:48:42 -05:00
|
|
|
@if ($user->hasMore)
|
2022-01-01 18:06:00 -05:00
|
|
|
<a class="button is-success" href="?cursor={{ $user->maxCursor }}">Next</a>
|
2022-01-01 14:48:42 -05:00
|
|
|
@else
|
2022-01-01 18:06:00 -05:00
|
|
|
<a class="button is-success" disabled title="No more videos available">Next</a>
|
2022-01-01 14:48:42 -05:00
|
|
|
@endif
|
|
|
|
</div>
|
2022-01-01 14:14:57 -05:00
|
|
|
</section>
|
|
|
|
<div id="modal" class="modal">
|
|
|
|
<div id="modal-background" class="modal-background"></div>
|
|
|
|
<div class="modal-card">
|
|
|
|
<header class="modal-card-head">
|
|
|
|
<button id="modal-close" class="delete" aria-label="close"></button>
|
2022-01-01 18:06:00 -05:00
|
|
|
<p class="modal-card-title" id="item_title"></p>
|
2022-01-01 14:14:57 -05:00
|
|
|
</header>
|
|
|
|
<section class="modal-card-body has-text-centered" style="overflow: hidden;">
|
|
|
|
<video id="video" controls preload="none"></video>
|
|
|
|
</section>
|
2022-01-01 18:06:00 -05:00
|
|
|
<footer class="modal-card-foot has-text-centered">
|
|
|
|
<div class="container">
|
|
|
|
<a id="download_button" target="_blank" class="button is-info" href="" download>Download</a>
|
|
|
|
<p id="audio_title"></p>
|
|
|
|
<audio id="audio" controls></audio>
|
|
|
|
<div class="buttons">
|
|
|
|
<button id="back-button" class="button is-danger">Back</button>
|
|
|
|
<button id="next-button" class="button is-success">Next</button>
|
|
|
|
</div>
|
2022-01-01 14:14:57 -05:00
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script src="../scripts/user.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|