create homepage
Browse files- L1000569.jpg +0 -0
- __pycache__/app.cpython-310.pyc +0 -0
- app.py +10 -0
- cover_PAGE.jpg +0 -0
- templates/home.html +155 -0
L1000569.jpg
ADDED
![]() |
__pycache__/app.cpython-310.pyc
ADDED
Binary file (427 Bytes). View file
|
|
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from flask import Flask, render_template, url_for
|
2 |
+
|
3 |
+
app = Flask(__name__)
|
4 |
+
|
5 |
+
@app.route('/')
|
6 |
+
def home():
|
7 |
+
return render_template('home.html')
|
8 |
+
|
9 |
+
if __name__ == "__main__":
|
10 |
+
app.run(debug=True)
|
cover_PAGE.jpg
ADDED
![]() |
templates/home.html
ADDED
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>Homepage</title>
|
7 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
|
8 |
+
<style>
|
9 |
+
body, html {
|
10 |
+
height: 100%;
|
11 |
+
margin: 0;
|
12 |
+
}
|
13 |
+
.bg {
|
14 |
+
background-image: url("https://hunthinniapasset.s3.us-east-2.amazonaws.com/cover_PAGE.jpg");
|
15 |
+
height: 100%;
|
16 |
+
background-position: center;
|
17 |
+
background-repeat: no-repeat;
|
18 |
+
background-size: cover;
|
19 |
+
}
|
20 |
+
.nav {
|
21 |
+
position: absolute;
|
22 |
+
top: 0;
|
23 |
+
right: 0;
|
24 |
+
margin: 20px;
|
25 |
+
}
|
26 |
+
.nav a {
|
27 |
+
text-decoration: none;
|
28 |
+
color: white;
|
29 |
+
padding: 10px;
|
30 |
+
border: none;
|
31 |
+
background: none;
|
32 |
+
margin-left: 10px;
|
33 |
+
transition: text-decoration 0.3s;
|
34 |
+
}
|
35 |
+
.nav a:hover {
|
36 |
+
text-decoration: underline;
|
37 |
+
}
|
38 |
+
.art-space-text {
|
39 |
+
position: absolute;
|
40 |
+
bottom: 30%;
|
41 |
+
left: 20%;
|
42 |
+
transform: translateX(-50%);
|
43 |
+
width: auto;
|
44 |
+
font-size: 36px;
|
45 |
+
color: white;
|
46 |
+
text-align: center;
|
47 |
+
margin: 0;
|
48 |
+
}
|
49 |
+
|
50 |
+
.scrolling-section {
|
51 |
+
display: flex;
|
52 |
+
justify-content: center;
|
53 |
+
align-items: center;
|
54 |
+
margin-top: 20px;
|
55 |
+
}
|
56 |
+
|
57 |
+
.category-link {
|
58 |
+
text-decoration: none;
|
59 |
+
color: white; /* Set the color of the title text */
|
60 |
+
width: 33.333%; /* Divide the width equally for 3 items */
|
61 |
+
display: block;
|
62 |
+
position: relative;
|
63 |
+
}
|
64 |
+
|
65 |
+
.category {
|
66 |
+
background-size: cover;
|
67 |
+
background-position: center;
|
68 |
+
height: 300px; /* Adjust height as needed */
|
69 |
+
display: flex;
|
70 |
+
justify-content: center;
|
71 |
+
align-items: center;
|
72 |
+
transition: transform 0.3s ease; /* Smooth transition for hover effect */
|
73 |
+
}
|
74 |
+
|
75 |
+
.category:hover {
|
76 |
+
transform: scale(1.05); /* Slightly enlarge on hover */
|
77 |
+
}
|
78 |
+
|
79 |
+
.category-title {
|
80 |
+
background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for the text */
|
81 |
+
padding: 10px;
|
82 |
+
border-radius: 5px;
|
83 |
+
position: absolute;
|
84 |
+
bottom: -20%; /* Position title at the bottom of the image */
|
85 |
+
}
|
86 |
+
|
87 |
+
.social-media-footer {
|
88 |
+
text-align: center;
|
89 |
+
padding: 20px;
|
90 |
+
background-color: #333; /* Choose a background color that fits your design */
|
91 |
+
color: white;
|
92 |
+
}
|
93 |
+
|
94 |
+
.social-link {
|
95 |
+
margin: 0 10px;
|
96 |
+
color: white; /* Set the text color for links */
|
97 |
+
text-decoration: none;
|
98 |
+
font-size: 1.2em;
|
99 |
+
}
|
100 |
+
|
101 |
+
.social-link:hover {
|
102 |
+
text-decoration: underline;
|
103 |
+
}
|
104 |
+
|
105 |
+
.large-blank-space {
|
106 |
+
height: 200px; /* Adjust the height as needed to create the desired blank space */
|
107 |
+
}
|
108 |
+
|
109 |
+
</style>
|
110 |
+
</head>
|
111 |
+
<body>
|
112 |
+
|
113 |
+
<div class="bg">
|
114 |
+
<div class="nav">
|
115 |
+
<a href="/music">Music</a>
|
116 |
+
<a href="/photography">Photography</a>
|
117 |
+
<a href="/videography">Videography</a>
|
118 |
+
<a href="/blog">Blog/Podcast</a>
|
119 |
+
<a href="/about">About</a>
|
120 |
+
</div>
|
121 |
+
<div class="art-space-text">
|
122 |
+
Hookah's Art Space
|
123 |
+
</div>
|
124 |
+
</div>
|
125 |
+
<div class="scrolling-section">
|
126 |
+
<a href="/music" class="category-link">
|
127 |
+
<div class="category" style="background-image: url('https://hunthinniapasset.s3.us-east-2.amazonaws.com/home_music.jpeg');">
|
128 |
+
<span class="category-title">Music</span>
|
129 |
+
</div>
|
130 |
+
</a>
|
131 |
+
<a href="/photography" class="category-link">
|
132 |
+
<div class="category" style="background-image: url('https://hunthinniapasset.s3.us-east-2.amazonaws.com/home_photography.jpg');">
|
133 |
+
<span class="category-title">Photography</span>
|
134 |
+
</div>
|
135 |
+
</a>
|
136 |
+
<a href="/blog" class="category-link">
|
137 |
+
<div class="category" style="background-image: url('https://hunthinniapasset.s3.us-east-2.amazonaws.com/home_blog.jpg');">
|
138 |
+
<span class="category-title">Blog & Podcast</span>
|
139 |
+
</div>
|
140 |
+
</a>
|
141 |
+
</div>
|
142 |
+
|
143 |
+
<!-- Large Blank Space Section -->
|
144 |
+
<div class="large-blank-space"></div>
|
145 |
+
|
146 |
+
<!-- Social Media Links Section -->
|
147 |
+
<footer class="social-media-footer">
|
148 |
+
<a href="https://github.com/yourusername" target="_blank" class="social-link"><i class="fab fa-github"></i></a>
|
149 |
+
<a href="https://instagram.com/yourusername" target="_blank" class="social-link"><i class="fab fa-instagram"></i></a>
|
150 |
+
<a href="https://linkedin.com/in/yourusername" target="_blank" class="social-link"><i class="fab fa-linkedin"></i></a>
|
151 |
+
</footer>
|
152 |
+
|
153 |
+
|
154 |
+
</body>
|
155 |
+
</html>
|