First commit
This commit is contained in:
commit
fa632b1f2d
14 changed files with 2946 additions and 0 deletions
36
views/home.html
Normal file
36
views/home.html
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="https://unpkg.com/bulmaswatch/superhero/bulmaswatch.min.css">
|
||||
<title>Tiktok Viewer</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<section class="hero is-fullheight">
|
||||
<div class="hero-body">
|
||||
<div class="container has-text-centered">
|
||||
<p class="title">Welcome to TikTok Viewer!</p>
|
||||
<p class="subtitle">Alternative TikTok Frontend</p>
|
||||
<div class="field has-addons has-addons-centered">
|
||||
<div class="control">
|
||||
<input id="username_input" class="input" placeholder="Type username" required />
|
||||
</div>
|
||||
<div class="control">
|
||||
<button id="username_send" class="button is-success" type="button">Go</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script>
|
||||
document.getElementById('username_send').addEventListener('click', () => {
|
||||
const username = document.getElementById('username_input').value
|
||||
window.location.href = `./users/${username}`
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
59
views/user.blade.php
Normal file
59
views/user.blade.php
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
<!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">
|
||||
<figure class="image clickable-img">
|
||||
<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 }}"
|
||||
src="{{ $item->video->originCover }}"/>
|
||||
</figure>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
<div id="modal" class="modal">
|
||||
<div id="modal-background" class="modal-background"></div>
|
||||
<div class="modal-card">
|
||||
<header class="modal-card-head">
|
||||
<p class="modal-card-title" id="item_title"></p>
|
||||
<button id="modal-close" class="delete" aria-label="close"></button>
|
||||
</header>
|
||||
<section class="modal-card-body has-text-centered" style="overflow: hidden;">
|
||||
<video id="video" controls preload="none"></video>
|
||||
</section>
|
||||
<footer class="modal-card-footer has-text-centered">
|
||||
<div class="box">
|
||||
<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>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
<script src="../scripts/user.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue