Skip to content

Commit

Permalink
adding view video button
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamSupekar committed May 28, 2024
1 parent 33ddf10 commit 166caf9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/resources/static/css/welcome.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ body {
background-color: #45a049;
}

.view-video-button{
display: block;
width: 95%;
padding: 5px;
text-align: center;
background-color: #ff63;
color: white;
border: none;
cursor: pointer;
}

/* Style for welcome message */
h1 {
font-size: 24px;
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/templates/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ <h3 th:text="${video.title}"></h3> <!-- Video Title -->
</video>
<p th:text="${video.decription}"></p> <!-- Video Description -->
<p>Uploaded by: <span th:text="${video.username}" style="font-style: italic; font-weight: bold;"></span></p><!-- Uploaded by -->
<a th:href="@{'/Videos/' + ${video.filename}}" class="view-video-button">View Video</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 166caf9

Please sign in to comment.