Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions App/static/views.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../static/viewstyles.css">
<link rel="stylesheet" href="{{ url_for('static', filename='viewstyles.css') }}">
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>
<title>Document</title>
</head>

<body>
<header class="header">
<nav class="navbar">
<ul class="right-side">
<img src="https://d1csarkz8obe9u.cloudfront.net/posterpreviews/fitness-logo-design%2Cgym-logo%2Chealth-logo-template-9667c79790d895428b781ef856f03523_screen.jpg?ts=1667269400"
alt="">
</ul>
<ul class="left-side">
<li><a href="" class="active">Home</a></li>
<li><a href="">Routines</a></li>
<li><a href="">Workouts</a></li>
<li><a href="">Logout</a></li>
</ul>
</nav>
</header>
<div>
<div class="text-container">
<h1>Routines</h1>
</div>
<div class="split">
<div class="workout-container">
{% for workout in workouts %}
<a href="" class="card-workouts">
<div class="card-text">
<h3>{{workout.workout.name}}</h3>
<p>3 Workouts day</p>
</div>
<div class="edit-button">
</div>
</a>
{% endfor %}
</div>
</div>
<div class="button-container">
<a href="">Edit</a>
<a href="">Delete</a>
</div>
</div>

</body>

</html>
166 changes: 166 additions & 0 deletions App/static/viewstyles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}

body {
background: white;
}

.header {
position: relative;
top: 0;
left: 0;
width: 100%;
padding: 25px 12.5%;
background: #dee1e5;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
}

.navbar {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}

.right-side img {
max-width: 160px;
max-height: 50px;
}

.right-side {
display: flex;
list-style: none;
margin: 0;
padding: 0;
}

.right-side li {
margin-right: 15px; /* Adjust as needed for spacing between items */
}

.left-side {
display: flex;
list-style: none;
margin: 0;
padding: 0;
}

.left-side li {
margin-right: auto; /* Push the "Logout" link to the left */
}

.navbar a {
position: relative;
font-size: 16px;
color: black;
text-decoration: none;
font-weight: 500;
margin-right: 30px;
transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
color: #02bdd6;
}

.split{
display: flex;
align-items: center;
justify-content: center;
}

.card {
margin-right: 50px;
margin-bottom: 50px;
background-color: white;
display: flex;
justify-content: flex-start;
border-radius: 10px;
overflow: hidden;
box-shadow: Opx 2px 4px rgba(0, 0, 0, 0.2);
}

.card-workouts {
margin-top: 20px;
margin-right: 50px;
background-color: #f0f0f0;
display: flex;
justify-content: space-between;
border-radius: 10px;
overflow: hidden;
box-shadow: Opx 2px 4px rgba(0, 0, 0, 0.2);
text-decoration: none;
}

.card-workouts:hover {
box-shadow: 0 5px 35px 0px rgba(0, 0, 0, 0.1);
}
.card-workouts:hover::before,
div:hover::after {
display: block;
content: "";
position: absolute;
background: #face30;
border-radius: 10px;
z-index: -1;
animation: 1s;
}
.card-workouts:hover:after {
background: #ff7200;
animation: 2s;
}

.workout-container {
height: 400px;
width: 1000px;
overflow: auto;
overflow-y: scroll;
}

.card-text {
margin-left: 100px;
color: black;
}

.text-container {
margin-top: 20px;
margin-left: 50px;
margin-bottom: 40px;
}

.button-container{

display: flex;
justify-content: center;
align-items: center;
}

.button-container a{
display: flex;
justify-content: center;
align-items: center;
width: 100px;
margin-right: 80px;
margin-left: 80px;
padding: 10px;
margin-top: 20px;
background-color: #5cb85c;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
text-decoration: none;
font-size: 10px;
}

.button-container a:hover {
background-color: #4cae4c;
}