added about to db

This commit is contained in:
bacalhau 2026-03-09 18:50:53 +00:00
parent 6652284dbc
commit d44c1b5f97
6 changed files with 79 additions and 20 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ venv
src/static/uploads
data
src/lovedb.db
src/__pycache__

Binary file not shown.

Binary file not shown.

View file

@ -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)

View file

@ -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;
}
}

View file

@ -3,6 +3,7 @@
<head>
<title>Dating Website</title>
<link rel="stylesheet" href="{{ url_for('static', filename='drip.css') }}">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<header><h1>Dating Website</h1></header>
<nav>