diff --git a/.gitignore b/.gitignore index 1433b19..4fa2b83 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ venv src/static/uploads data src/lovedb.db +src/__pycache__ diff --git a/src/__pycache__/main.cpython-314.pyc b/src/__pycache__/main.cpython-314.pyc index 2b97211..a238518 100644 Binary files a/src/__pycache__/main.cpython-314.pyc and b/src/__pycache__/main.cpython-314.pyc differ diff --git a/src/lovedb.db b/src/lovedb.db index 56b8f63..db65873 100644 Binary files a/src/lovedb.db and b/src/lovedb.db differ diff --git a/src/main.py b/src/main.py index e89a4f0..5e0753b 100644 --- a/src/main.py +++ b/src/main.py @@ -26,7 +26,7 @@ COUNTRIES = [ "Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and "Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina", "Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cabo Verde","Cambodia", "Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros", - "Congo (Congo-Brazzaville)","Costa Rica","Croatia","Cuba","Cyprus","Czechia (Czech Republic)", + "Congo (Congo-Brazzaville)","Costa Rica","Croatia","Cuba","Cyprus","Czechia (Czech Republic)", "Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador", "Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini (fmr. Swaziland)", "Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece", @@ -67,6 +67,7 @@ class User(db.Model): prefered_age_range = db.Column(db.String(20), nullable=True) likes = db.Column(db.JSON, nullable=True) dislikes = db.Column(db.JSON, nullable=True) + about = db.Column(db.String(4096), nullable=True) xmpp = db.Column(db.String(128), unique=True, nullable=False) email = db.Column(db.String(128), unique=True, nullable=True) phone = db.Column(db.String(20), unique=True, nullable=True) diff --git a/src/static/drip.css b/src/static/drip.css index e48c8aa..5b595b4 100644 --- a/src/static/drip.css +++ b/src/static/drip.css @@ -5,6 +5,7 @@ font-style: normal; font-display: swap; } + @font-face { font-family: 'font'; src: url('/static/font/font-Bold.ttf') format('truetype'); @@ -17,12 +18,13 @@ body { background: #FFE0F4; color: #FF00AA; text-shadow: 0px 0px 5px rgba(255, 0, 170, 0.8); - padding: 5px; - max-width: 75%; - margin: auto; + padding: 10px; + max-width: 900px; + width: 100%; + margin: auto; font-family: font; font-weight: normal; - line-height: 1.2rem; + line-height: 1.4rem; word-wrap: break-word; font-size: 22px; } @@ -33,11 +35,9 @@ footer { margin-top: auto; } -main { -} - img { - max-width: 100%; + max-width: 100%; + height: auto; } strong, b { @@ -47,25 +47,18 @@ strong, b { section { margin-top: 32px; background: #fff; - padding: 5px; - border: medium; - border-color: #FF00AA; + padding: 10px; + border: medium dashed #FF00AA; border-radius: 5px; - border-style: dashed; } - h1 { color: #FF00AA; text-decoration: underline yellow; text-align: center; } -h2 { - color: #FF00AA; -} - -h3 { +h2, h3 { color: #FF00AA; } @@ -80,6 +73,8 @@ a:hover { table { width: 100%; border-collapse: collapse; + overflow-x: auto; + display: block; } th, td { @@ -94,5 +89,66 @@ th { } tr:nth-child(even) { - background-color: #FF00AA; + background-color: #FFB3DA; +} + +@media (max-width: 768px) { + + body { + font-size: 20px; + padding: 8px; + } + + section { + padding: 8px; + margin-top: 24px; + } + + h1 { + font-size: 1.8rem; + } + + h2 { + font-size: 1.4rem; + } + + h3 { + font-size: 1.2rem; + } + +} + +@media (max-width: 480px) { + + body { + font-size: 18px; + padding: 6px; + line-height: 1.5rem; + } + + section { + padding: 8px; + margin-top: 20px; + } + + h1 { + font-size: 1.5rem; + } + + h2 { + font-size: 1.2rem; + } + + h3 { + font-size: 1.1rem; + } + + table { + font-size: 14px; + } + + th, td { + padding: 6px; + } + } diff --git a/src/templates/page.html b/src/templates/page.html index 9cd5589..cde77d1 100644 --- a/src/templates/page.html +++ b/src/templates/page.html @@ -3,6 +3,7 @@ Dating Website +

Dating Website