Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Footer #58

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
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
7 changes: 5 additions & 2 deletions bio_market_store/bio_market_store/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""

from pathlib import Path

import os
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent

Expand Down Expand Up @@ -125,7 +125,10 @@
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/5.1/howto/static-files/

STATIC_URL = "static/"
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static'),
]

# Default primary key field type
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
Expand Down
64 changes: 64 additions & 0 deletions bio_market_store/store/static/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/* style.css */
html, body {
height: 100%;
margin: 0;
display: flex;
flex-direction: column;
}

.content {
flex: 1;
}

.footer {
background-color: #4CAF50;
color: white;
padding: 10px 0;
text-align: center;
font-size: 14px;
flex-shrink: 0;
}

.footer a {
color: white;
text-decoration: none;
margin: 0 5px;
}

.footer a:hover {
text-decoration: underline;
}

.footer .container {
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}

.footer hr {
border-color: white;
margin: 10px 0;
}

/* Additional styles for footer content */
.footer .row {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}

.footer .col-md-4 {
flex: 1;
min-width: 200px;
margin: 10px 0;
}

.footer ul {
list-style: none;
padding: 0;
margin: 0;
}

.footer h5 {
margin-bottom: 5px;
}
15 changes: 15 additions & 0 deletions bio_market_store/store/templates/base.html
Wojciech-Wawrzyszko marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% load static %}
{{ '<' }}{{ '!DOCTYPE html>' }}
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bio Market Store</title>
</head>
<body>
{% block body_data %}{% endblock body_data %}

<footer>
{% include 'footer.html' %}
</footer>
</body>
</html>
48 changes: 48 additions & 0 deletions bio_market_store/store/templates/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bio Market Store</title>
<link rel="stylesheet" href="{% static 'css/style.css' %}">
</head>
<body>
<div class="content">

</div>

<footer class="footer">
<div class="container">
<div class="row">
<div class="col-md-4">
<p>Fresh, healthy, and organic fruits and vegetables delivered to you.</p>
</div>
<div class="col-md-4">
<h5>Quick Links</h5>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/products/">Products</a></li>
<li><a href="/contact/">Contact</a></li>
</ul>
</div>
<div class="col-md-4">
<h5>Contact</h5>
<p>Email: [email protected]</p>
<p>Phone: +48 500 500 500</p>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-12">
<p>Follow us on:
<a href="https://www.facebook.com/profile.php?id=61572705938682">Facebook</a>
<a href="https://www.x.com/potatopro">X</a>
<a href="https://www.instagram.com/bio_market_store">Instagram</a>
</p>
<p>&copy; 2025 Bio Market Store. All rights reserved.</p>
</div>
</div>
</div>
</footer>
</body>
</html>