Skip to content

Commit 51eee09

Browse files
committed
updated lots of info
1 parent def94bb commit 51eee09

File tree

7 files changed

+28
-13
lines changed

7 files changed

+28
-13
lines changed

app/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33

44
app = Flask(__name__)
55

6+
print("here")
7+
from app import routes
8+
"""
69
app.config["MONGO_URI"] = "mongodb://localhost:27017/sitedb"
710
mongo = PyMongo(app)
811
9-
from app import routes, blog
12+
from app import blog
1013
11-
app.register_blueprint(blog.blog, url_prefix="/blog")
14+
app.register_blueprint(blog.blog, url_prefix="/blog")
15+
"""

app/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def update_data():
2020

2121
@app.route("/")
2222
def home():
23-
return render_template("home.html")
23+
return render_template("home.html", title = "home", nav = data["pages"])
2424

2525
@app.route("/about")
2626
def about():

app/templates/about.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h1>
1919
$("#coding-years").html(new Date().getFullYear() - 2014);
2020
</script>
2121
<p>
22-
i'm primarily interested in <strong>data structures/algorithms</strong> and <strong>backend development</strong>
22+
i'm primarily interested in <strong>data structures/algorithms</strong>, <strong>cryptography</strong>, and <strong>security</strong>
2323
</p>
2424
<p>
2525
"never stop learning. there's always a form you don't know."
@@ -36,15 +36,27 @@ <h1>
3636
<h2>
3737
2021
3838
</h2>
39+
<div class="group">
40+
<p>
41+
<strong>icpc world finals</strong> in moscow
42+
</p>
43+
</div>
3944
<div class="group">
4045
<p>
4146
<strong>sde intern</strong> at amazon
4247
</p>
48+
<span class="descriptor">
49+
Most people feel like they have impostor syndrome, but I feel that it's always beneficial to be completely confident in yourself, and truly believe you can solve any challenge in front of you. At my first ever internship, I excelled in the role, designing, building, and presenting a much-needed developer tool within 11 weeks. I learned quite a bit about cloud technologies, particularly AWS, as well as becoming more comfortable working with a team and rifling through arcane documentation.
50+
</span>
4351
</div>
4452
<div class="group">
4553
<p>
54+
<strong>president</strong> of purdue competitive programmers union<br>
4655
<strong>webmaster</strong> for b01lers ctf
4756
</p>
57+
<span class="descriptor">
58+
The biggest perk of being a leader is that people will listen to what you're passionate about. I revived the old competitive programming club to promote interest in the sport, holding practices and lectures on a regular basis. I also continued participating in ctfs and assisting the club in its operations. While taking on these roles was quite draining, I am invested in making an impact in the subjects I love.
59+
</span>
4860
</div>
4961
<h2>
5062
2020
@@ -55,15 +67,15 @@ <h2>
5567
<strong>lab ta</strong> for differential equations
5668
</p>
5769
<span class="descriptor">
58-
Being on the opposite side of the lecture hall helped me broaden my perspectives. From a semester and a summer of teaching my own class, I learned much about the importance of communicating ideas clearly and being open to new technologies. The feedback I recieved from my students helped inspire me to keep on going.
70+
Being on the opposite side of the lecture hall helped me broaden my perspectives. From a semester and a summer of teaching my own class, I learned much about the importance of communicating ideas clearly and being open to new technologies. Afterwards, I continued on in a more managerial role, getting to see just how much work is put into running a class smoothly. I'm proud that I've able to use my skills to guide this course along for multiple years.
5971
</span>
6072
</div>
6173
<h2>
6274
2019
6375
</h2>
6476
<div class="group">
6577
<p>
66-
started studying computer science at purdue
78+
<strong>computer science</strong> at purdue
6779
</p>
6880
</div>
6981
</div>

app/templates/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</head>
2424

2525
<body>
26-
{% if nav %}
26+
{% if nav and title != "home" %}
2727
<header>
2828
<nav class="nav-top">
2929
<li class="nav-logo"><a href="{{ url_for('home') }}">richz.li</a></li>
@@ -41,7 +41,7 @@
4141

4242
<main class="{{ 'content' if nav else 'ml-content' }}">
4343
{% block content %}{% endblock %}
44-
{% if nav %}
44+
{% if nav and title != "home" %}
4545
<footer>
4646
<div class="footer-container">
4747
<span class="footer-text">

app/templates/home.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
{% block content %}
1313
<div class="ml home-main">
1414
<span class="ml-text-primary">richard li</span>
15-
<div class="scroll-text"><a class="ml-away" href="{{ url_for('about') }}">&gt; about me &lt;</a></div>
16-
<div class="scroll-text"><a class="ml-away" href="{{ url_for('projects') }}">&gt; projects &lt;</a></div>
17-
<div class="scroll-text"><a class="ml-away" href="{{ url_for('blog.index') }}">&gt; blog &lt;</a></div>
18-
<div class="scroll-text"><a class="ml-away" href="{{ url_for('contact') }}">&gt; contact &lt;</a></div>
15+
{% for page in nav %}
16+
<div class="scroll-text"><a class="ml-away" href="{{ url_for(page[1]) }}">&gt; {{ page[0] }} &lt;</a></div>
17+
{% endfor %}
1918
</div>
2019
<script src="{{ url_for('static', filename='js/home.js') }}"></script>
2120
{% endblock %}

data/data.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"pages": [
33
["about", "about"],
44
["projects", "projects"],
5-
["blog", "blog.index"],
65
["contact", "contact"]
76
],
87
"projects": [

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
from app import app
2+
app.run(debug=True)

0 commit comments

Comments
 (0)