Browse Source

first commit

master
junikimm717 4 years ago
commit
b3298d5f56
  1. 3
      .gitignore
  2. 1
      first/Procfile
  3. 26
      first/main.py
  4. 11
      first/requirements.txt
  5. 3
      first/static/.gitignore
  6. BIN
      first/static/images/pixel.png
  7. 9
      first/static/install.sh
  8. 3
      first/static/remove.sh
  9. 50
      first/templates/achievements.html
  10. 37
      first/templates/base.html
  11. 34
      first/templates/index.html
  12. 29
      first/templates/school.html

3
.gitignore

@ -0,0 +1,3 @@
.DS_Store
venv
__pycache__

1
first/Procfile

@ -0,0 +1 @@
web: gunicorn main:app

26
first/main.py

@ -0,0 +1,26 @@
#!/usr/bin/env python3
from flask import Flask, url_for, request, render_template, abort
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/achievements')
def achievements():
return render_template('achievements.html')
@app.route('/school')
def school():
return render_template('school.html')
"""
@app.route('/projects')
def projects():
return "school"
"""
if __name__ == "__main__":
app.run()

11
first/requirements.txt

@ -0,0 +1,11 @@
click==7.1.2
Flask==1.1.2
greenlet==1.0.0
gunicorn==20.1.0
itsdangerous==1.1.0
Jinja2==2.11.3
MarkupSafe==1.1.1
msgpack==1.0.2
pynvim==0.4.3
SQLAlchemy==1.4.13
Werkzeug==1.0.1

3
first/static/.gitignore

@ -0,0 +1,3 @@
bootstrap-5.0.0-beta3-dist
bootstrap-5.0.0-beta3-dist.zip
bootstrap

BIN
first/static/images/pixel.png

After

Width: 215  |  Height: 178  |  Size: 18 KiB

9
first/static/install.sh

@ -0,0 +1,9 @@
#!/usr/bin/env bash
curl -LO https://github.com/twbs/bootstrap/releases/download/v5.0.0-beta3/bootstrap-5.0.0-beta3-dist.zip
unzip bootstrap-5.0.0-beta3-dist.zip
mv bootstrap-5.0.0-beta3-dist bootstrap
rm -rf bootstrap-5.0.0-beta3-dist.zip

3
first/static/remove.sh

@ -0,0 +1,3 @@
#!/usr/bin/env bash
rm -rf bootstrap

50
first/templates/achievements.html

@ -0,0 +1,50 @@
{% extends "base.html" %}
{% block content %}
<div class="container-fluid">
<div class="row">
<h1> Achievements </h1>
<p> I have competed in numerous olympiads and academic competitions as
of this date. </p>
</div>
<div class="row">
<div class="col-md-5 text-light bg-primary m-1" style="border-radius:25px">
<a
href="https://www.maa.org/sites/default/files/pdf/AMC/usamo/2021/JMO%20List.pdf"
target="new"
><h2 class="text-light"> USA Junior Mathematical Olympiad Qualifier 2021 </h2></a>
<p>
In the 2020-21 MAA Season, I obtained a USAJMO qualification
index of 241 and was thus eligible to participate in the
USA Junior Mathematical Olympiad.
</p>
</div>
<div class="col-md-5 text-light bg-primary m-1" style="border-radius:25px">
<a
href="http://usaco.org/current/data/jan21_gold_results.html"
target="new"
><h2 class="text-light"> USACO Platinum </h2></a>
<p>
In the 2021 USACO January Contest, I was promoted to the
Platinum Division of the USA Computing Olympiad.
</p>
</div>
</div>
<div class="row">
<div class="col-md-5 text-light bg-primary m-1" style="border-radius:25px">
<h2> American Invitational Mathematics Qualifier 2020 </h2>
<p>
In the 2019-20 MAA season, I scored a 109.5 on the AMC 10A 2020
and qualified for the AIME 2020.
</p>
</div>
<div class="col-md-5 text-light bg-primary m-1" style="border-radius:25px">
<h2> USNCO National Exam Nominee </h2>
<p>
In the 2021 USNCO Local Exam, I was nominated by the Silicon
Valley Division of ACS to take the USNCO National exam.
</p>
</div>
</div>
</div>
{% endblock %}

37
first/templates/base.html

@ -0,0 +1,37 @@
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" href="{{ url_for('static', filename = 'bootstrap/css/bootstrap.min.css') }}"></link>
<script src="{{ url_for('static', filename = 'bootstrap/js/bootstrap.min.js') }}"></script>
<title> Juni Kim </title>
</head>
<body>
<nav class="navbar navbar-expand-sm navbar-light bg-light">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="{{ url_for('index') }}"> Juni Kim </a>
</div>
<ul class="nav navbar-nav">
<li>
<button class="btn btn-primary m-2">
<a href="{{ url_for('achievements') }}" class="text-light">
Achievements
</a>
</button>
</li>
<li>
<button class="btn btn-primary m-2">
<a href="{{ url_for('school') }}" class="text-light">
School
</a>
</button>
</li>
</ul>
</div>
</nav>
{% block content %}
{% endblock %}
</body>
</html>

34
first/templates/index.html

@ -0,0 +1,34 @@
{% extends "base.html" %}
{% block content %}
<div class="container-fluid">
<div class="row">
<h3> Greetings, Human. </h3> <br>
<h1> This is Juni Kim, yet another freshman</h1>
</div>
<br><br>
<div class="row">
<h2> About Me </h2>
<p>
My first true experience with programming was when I learned about the
USACO (and sought to reach Platinum Division) as an 8th grader. After
learning the ins and outs of using C++, I sought to expand my knowledge
base of other programming languages and incidentally landed upon web
development.
<br> <br>
I continue to explore the annals of web development and
write scripts whenever possible in order to make my life as
convenient as possible.
<br><br>
Although I spend most of my free time generating and debugging
small scripts, I have also extensively competed within USA Fencing
and have been heavily involved in competition math.
</p>
</div>
<div class="row">
<h2> Contact </h2> <br>
<a href="https://github.com/junikimm717" target="new"> Github </a>
<a href="https://gitlab.com/junikimm717" target="new"> GitLab </a>
</div>
</div>
{% endblock %}

29
first/templates/school.html

@ -0,0 +1,29 @@
{% extends "base.html" %}
{% block content %}
<div class="container-fluid">
<div class="row">
<h1> School </h1>
</div>
<div class="row">
<div class="col-md-5 m-1">
<p>
I currently attend Stanford Online High School full-time, where I
participate in the following activities:<br>
<ol>
<li> TA of the AP Calculus BC Class </li>
<li> Leader of the OHS Competitive Programming Circle </li>
<li> Participant in the OHS Math Competition Homeroom and the
OHS Chemistry Olympiad Club </li>
</ol>
</p>
</div>
<div class="col-md-5 m-1">
<img
src="{{url_for('static', filename='images/pixel.png')}}"
style="width:200px;height:200px;"
></img>
</div>
</div>
</div>
{% endblock %}
Loading…
Cancel
Save