Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2fc04eb

Browse files
committed
Changes Project
1 parent d7850ca commit 2fc04eb

File tree

7 files changed

+153
-3
lines changed

7 files changed

+153
-3
lines changed

‎app.py‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from flask import Flask, render_template
2+
3+
app = Flask(__name__)
4+
5+
@app.route('/')
6+
def home():
7+
return render_template('home.html')
8+
9+
@app.route('/about')
10+
def about():
11+
return render_template('about.html')
12+
13+
@app.route('/projects')
14+
def projects():
15+
return render_template('projects.html')
16+
17+
@app.route('/contact')
18+
def contact():
19+
return render_template('contact.html')
20+
21+
if __name__ == '__main__':
22+
app.run(debug=True)

‎static/style.css‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
body {
2+
font-family: Arial, sans-serif;
3+
margin: 0;
4+
padding: 0;
5+
}
6+
7+
header {
8+
background-color: #333;
9+
color: white;
10+
padding: 1em;
11+
text-align: center;
12+
}
13+
14+
nav a {
15+
color: white;
16+
margin: 0 1em;
17+
text-decoration: none;
18+
}
19+
20+
main {
21+
padding: 2em;
22+
}

‎templates/about.html‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>About - Portfolio</title>
7+
<link
8+
rel="stylesheet"
9+
href="{{ url_for('static', filename='style.css') }}"
10+
/>
11+
</head>
12+
<body>
13+
<header>
14+
<h1>About Me</h1>
15+
<nav>
16+
<a href="{{ url_for('home') }}">Home</a>
17+
<a href="{{ url_for('about') }}">About</a>
18+
<a href="{{ url_for('projects') }}">Projects</a>
19+
<a href="{{ url_for('contact') }}">Contact</a>
20+
</nav>
21+
</header>
22+
<main>
23+
<h2>About</h2>
24+
<p>This is the about page of my portfolio.</p>
25+
</main>
26+
</body>
27+
</html>

‎templates/contact.html‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Contact - Portfolio</title>
7+
<link
8+
rel="stylesheet"
9+
href="{{ url_for('static', filename='style.css') }}"
10+
/>
11+
</head>
12+
<body>
13+
<header>
14+
<h1>Contact Me</h1>
15+
<nav>
16+
<a href="{{ url_for('home') }}">Home</a>
17+
<a href="{{ url_for('about') }}">About</a>
18+
<a href="{{ url_for('projects') }}">Projects</a>
19+
<a href="{{ url_for('contact') }}">Contact</a>
20+
</nav>
21+
</header>
22+
<main>
23+
<h2>Contact</h2>
24+
<p>This is the contact page of my portfolio.</p>
25+
</main>
26+
</body>
27+
</html>

‎templates/home.html‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Home - Portfolio</title>
7+
<link
8+
rel="stylesheet"
9+
href="{{ url_for('static', filename='style.css') }}"
10+
/>
11+
</head>
12+
<body>
13+
<header>
14+
<h1>Welcome to My Portfolio</h1>
15+
<nav>
16+
<a href="{{ url_for('home') }}">Home</a>
17+
<a href="{{ url_for('about') }}">About</a>
18+
<a href="{{ url_for('projects') }}">Projects</a>
19+
<a href="{{ url_for('contact') }}">Contact</a>
20+
</nav>
21+
</header>
22+
<main>
23+
<h2>Home</h2>
24+
<p>This is the home page of my portfolio.</p>
25+
</main>
26+
</body>
27+
</html>

‎templates/projects.html‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Projects - Portfolio</title>
7+
<link
8+
rel="stylesheet"
9+
href="{{ url_for('static', filename='style.css') }}"
10+
/>
11+
</head>
12+
<body>
13+
<header>
14+
<h1>My Projects</h1>
15+
<nav>
16+
<a href="{{ url_for('home') }}">Home</a>
17+
<a href="{{ url_for('about') }}">About</a>
18+
<a href="{{ url_for('projects') }}">Projects</a>
19+
<a href="{{ url_for('contact') }}">Contact</a>
20+
</nav>
21+
</header>
22+
<main>
23+
<h2>Projects</h2>
24+
<p>This is the projects page of my portfolio.</p>
25+
</main>
26+
</body>
27+
</html>

‎vercel.json‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"rewrites": [
3-
{ "source": "/(.*)", "destination": "/api/index" }
4-
]
2+
"rewrites": [{ "source": "/(.*)", "destination": "app" }]
53
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /