diff --git a/onlylegs/models.py b/onlylegs/models.py index ace0b67..21a1bca 100644 --- a/onlylegs/models.py +++ b/onlylegs/models.py @@ -87,9 +87,12 @@ class User(db.Model, UserMixin): # pylint: disable=too-few-public-methods, C010 id = db.Column(db.Integer, primary_key=True) alt_id = db.Column(db.String, unique=True, nullable=False, default=str(uuid4())) - profile_picture = db.Column(db.String, nullable=True, default=None) + picture = db.Column(db.String, nullable=True, default=None) + picture_colour = db.Column(db.String, nullable=True, default=None) + banner = db.Column(db.String, nullable=True, default=None) + bannner_colour = db.Column(db.String, nullable=True, default=None) + username = db.Column(db.String, unique=True, nullable=False) - email = db.Column(db.String, unique=True, nullable=False) password = db.Column(db.String, nullable=False) joined_at = db.Column( diff --git a/onlylegs/static/banner.png b/onlylegs/static/banner.png new file mode 100644 index 0000000..179ed20 Binary files /dev/null and b/onlylegs/static/banner.png differ diff --git a/onlylegs/static/sass/components/banner.sass b/onlylegs/static/sass/components/banner.sass index f835868..9f1d1fd 100644 --- a/onlylegs/static/sass/components/banner.sass +++ b/onlylegs/static/sass/components/banner.sass @@ -36,6 +36,8 @@ .banner height: 30rem + max-height: 69vh + background-color: RGB($bg-300) img @@ -72,9 +74,8 @@ bottom: 0 display: grid - grid-template-columns: 1fr auto - grid-template-rows: 1fr auto auto - grid-template-areas: 'info info' 'header header' 'subtitle options' + grid-template-columns: auto 1fr auto + grid-template-areas: 'info info info' 'image header header' 'subtitle subtitle options' z-index: +2 @@ -109,6 +110,19 @@ margin-top: auto grid-area: options + .banner-picture + grid-area: image + + margin: auto 1rem auto 0 + + position: relative + + width: 6.9rem + height: 6.9rem + + background-color: RGB($primary) + border-radius: $rad + .banner-small height: 3.5rem background-color: RGB($bg-100) @@ -165,8 +179,12 @@ display: none .banner - min-height: 17rem + min-height: 15rem height: auto + max-height: 30vh + + .banner-filter + background: linear-gradient(to bottom, RGB($bg-100), transparent) .banner-content padding: 0.5rem @@ -178,7 +196,7 @@ align-items: center .banner-header - margin: 1rem 0 + margin: 0.5rem 0 text-align: center font-size: 2.5rem @@ -192,6 +210,14 @@ .pill-row margin-top: 0rem + .banner-picture + margin: 0 auto + + width: 4rem + height: 4rem + + display: flex + .banner-small .banner-content .banner-info diff --git a/onlylegs/static/sass/components/gallery.sass b/onlylegs/static/sass/components/gallery.sass index e714e23..9b980ce 100644 --- a/onlylegs/static/sass/components/gallery.sass +++ b/onlylegs/static/sass/components/gallery.sass @@ -1,3 +1,16 @@ +.gallery-header + margin: 0.5rem + padding: 0 + + width: 100% + + display: flex + flex-direction: row + justify-content: flex-start + + font-size: 2rem + font-weight: 700 + .gallery-grid margin: 0 padding: 0.35rem diff --git a/onlylegs/static/sass/components/pop-up.sass b/onlylegs/static/sass/components/pop-up.sass index 6a7de6e..0e6974b 100644 --- a/onlylegs/static/sass/components/pop-up.sass +++ b/onlylegs/static/sass/components/pop-up.sass @@ -138,7 +138,7 @@ @media (max-width: $breakpoint) .pop-up .pop-up-wrapper - width: calc(100% - 0.75rem) + max-width: calc(100% - 0.75rem) max-height: 95vh .pop-up-content diff --git a/onlylegs/templates/profile.html b/onlylegs/templates/profile.html index 2729cb8..c85c81d 100644 --- a/onlylegs/templates/profile.html +++ b/onlylegs/templates/profile.html @@ -2,13 +2,41 @@ {% block nav_profile %}selected{% endblock %} {% block content %} -