mirror of
https://gitlab.com/etc404/software-engineering-project.git
synced 2026-05-10 20:52:58 +00:00
Merge branch 'main' of https://gitlab.com/etc404/software-engineering-project
This commit is contained in:
@@ -0,0 +1,146 @@
|
|||||||
|
body, html {
|
||||||
|
background-attachment: fixed;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
font-family: 'Roboto', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
display: flex;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Header Styles */
|
||||||
|
.top-header {
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #1f3d57;
|
||||||
|
color: white;
|
||||||
|
padding: 10px 20px;
|
||||||
|
height: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.site-name {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
font-size: 2.5em;
|
||||||
|
font-weight: bold;
|
||||||
|
letter-spacing: 4px;
|
||||||
|
font-family: 'EB Garamond', serif;}
|
||||||
|
|
||||||
|
/* Left Sidebar */
|
||||||
|
.sidebar-left {
|
||||||
|
overflow: hidden;
|
||||||
|
margin: 20px;
|
||||||
|
position: fixed;
|
||||||
|
border-radius: 20px;
|
||||||
|
z-index: 10;
|
||||||
|
|
||||||
|
width: 200px;
|
||||||
|
background-color: #38a7e8;
|
||||||
|
color: white;
|
||||||
|
padding: 20px;
|
||||||
|
font-size: 1.15em;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-left ul {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-left li {
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-left a {
|
||||||
|
color: white;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Right Sidebar */
|
||||||
|
.sidebar-right {
|
||||||
|
overflow: hidden;
|
||||||
|
margin: 20px;
|
||||||
|
height: 70%;
|
||||||
|
position: fixed;
|
||||||
|
border-radius: 20px;
|
||||||
|
z-index: 1;
|
||||||
|
|
||||||
|
right: 0;
|
||||||
|
overflow-x: hidden;
|
||||||
|
|
||||||
|
width: 200px;
|
||||||
|
background-color: #38a7e8;
|
||||||
|
color: white;
|
||||||
|
padding: 20px;
|
||||||
|
font-size: 1.15em;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-right ul {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-right li {
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-right a {
|
||||||
|
color: white;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Main Content */
|
||||||
|
.main-content {
|
||||||
|
flex-grow: 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
margin-left: 300px;
|
||||||
|
margin-right: 250px;
|
||||||
|
margin-top: 65px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-card {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 35px;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
|
||||||
|
flex: 0.2 0.2 260px;
|
||||||
|
max-width: 300px;
|
||||||
|
background: orange;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100px;
|
||||||
|
object-fit: cover;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-left, .card-right {
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Thyme Crunch Home</title>
|
||||||
|
<link rel="stylesheet" href="css/home.css">
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=EB+Garamond' rel='stylesheet'>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<header class="top-header">
|
||||||
|
<h1 class="site-name">Thyme Crunch</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<!--Navigation Bar -->
|
||||||
|
<nav class="sidebar-left">
|
||||||
|
<ul>
|
||||||
|
<li><a href="#">Home</a></li>
|
||||||
|
<li><a href="#">Explore</a></li>
|
||||||
|
<li><a href="#">Profile</a></li>
|
||||||
|
<li><a href="#">Saved</a></li>
|
||||||
|
<li><a href="#">Log Out</a></li>
|
||||||
|
<li><a href="#">Settings</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Main Content -->
|
||||||
|
<main class="main-content">
|
||||||
|
<div class="recipe-card">
|
||||||
|
|
||||||
|
<div class="card" th:each="recipe : ${recipes}">
|
||||||
|
<div class="card-text">
|
||||||
|
<h2 th:text="${recipe.title}"></h2>
|
||||||
|
<p th:text="${recipe.description}"></p>
|
||||||
|
</div>
|
||||||
|
<div class="card-right">
|
||||||
|
<img th:src="@{${recipe.imageUrl}}" alt="${recipe.imageAltText}">
|
||||||
|
<p th:text="${recipe.cost}"></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<!--New Bar -->
|
||||||
|
<nav class="sidebar-right">
|
||||||
|
<h1> NEW </h1>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
<button type="submit">Enter</button>
|
<button type="submit">Enter</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<h3> OR <a href="create-account.html">SIGN UP</a> FOR AN ACCOUNT </h3>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user