init
0
mainapp/__init__.py
Executable file
5
mainapp/admin.py
Executable file
|
@ -0,0 +1,5 @@
|
|||
from django.contrib import admin
|
||||
from .models import Comments
|
||||
|
||||
# Register your models here.
|
||||
admin.site.register(Comments)
|
6
mainapp/apps.py
Executable file
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class MainappConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'mainapp'
|
25
mainapp/migrations/0001_initial.py
Executable file
|
@ -0,0 +1,25 @@
|
|||
# Generated by Django 4.1.6 on 2023-04-23 08:33
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Comments',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=50, verbose_name='Имя')),
|
||||
('mail', models.CharField(max_length=100, verbose_name='Почта')),
|
||||
('phone_num', models.CharField(max_length=15, verbose_name='Номер')),
|
||||
('coment', models.TextField(verbose_name='Сообщение')),
|
||||
('date_time', models.CharField(max_length=50, verbose_name='Время')),
|
||||
],
|
||||
),
|
||||
]
|
0
mainapp/migrations/__init__.py
Executable file
11
mainapp/models.py
Executable file
|
@ -0,0 +1,11 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
class Comments(models.Model):
|
||||
name = models.CharField("Имя", max_length=50)
|
||||
mail = models.CharField("Почта", max_length=100)
|
||||
phone_num = models.CharField("Номер", max_length=15)
|
||||
coment = models.TextField("Сообщение")
|
||||
date_time = models.CharField("Время", max_length=50)
|
||||
def __str__(self) -> str:
|
||||
return self.name
|
BIN
mainapp/static/first/img/p1.png
Executable file
After Width: | Height: | Size: 192 KiB |
BIN
mainapp/static/first/img/p2.png
Executable file
After Width: | Height: | Size: 147 KiB |
BIN
mainapp/static/first/img/p3.png
Executable file
After Width: | Height: | Size: 368 KiB |
BIN
mainapp/static/first/img/p4.png
Executable file
After Width: | Height: | Size: 259 KiB |
48
mainapp/static/first/script.js
Executable file
|
@ -0,0 +1,48 @@
|
|||
const hamb = document.querySelector("#hamb");
|
||||
const popup = document.querySelector("#popup");
|
||||
const menu = document.querySelector("#menu").cloneNode(1);
|
||||
const body = document.body;
|
||||
|
||||
hamb.addEventListener("click", hambHandler);
|
||||
|
||||
function hambHandler(e) {
|
||||
e.preventDefault();
|
||||
popup.classList.toggle("open");
|
||||
hamb.classList.toggle("active");
|
||||
body.classList.toggle("noscroll");
|
||||
// renderPopup();
|
||||
}
|
||||
|
||||
function renderPopup() {
|
||||
popup.appendChild(menu);
|
||||
}
|
||||
|
||||
// Код для закрытия меню при нажатии на ссылку
|
||||
|
||||
const links = Array.from(menu.children);
|
||||
|
||||
links.forEach((link) => {
|
||||
link.addEventListener("click", closeOnClick);
|
||||
});
|
||||
|
||||
function closeOnClick() {
|
||||
popup.classList.remove("open");
|
||||
hamb.classList.remove("active");
|
||||
body.classList.remove("noscroll");
|
||||
}
|
||||
window.onscroll = function() {scrollFunction()};
|
||||
|
||||
function scrollFunction() {
|
||||
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
|
||||
document.getElementById("myBtn").style.display = "block";
|
||||
} else {
|
||||
document.getElementById("myBtn").style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
// When the user clicks on the button, scroll to the top of the document
|
||||
function topFunction() {
|
||||
document.body.scrollTop = 0; // For Safari
|
||||
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
|
||||
}
|
||||
|
1052
mainapp/static/first/style.css
Executable file
BIN
mainapp/static/tmp/03r8rig64710n68g23fk520230425072347.jpg
Executable file
After Width: | Height: | Size: 688 KiB |
BIN
mainapp/static/tmp/05t87x9y1tuz51a4ks745y3ve10z88t5p1267bs1u.jpg
Executable file
After Width: | Height: | Size: 91 KiB |
BIN
mainapp/static/tmp/08711kze20r15uge1k25ga0zg79iep110ixe10kp4o.jpg
Executable file
After Width: | Height: | Size: 267 KiB |
BIN
mainapp/static/tmp/0c63t2racs7dq910f510c30uv58u1vgu6a42vnzw6k.jpg
Executable file
After Width: | Height: | Size: 72 KiB |
BIN
mainapp/static/tmp/0i1u51610810nlmxyy00l51015n6v53s4di10354calu.jpg
Executable file
After Width: | Height: | Size: 522 KiB |
BIN
mainapp/static/tmp/0q01091u0k1tgu7nsguq620230425072156.jpg
Executable file
After Width: | Height: | Size: 30 KiB |
BIN
mainapp/static/tmp/10100va7tmn3c5qp5g5710u6t93894fh2fdc4avxt86.jpg
Executable file
After Width: | Height: | Size: 985 KiB |
BIN
mainapp/static/tmp/103dg86f9py6g20041t10i20230425070740.jpg
Executable file
After Width: | Height: | Size: 98 KiB |
BIN
mainapp/static/tmp/103qrg24c820zhru0xidt20230425095528.jpg
Executable file
After Width: | Height: | Size: 99 KiB |
BIN
mainapp/static/tmp/1075h30at2z5rr3fgx80l20230425071849.jpg
Executable file
After Width: | Height: | Size: 70 KiB |
BIN
mainapp/static/tmp/1090nqu89m51511040957y20230425160312.png
Executable file
After Width: | Height: | Size: 5.5 KiB |
BIN
mainapp/static/tmp/110rn312lg98v10yin7zh107otvaru896231m84e2az.jpg
Executable file
After Width: | Height: | Size: 83 KiB |
BIN
mainapp/static/tmp/110s96sw10481077yfqw1xuueinoxd2953ia35ae810i.jpg
Executable file
After Width: | Height: | Size: 275 KiB |
BIN
mainapp/static/tmp/12p35821bt4663bhbnvpg20xp74kt3g5t310qx34.jpg
Executable file
After Width: | Height: | Size: 463 KiB |
BIN
mainapp/static/tmp/135no2710029yi23poit967n6u460m910f10665df65.jpeg
Executable file
After Width: | Height: | Size: 974 KiB |
BIN
mainapp/static/tmp/1r3wd4gbl94i0m52xcvg5uokdqnq40sg10k3pm12e.jpg
Executable file
After Width: | Height: | Size: 644 KiB |
BIN
mainapp/static/tmp/1sp1c8m733w9ca2f869ba523396l10gp1ndt3o9ne.jpg
Executable file
After Width: | Height: | Size: 110 KiB |
BIN
mainapp/static/tmp/25sp105951pn25c6co107h20230425070705.jpg
Executable file
After Width: | Height: | Size: 232 KiB |
BIN
mainapp/static/tmp/2m875197ir1188v7s10i410do4x192q99ok2rvz9kt.JPG
Executable file
After Width: | Height: | Size: 351 KiB |
BIN
mainapp/static/tmp/2oh3h7v8s8b5w022ec1010b6kp10g3z02t7f05xcz66.jpg
Executable file
After Width: | Height: | Size: 463 KiB |
BIN
mainapp/static/tmp/3109a6a6f221991339y9u20230425070809.jpg
Executable file
After Width: | Height: | Size: 170 KiB |
BIN
mainapp/static/tmp/31k0n8g639e32264hiu120230425095204.jpg
Executable file
After Width: | Height: | Size: 199 KiB |
BIN
mainapp/static/tmp/3s937dwo10zon2fm510awtzytlyi5wa77feb9vv462.jpg
Executable file
After Width: | Height: | Size: 187 KiB |
BIN
mainapp/static/tmp/3usp5l9v2x5t4108k7r12l81ae1kp2yhg25108o32l.jpg
Executable file
After Width: | Height: | Size: 403 KiB |
BIN
mainapp/static/tmp/3wby7a63x27k1dl3400a72qtiq4k9u05z9ex8287.jpg
Executable file
After Width: | Height: | Size: 75 KiB |
BIN
mainapp/static/tmp/4110764iuutuo5k1h1g4f7zrig100nq5g9gs04ged8.jpg
Executable file
After Width: | Height: | Size: 463 KiB |
BIN
mainapp/static/tmp/467f201ni410d10105a0106574101079z3hx1k81610gxon.jpg
Executable file
After Width: | Height: | Size: 275 KiB |
BIN
mainapp/static/tmp/517m3bfp776x2f8b5435lw0syvwwaz9tfsy1rg82.jpg
Executable file
After Width: | Height: | Size: 85 KiB |
BIN
mainapp/static/tmp/56o941b024k711324sbd20230425071805.png
Executable file
After Width: | Height: | Size: 1 MiB |
BIN
mainapp/static/tmp/61077ioyo77v11010f89e720230425095420.jpg
Executable file
After Width: | Height: | Size: 196 KiB |
BIN
mainapp/static/tmp/61331v64kq8u5o23u3g820230425072307.jpg
Executable file
After Width: | Height: | Size: 122 KiB |
BIN
mainapp/static/tmp/6p9106t28191av10v7068k20230426063130.jpg
Executable file
After Width: | Height: | Size: 377 KiB |
BIN
mainapp/static/tmp/79y6br107luvq4xr44fn920230425072434.jpg
Executable file
After Width: | Height: | Size: 688 KiB |
BIN
mainapp/static/tmp/7axefx5qh70172lrc33e20230425071826.jpg
Executable file
After Width: | Height: | Size: 56 KiB |
BIN
mainapp/static/tmp/7c43d01032gm086120ui15r0dwv20vr10c2d10r1d02.jpg
Executable file
After Width: | Height: | Size: 226 KiB |
BIN
mainapp/static/tmp/7kmn18od3yh96xy0sgyd20230425071741.jpg
Executable file
After Width: | Height: | Size: 99 KiB |
BIN
mainapp/static/tmp/7p3oectm1omr44b3gcy9df8p7110eqfat689b58l1.JPG
Executable file
After Width: | Height: | Size: 462 KiB |
BIN
mainapp/static/tmp/80gng16l78310h7fnu7gvq5p60i9192r23c01t27a.jpg
Executable file
After Width: | Height: | Size: 187 KiB |
BIN
mainapp/static/tmp/81u28w3rykq63102104v7520230425071754.jpg
Executable file
After Width: | Height: | Size: 88 KiB |
BIN
mainapp/static/tmp/821ffzzf1k910wv6p58eq20230425070956.jpg
Executable file
After Width: | Height: | Size: 58 KiB |
BIN
mainapp/static/tmp/84w2xw17510zp9cfz7fqon6m010i10525g1r1alzuvb.JPG
Executable file
After Width: | Height: | Size: 462 KiB |
BIN
mainapp/static/tmp/8fr0a5210l5v7pzbwg9v420230425095812.jpg
Executable file
After Width: | Height: | Size: 152 KiB |
BIN
mainapp/static/tmp/8i9xhg4h5577e1972l68f6g97vk1mg0rb94osuff.jpg
Executable file
After Width: | Height: | Size: 236 KiB |
BIN
mainapp/static/tmp/8pz2v2n6af9rgt2yv7x6yohy2qx7lpqobe9zq6p10.JPG
Executable file
After Width: | Height: | Size: 462 KiB |
BIN
mainapp/static/tmp/8qw27ty176m84x0i4e81020230425071815.jpg
Executable file
After Width: | Height: | Size: 1 MiB |
BIN
mainapp/static/tmp/904x0a616f1gti5h10t91020230425071059.jpg
Executable file
After Width: | Height: | Size: 290 KiB |
BIN
mainapp/static/tmp/9064o103910836v8510byh1wl910xffwr1ir1p8oaw53.jpg
Executable file
After Width: | Height: | Size: 72 KiB |
BIN
mainapp/static/tmp/92glu66q0xk510370105ae20230425072242.jpg
Executable file
After Width: | Height: | Size: 105 KiB |
BIN
mainapp/static/tmp/97x629sk102t6v789218rq9ms3qoc402887f63k7r.jpg
Executable file
After Width: | Height: | Size: 652 KiB |
BIN
mainapp/static/tmp/9f62zf1fo28mh8rrf29afyl652tt32yk01llfuru.jpg
Executable file
After Width: | Height: | Size: 417 KiB |
BIN
mainapp/static/tmp/9mlr1u108xa6de4899841020230426063148.jpg
Executable file
After Width: | Height: | Size: 377 KiB |
BIN
mainapp/static/tmp/9y67f1n9ns10g36ozc991020230425070932.jpg
Executable file
After Width: | Height: | Size: 153 KiB |
BIN
mainapp/static/tmp/a0q7b9mi935605og2107720230425071839.jpg
Executable file
After Width: | Height: | Size: 344 KiB |
BIN
mainapp/static/tmp/a1010nc27410fizhe567q720230425071730.jpg
Executable file
After Width: | Height: | Size: 170 KiB |
BIN
mainapp/static/tmp/bad gallileo.jpg
Executable file
After Width: | Height: | Size: 87 KiB |
BIN
mainapp/static/tmp/c46749c3yfqf394ir6ean3elfe9vgf54b82vz6t6.jpg
Executable file
After Width: | Height: | Size: 363 KiB |
BIN
mainapp/static/tmp/di2x50esa3x4y995wo1q20230426045045.jpg
Executable file
After Width: | Height: | Size: 377 KiB |
BIN
mainapp/static/tmp/dtw1q3vz610wu76r0b10r4g32ms1e3liec82rb0010.png
Executable file
After Width: | Height: | Size: 1.1 MiB |
BIN
mainapp/static/tmp/f270310pn77hm7v9k0g0308n15pgor62166855a62.jpg
Executable file
After Width: | Height: | Size: 114 KiB |
BIN
mainapp/static/tmp/f8e7c8g1r46fd7kf74iu20230425095238.jpg
Executable file
After Width: | Height: | Size: 105 KiB |
BIN
mainapp/static/tmp/ff.jpg
Executable file
After Width: | Height: | Size: 165 KiB |
BIN
mainapp/static/tmp/ff2.jpg
Executable file
After Width: | Height: | Size: 98 KiB |
BIN
mainapp/static/tmp/ff3.jpg
Executable file
After Width: | Height: | Size: 90 KiB |
BIN
mainapp/static/tmp/ff4.jpg
Executable file
After Width: | Height: | Size: 128 KiB |
BIN
mainapp/static/tmp/ff5.jpg
Executable file
After Width: | Height: | Size: 191 KiB |
BIN
mainapp/static/tmp/ff6.jpg
Executable file
After Width: | Height: | Size: 263 KiB |
BIN
mainapp/static/tmp/ff7.jpg
Executable file
After Width: | Height: | Size: 109 KiB |
BIN
mainapp/static/tmp/ff8.jpg
Executable file
After Width: | Height: | Size: 134 KiB |
BIN
mainapp/static/tmp/ff9.jpg
Executable file
After Width: | Height: | Size: 180 KiB |
BIN
mainapp/static/tmp/fo0207f1063d7lzg2va4820230425072023.jpg
Executable file
After Width: | Height: | Size: 145 KiB |
BIN
mainapp/static/tmp/gca7to5o8y0f3l669m2220230425072005.jpg
Executable file
After Width: | Height: | Size: 208 KiB |
BIN
mainapp/static/tmp/h24f22o6den9l39h10fv520230425071547.png
Executable file
After Width: | Height: | Size: 591 KiB |
BIN
mainapp/static/tmp/h8f9x101649gzlgtc67c720230425095315.jpg
Executable file
After Width: | Height: | Size: 34 KiB |
BIN
mainapp/static/tmp/he7oka0a2kh80feud80x20230425095646.jpg
Executable file
After Width: | Height: | Size: 50 KiB |
BIN
mainapp/static/tmp/hg3k1fa9b3xi7qhm39z1020230426063129.jpg
Executable file
After Width: | Height: | Size: 377 KiB |
BIN
mainapp/static/tmp/i27t82gy701018g3120m220230425095349.jpg
Executable file
After Width: | Height: | Size: 232 KiB |
BIN
mainapp/static/tmp/i4dgot6fpyltwoq41010zndqx1qw5sua5agzga50ia.jpg
Executable file
After Width: | Height: | Size: 72 KiB |
BIN
mainapp/static/tmp/i867mhf2hkgq1g9108a0w20230425071704.jpg
Executable file
After Width: | Height: | Size: 112 KiB |
BIN
mainapp/static/tmp/imgg_1016mdn20gsagpgha.jpg
Executable file
After Width: | Height: | Size: 37 KiB |
BIN
mainapp/static/tmp/imgg_109megsl2290l3918.jpg
Executable file
After Width: | Height: | Size: 74 KiB |
BIN
mainapp/static/tmp/imgg_1ie4g10m75y7326pa.jpg
Executable file
After Width: | Height: | Size: 73 KiB |
BIN
mainapp/static/tmp/imgg_1v80p3tm86zkk55n.jpg
Executable file
After Width: | Height: | Size: 27 KiB |
BIN
mainapp/static/tmp/imgg_6112222lup079qmx.jpg
Executable file
After Width: | Height: | Size: 43 KiB |
BIN
mainapp/static/tmp/imgg_6d810138a53d9kg7x.jpg
Executable file
After Width: | Height: | Size: 63 KiB |
BIN
mainapp/static/tmp/imgg_6l7hl791d26610tka.jpg
Executable file
After Width: | Height: | Size: 28 KiB |
BIN
mainapp/static/tmp/imgg_74t0h23q088cu5oo.jpg
Executable file
After Width: | Height: | Size: 34 KiB |
BIN
mainapp/static/tmp/imgg_7m55ci10710uh9f5ti.jpg
Executable file
After Width: | Height: | Size: 230 KiB |
BIN
mainapp/static/tmp/imgg_881z849q80ix2l8e.jpg
Executable file
After Width: | Height: | Size: 234 KiB |