Skip to content

Commit

Permalink
feat: more improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfromyeg committed Dec 29, 2023
1 parent 6e4eeea commit 9cdf92b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
8 changes: 8 additions & 0 deletions bereal/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
It contains the Flask app routing and the functions to interact with the BeReal API.
"""
import os
import warnings
from datetime import datetime, timedelta
from typing import Any

Expand All @@ -30,6 +31,8 @@
)
from .videos import build_slideshow

warnings.filterwarnings("ignore", category=UserWarning, module="tzlocal")

app = Flask(__name__)
serializer = URLSafeTimedSerializer(SECRET_KEY)

Expand Down Expand Up @@ -170,6 +173,11 @@ def get_video(filename: str) -> tuple[Response, int]:
abort(403)


@app.route("/favicon.ico")
def favicon():
return send_from_directory(app.static_folder, "favicon.ico", mimetype="image/vnd.microsoft.icon")


@app.errorhandler(400)
def bad_request(error) -> tuple[Response, int]:
logger.error("Got 400 error: %s", error)
Expand Down
Binary file modified bereal/static/favicon.ico
Binary file not shown.
Binary file modified bereal/static/images/endCard.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 11 additions & 5 deletions client/src/styles/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
justify-content: center;
align-items: center;
min-height: 100vh;
padding-top: 5rem; /* Adjust top padding as needed */
background-color: #f3f4f6; /* Light gray background */
padding-top: 5rem;
background-color: #f3f4f6;
flex-direction: column;
}

.App div {
width: 100%;
max-width: 500px; /* Adjust width as needed */
max-width: 500px;
padding: 2rem;
background: white;
border-radius: 8px;
Expand All @@ -36,14 +36,20 @@
}

.App button {
background-color: #3b82f6; /* Tailwind blue-500 */
background-color: #3b82f6;
color: white;
cursor: pointer;
transition: background-color 0.2s;
}

.App button:hover {
background-color: #2563eb; /* Tailwind blue-600 */
background-color: #2563eb;
}

button:disabled {
background-color: grey;
cursor: not-allowed;
opacity: 0.7;
}

.App video {
Expand Down

0 comments on commit 9cdf92b

Please sign in to comment.