change detail.html

master
Lowlights 2024-01-25 16:02:46 +06:00
commit bc0b54e21d
4 changed files with 71 additions and 3 deletions

31
.gitignore vendored Normal file
View File

@ -0,0 +1,31 @@
# .gitignore
# Python
__pycache__/
*.py[cod]
*.pyo
*.pyd
*.so
*.log
*.egg-info/
dist/
build/
# Django
*.sqlite3
*.db
*.db.sql
# Environment files
.env
# IDEs
.idea/
.vscode/
*.swp
*.swo
*.swn
# OS generated files
.DS_Store
Thumbs.db

21
Dockerfile Normal file
View File

@ -0,0 +1,21 @@
# Dockerfile
# Pull the base image
FROM python:3.10
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set work directory
WORKDIR /code
# Install dependencies
COPY requirements.txt /code/
RUN pip install -r requirements.txt
# Copy project
COPY . /code/
# Run migrations
RUN python manage.py makemigrations
RUN python manage.py migrate

13
docker-compose.yml Normal file
View File

@ -0,0 +1,13 @@
# docker-compose.yml
version: '3.8'
services:
web:
build: .
command: python manage.py runserver 0.0.0.0:${PORT}
volumes:
- .:/code
ports:
- ${PORT}:${PORT}
env_file:
- .env

View File

@ -70,7 +70,7 @@
<a href="{{ product.get_absolute_url }}" style="text-decoration: none; color: #212529;"> <a href="{{ product.get_absolute_url }}" style="text-decoration: none; color: #212529;">
<h5 class="card-title">{{ product.name }}</h5> <h5 class="card-title">{{ product.name }}</h5>
</a> </a>
<p class="card-text text-truncate">{{ product.description }}</p> <p class="card-text text-truncate description">{{ product.description }}</p>
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<p><strong>{{ product.price }}₸</strong></p> <p><strong>{{ product.price }}₸</strong></p>
</div> </div>
@ -94,7 +94,11 @@
<div class="col-md-6"> <div class="col-md-6">
<div class="product-details"> <div class="product-details">
<h1 class="product-name" style="color: #ffffff;">{{ product.name }}</h1> <h1 class="product-name" style="color: #ffffff;">{{ product.name }}</h1>
<<<<<<< HEAD
<p class="price" style="font-size: 35px; font-weight: bold; color: rgba(255,128,0,0.73);">{{ product.price }}₸</p> <p class="price" style="font-size: 35px; font-weight: bold; color: rgba(255,128,0,0.73);">{{ product.price }}₸</p>
=======
<p class="price" style="font-size: 35px; font-weight: bold; color: rgba(255,128,0,0.73);">₸{{ product.price }}</p>
>>>>>>> 28b575b35ad3c9232ec053f2e1a0421dfcd41952
<p class="description">{{ product.description|linebreaks }}</p> <p class="description">{{ product.description|linebreaks }}</p>
<a href="{% url 'index' %}" class="btn btn-primary">Вернуться на главную</a> <a href="{% url 'index' %}" class="btn btn-primary">Вернуться на главную</a>
@ -124,8 +128,7 @@
margin-bottom: 19px; margin-bottom: 19px;
} }
.description { .description {
font-size: 800px !important; color: white !important;
color: white !important; /* Замените #yourDesiredColor на желаемый цвет */
} }
</style> </style>