diff --git a/bio_market_store/bio_market_store/settings.py b/bio_market_store/bio_market_store/settings.py index e5b0ea9..b5d2a9b 100644 --- a/bio_market_store/bio_market_store/settings.py +++ b/bio_market_store/bio_market_store/settings.py @@ -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 @@ -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 diff --git a/bio_market_store/store/static/css/style.css b/bio_market_store/store/static/css/style.css new file mode 100644 index 0000000..0db5e35 --- /dev/null +++ b/bio_market_store/store/static/css/style.css @@ -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; +} \ No newline at end of file diff --git a/bio_market_store/store/templates/base.html b/bio_market_store/store/templates/base.html new file mode 100644 index 0000000..00e6e5c --- /dev/null +++ b/bio_market_store/store/templates/base.html @@ -0,0 +1,15 @@ +{% load static %} +{{ '<' }}{{ '!DOCTYPE html>' }} + +
+ +