Merge pull request #4 from tools4ds/retargeting
Browse filesAdd logos, deployment and unauthorized page change
Files changed (7)
1 unmodified line234556781 unmodified line
on: push: branches: [main, retargeting] branches: [main]
# run this workflow manualy from the Actions tab workflow_dispatch:10 unmodified lines11121314151410 unmodified lines**/.files/*.env*.pycvenv/appsvenv/389 unmodified lines390391392393394393394395396397398389 unmodified linesif __name__ == "__main__": parser = argparse.ArgumentParser(description="Run the AI Tutor application") parser.add_argument("--host", default="0.0.0.0", help="Host to run the server on") parser.add_argument("--port", type=int, default=7860, help="Port to run the server on") parser.add_argument( "--port", type=int, default=7860, help="Port to run the server on" ) args = parser.parse_args()
uvicorn.run(app, host=args.host, port=args.port)1234534567889101011121314151617181920212211121314151617181920212223242425262728293031323334353625262728293031323334353637383839404142434439404142434445464647484950514748495051525353545556575854555657585960606162636465666768697071616263646566676869707172737374757674757677787879798081818283848586878889909182838485868788899091929394959697989399100<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Access Restricted</title> <style> @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap'); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap");
body, body, html { margin: 0; padding: 0; font-family: 'Inter', sans-serif; background-color: #f7f7f7; /* Light gray background */ background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); /* Subtle geometric pattern */ background-repeat: repeat; display: flex; align-items: center; justify-content: center; height: 100vh; color: #333; } html { margin: 0; padding: 0; font-family: "Inter", sans-serif; background-color: #f7f7f7; /* Light gray background */ background-image: url("https://www.transparenttextures.com/patterns/cubes.png"); /* Subtle geometric pattern */ background-repeat: repeat; display: flex; align-items: center; justify-content: center; height: 100vh; color: #333; }
.container { background: rgba(255, 255, 255, 0.9); border: 1px solid #ddd; border-radius: 8px; width: 100%; max-width: 400px; padding: 50px; box-sizing: border-box; text-align: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } .container { background: rgba(255, 255, 255, 0.9); border: 1px solid #ddd; border-radius: 8px; width: 100%; max-width: 400px; padding: 50px; box-sizing: border-box; text-align: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.avatar { width: 90px; height: 90px; border-radius: 50%; margin-bottom: 25px; border: 2px solid #ddd; } .avatar { width: 90px; height: 90px; border-radius: 50%; margin-bottom: 25px; border: 2px solid #ddd; }
.container h1 { margin-bottom: 20px; font-size: 26px; font-weight: 600; color: #1a1a1a; } .container h1 { margin-bottom: 20px; font-size: 26px; font-weight: 600; color: #1a1a1a; }
.container p { font-size: 18px; color: #4a4a4a; margin-bottom: 35px; line-height: 1.5; } .container p { font-size: 18px; color: #4a4a4a; margin-bottom: 35px; line-height: 1.5; }
.button { padding: 14px 0; margin: 12px 0; font-size: 16px; border-radius: 6px; cursor: pointer; width: 100%; border: 1px solid #ccc; background-color: #007BFF; color: #fff; transition: background-color 0.3s ease, border-color 0.3s ease; } .button { padding: 14px 0; margin: 12px 0; font-size: 16px; border-radius: 6px; cursor: pointer; width: 100%; border: 1px solid #ccc; background-color: #007bff; color: #fff; transition: background-color 0.3s ease, border-color 0.3s ease; }
.button:hover { background-color: #0056b3; border-color: #0056b3; } .button:hover { background-color: #0056b3; border-color: #0056b3; } </style></head><body> </head> <body> <div class="container"> <img src="/public/assets/images/avatars/ai-tutor.png" alt="AI Tutor Avatar" class="avatar"> <h1>Access Restricted</h1> <p> We're currently testing things out for the <strong>DS598</strong> course. Access is restricted to students of the course. If you're enrolled in <strong>DS598</strong> and seeing this message, please reach out to us, and we'll help you get access.<br><br> <em>P.S. Don't forget to use your BU email when logging in!</em> </p> <form action="/" method="get"> <button type="submit" class="button">Return to Home</button> </form> <img src="/public/assets/images/avatars/ai-tutor.png" alt="AI Tutor Avatar" class="avatar" /> <h1>Access Restricted</h1> <p> We're currently testing things out for the <strong>DS701</strong> course. Access is restricted to students of the course. If you're enrolled in <strong>DS701</strong> and seeing this message, please reach out to us, and we'll help you get access.<br /><br /> <em>P.S. Don't forget to use your BU email when logging in!</em> </p> <form action="/" method="get"> <button type="submit" class="button">Return to Home</button> </form> </div></body> </body></html>.github/workflows/deploy_to_hf.yml+1-1
.gitignore+1-2
apps/ai_tutor/app.py+3-2
apps/ai_tutor/public/assets/images/avatars/logo.pngAdded
apps/ai_tutor/public/logo_dark.png


apps/ai_tutor/public/logo_light.png


apps/ai_tutor/templates/unauthorized.html+85-79