diff --git a/smartsoltech/media/static/img/services/1_g7siDRC.png b/smartsoltech/media/static/img/services/1_g7siDRC.png new file mode 100644 index 0000000..32740b6 Binary files /dev/null and b/smartsoltech/media/static/img/services/1_g7siDRC.png differ diff --git a/smartsoltech/media/static/img/services/2.png b/smartsoltech/media/static/img/services/2.png new file mode 100644 index 0000000..0a9886b Binary files /dev/null and b/smartsoltech/media/static/img/services/2.png differ diff --git a/smartsoltech/media/static/img/services/3.png b/smartsoltech/media/static/img/services/3.png new file mode 100644 index 0000000..6d3886a Binary files /dev/null and b/smartsoltech/media/static/img/services/3.png differ diff --git a/smartsoltech/static/assets/css/styles.min.css b/smartsoltech/static/assets/css/styles.min.css index 2d69c50..63088d8 100644 --- a/smartsoltech/static/assets/css/styles.min.css +++ b/smartsoltech/static/assets/css/styles.min.css @@ -213,3 +213,18 @@ ul.main-nav > li ul.sub-menu-lists > li > a { .text-muted { font-size: 0.8rem; /* Make muted text slightly smaller */ } + + +.carousel-overlay { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.5); /* Затемнение */ + z-index: 1; +} + +.carousel-item img { + z-index: -1; +} diff --git a/smartsoltech/web/models.py b/smartsoltech/web/models.py index c3dbf3e..1ba6acb 100644 --- a/smartsoltech/web/models.py +++ b/smartsoltech/web/models.py @@ -1,5 +1,7 @@ # web/models.py from django.db import models +from django.contrib.auth.models import AbstractUser + class Category(models.Model): name = models.CharField(max_length=100) @@ -79,4 +81,18 @@ class Review(models.Model): image = models.ImageField(upload_to='static/img/review/', blank=True, null=True) def __str__(self): - return f"Review by {self.client.first_name} {self.client.last_name} for {self.service.name}" \ No newline at end of file + return f"Review by {self.client.first_name} {self.client.last_name} for {self.service.name}" + + COMMUNICATION_METHODS = [ + ('email', 'Email'), + ('telegram', 'Telegram'), + ('sms', 'SMS'), +] + +class User(AbstractUser): + telegram_id = models.CharField(max_length=50, blank=True, null=True, unique=True) + preferred_communication = models.CharField( + max_length=20, + choices=COMMUNICATION_METHODS, + default='email', + ) \ No newline at end of file diff --git a/smartsoltech/web/templates/web/home.html b/smartsoltech/web/templates/web/home.html index 47f6c86..bea8669 100644 --- a/smartsoltech/web/templates/web/home.html +++ b/smartsoltech/web/templates/web/home.html @@ -6,44 +6,30 @@ {% block content %}