diff --git a/app/auth/views.py b/app/auth/views.py index 1c83235..176b823 100644 --- a/app/auth/views.py +++ b/app/auth/views.py @@ -34,6 +34,15 @@ def login(): return redirect(next_page) return render_template('auth/login.html', form=form) +@auth_bp.route('/preview', methods=['GET']) +def preview_login(): + if current_user.is_authenticated: + return redirect(url_for('welcome_bp.index')) + user = User.query.filter_by(username="preview").first() + if not user: + return redirect(url_for('welcome_bp.landing')) + login_user(user) + return redirect(url_for('welcome_bp.index')) @auth_bp.route('/register', methods=['GET', 'POST']) def register(): diff --git a/app/static/css/welcome/landing.css b/app/static/css/welcome/landing.css index b38dfe9..4384813 100644 --- a/app/static/css/welcome/landing.css +++ b/app/static/css/welcome/landing.css @@ -57,6 +57,14 @@ body { .hero-logo { height: 120px; + pointer-events: none; +} + +.hero-btn-row { + margin-top: 2rem; + display: flex; + justify-content: center; + gap: 2rem; } .hero-btn { @@ -64,30 +72,14 @@ body { background-color: #0276FF; border-radius: 24px; border-style: none; - box-shadow: rgba(255, 255, 255, 0.26) 0 1px 2px inset; - box-sizing: border-box; color: #fff; - cursor: pointer; - display: flex; - flex-direction: row; - flex-shrink: 0; - font-family: "RM Neue",sans-serif; - font-size: 100%; - line-height: 1.15; - margin-top: 10px; padding: 10px 21px; text-align: center; - text-transform: none; transition: color .13s ease-in-out,background .13s ease-in-out,opacity .13s ease-in-out,box-shadow .13s ease-in-out; - user-select: none; - -webkit-user-select: none; - touch-action: manipulation; + box-shadow: rgba(255, 255, 255, 0.26) 0 1px 2px inset; + box-sizing: border-box; filter: drop-shadow(0 2px 0.1rem #858585); - margin-left: auto; - margin-right: auto; - margin-bottom: 100px; - margin-top: 2rem; - font-size: 1.5rem; + } .hero-btn:active { @@ -95,7 +87,8 @@ body { } .hero-btn:hover { - background-color: #1C84FF; + background-color: #1C84FF; + } .carousel-inner { @@ -138,11 +131,6 @@ span.carousel-control-next-icon { } -.new-club { - display: flex; - align-items: center; -} - .new-club-title { flex: 1; margin: auto; @@ -284,7 +272,6 @@ section { .new-club-title { font-size: 20px; - width: 80vw; } .showcase { margin-left: 2rem; diff --git a/app/templates/welcome/landing_page.html b/app/templates/welcome/landing_page.html index 865c27e..0727953 100644 --- a/app/templates/welcome/landing_page.html +++ b/app/templates/welcome/landing_page.html @@ -20,7 +20,10 @@