Header
This commit is contained in:
@@ -6,11 +6,13 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/static/style/common.css">
|
||||
<link rel="stylesheet" href="/static/style/download.css">
|
||||
{{template "header-css" .}}
|
||||
{{template "footer-css" .}}
|
||||
<title>Download Video</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{template "header" .}}
|
||||
<h1>Download Video</h1>
|
||||
<form method="POST">
|
||||
<input type="url" name="url" placeholder="Video URL" required>
|
||||
|
16
templates/header.html
Normal file
16
templates/header.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{{define "header"}}
|
||||
<header>
|
||||
<nav>
|
||||
<div class="logo">yt-dlp Site</div>
|
||||
<ul class="nav-links">
|
||||
<li><a href="/videos">Videos</a></li>
|
||||
<li><a href="/download">Download</a></li>
|
||||
<li><a href="/logout">Logout</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
{{end}}
|
||||
|
||||
{{define "header-css"}}
|
||||
<link rel="stylesheet" href="/static/style/header.css">
|
||||
{{end}}
|
@@ -8,13 +8,13 @@
|
||||
<link rel="stylesheet" href="/static/style/common.css">
|
||||
<link rel="stylesheet" href="/static/style/video.css">
|
||||
<link rel="stylesheet" href="/static/style/media-card.css">
|
||||
{{template "header-css" .}}
|
||||
{{template "footer-css" .}}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
{{template "header" .}}
|
||||
<h1>{{.original.Title}}</h1>
|
||||
|
||||
<div class="media-grid">
|
||||
{{range .videos}}
|
||||
<div class="media-card">
|
||||
|
@@ -9,10 +9,12 @@
|
||||
<link rel="stylesheet" href="/static/style/common.css">
|
||||
<link rel="stylesheet" href="/static/style/videos.css">
|
||||
<link rel="stylesheet" href="/static/style/video-card.css">
|
||||
{{template "header-css" .}}
|
||||
{{template "footer-css" .}}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{template "header" .}}
|
||||
<h1>Downloaded Videos</h1>
|
||||
|
||||
<div class="video-list">
|
||||
|
Reference in New Issue
Block a user