Initial commit
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM python:3.11
|
||||
|
||||
COPY ./source /source
|
||||
RUN pip install --no-cache-dir -r /source/requirements.txt
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
RUN useradd app
|
||||
USER app
|
||||
|
||||
WORKDIR /source
|
||||
CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"]
|
||||
11
source/app.py
Normal file
11
source/app.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from flask import Flask, redirect, render_template
|
||||
|
||||
app = Flask(__name__)
|
||||
PORT = 8080
|
||||
|
||||
@app.route("/")
|
||||
def home():
|
||||
return render_template("index.html")
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(port=PORT)
|
||||
10
source/requirements.txt
Normal file
10
source/requirements.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
blinker
|
||||
click
|
||||
Flask
|
||||
gunicorn
|
||||
itsdangerous
|
||||
Jinja2
|
||||
MarkupSafe
|
||||
packaging
|
||||
setuptools
|
||||
Werkzeug
|
||||
BIN
source/static/pfp.png
Normal file
BIN
source/static/pfp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
54
source/static/style.css
Normal file
54
source/static/style.css
Normal file
@@ -0,0 +1,54 @@
|
||||
html{overflow: hidden;}
|
||||
|
||||
body{
|
||||
|
||||
margin: 0px;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
|
||||
background-color: #960000;
|
||||
background: radial-gradient(circle, transparent 20%, #960000 20%, #960000 80%, transparent 80%, transparent), radial-gradient(circle, transparent 20%, #960000 20%, #960000 80%, transparent 80%, transparent) 25px 25px, linear-gradient(#fA8080 2px, transparent 2px) 0 -1px, linear-gradient(90deg, #fA8080 2px, #960000 2px) -1px 0;
|
||||
background-size: 50px 50px, 50px 50px, 25px 25px, 25px 25px;
|
||||
|
||||
font-family: "Lexend", sans-serif;
|
||||
font-size: 2vh;
|
||||
|
||||
}
|
||||
|
||||
h2{
|
||||
font-size: 2.2vh;
|
||||
}
|
||||
|
||||
#foreground{
|
||||
|
||||
margin: 10vh 10vw;
|
||||
width: 80vw;
|
||||
height: 80vh;
|
||||
|
||||
background-color: #FA8080;
|
||||
border-radius: 5vw;
|
||||
|
||||
}
|
||||
|
||||
#content > * {
|
||||
|
||||
margin: 10px;
|
||||
|
||||
}
|
||||
|
||||
#content {
|
||||
|
||||
margin: 0px;
|
||||
padding: 5vw;
|
||||
|
||||
}
|
||||
|
||||
#pfp{
|
||||
|
||||
width: 6vh;
|
||||
height: 6vh;
|
||||
border-radius: 3vh;
|
||||
|
||||
float: left;
|
||||
|
||||
}
|
||||
33
source/templates/index.html
Normal file
33
source/templates/index.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Craisin Cove</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap" rel="stylesheet">
|
||||
<link rel="icon" href="/static/pfp.png">
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="foreground"><div id="content">
|
||||
<img id="pfp" src="https://i.imgur.com/NUgL4ar.png">
|
||||
<h1 id="title">@Craisin</h1><br>
|
||||
<p>Saber Fencer | Script Kiddie | Math Nerd</p>
|
||||
<h2>Bio</h2>
|
||||
<p>Just a normal guy who likes fencing and STEM. Give it a few years maybe something will be here</p>
|
||||
<h2>Resources</h2>
|
||||
<ul>
|
||||
<li><a href="https://craisin.notion.site">My notes</a></li>
|
||||
<li><a href="https://github.com/craisined">My Github</a></li>
|
||||
<li><a href="https://codeforces.com/profile/craisin">My Codeforces</a></li>
|
||||
</ul>
|
||||
<h2>Mini Resume (as of 4/21/25)</h2>
|
||||
<ul>
|
||||
<li>C24 saber fencer</li>
|
||||
<li>92 on AMC 10</li>
|
||||
<li>USACO Silver</li>
|
||||
<li>Specialist Codeforces</li>
|
||||
</ul>
|
||||
</div></div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user