File size: 1,308 Bytes
74cf889
 
a8b0080
e861fa2
74cf889
e861fa2
a8b0080
 
 
 
 
 
 
 
 
74cf889
 
 
 
 
 
 
e00dfab
74cf889
e00dfab
 
 
 
 
 
 
 
 
 
 
 
 
b456976
e00dfab
 
 
 
 
 
 
 
 
74cf889
 
268eab3
 
74cf889
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
from fastapi import FastAPI
from fastapi.responses import HTMLResponse
from fastapi.middleware.cors import CORSMiddleware

app = FastAPI()

# Add CORS middleware
app.add_middleware(
    CORSMiddleware,
    allow_origins=["*"],  
    allow_credentials=True,
    allow_methods=["*"],
    allow_headers=["*"],
)

@app.get("/", response_class=HTMLResponse)
async def read_root():
    html_content = """
    <!DOCTYPE html>
    <html>
    <head>
        <title>Fullscreen IFrame</title>
        
        <style>
        body {
            background-color: #333; /* Charcoal background */
            color: #fff; /* White text color for contrast */
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
        }
        h1 {
            font-size: 2em;
            text-align: center;
            transition: font-size 0.3s ease; 
        }
        h1:hover {
            font-size: 3em; 
        }
        a {
            color: #EA3C53; 
            text-decoration: none;
        }
        a:hover {
            text-decoration: none; 
        }
    </style>
    </head>
    <body>
    <h1><a href="https://production.d2iujulgl0aoba.amplifyapp.com/">Pixel Prompt</a> has moved</h1>
        
    </body>
    </html>
    """
    return HTMLResponse(content=html_content)