connected to flask
This commit is contained in:
13
app.py
13
app.py
@@ -0,0 +1,13 @@
|
|||||||
|
from flask import Flask, render_template
|
||||||
|
|
||||||
|
|
||||||
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@app.route('/')
|
||||||
|
def index():
|
||||||
|
return render_template('index.html')
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
app.jinja_env.auto_reload = True
|
||||||
|
app.run(debug=True)
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
from flask import Flask
|
|
||||||
|
|
||||||
|
|
||||||
app = Flask(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
app.jinja_env.auto_reload = True
|
|
||||||
app.run(debug=True)
|
|
||||||
@@ -10,8 +10,8 @@
|
|||||||
<!-- Required meta tags -->
|
<!-- Required meta tags -->
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
||||||
<link rel="stylesheet" href="css/slick.css">
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/slick.css') }}">
|
||||||
<title>Author</title>
|
<title>Author</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<!-- Navigation -->
|
<!-- Navigation -->
|
||||||
<nav class="site-navigation">
|
<nav class="site-navigation">
|
||||||
<div class="site-navigation-inner site-container">
|
<div class="site-navigation-inner site-container">
|
||||||
<img src="./images/site-logo.png" alt="site logo">
|
<img src="{{ url_for('static', filename='img/site-logo.png') }}" alt="site logo">
|
||||||
<div class="main-navigation">
|
<div class="main-navigation">
|
||||||
<ul class="main-navigation__ul">
|
<ul class="main-navigation__ul">
|
||||||
<li><a href="#">Homepage</a></li>
|
<li><a href="#">Homepage</a></li>
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
<section class="fh5co-top-banner">
|
<section class="fh5co-top-banner">
|
||||||
<div class="top-banner__inner site-container">
|
<div class="top-banner__inner site-container">
|
||||||
<div class="top-banner__image">
|
<div class="top-banner__image">
|
||||||
<img src="./images/top-banner-author.jpg" alt="author image">
|
<img src="{{ url_for('static', filename='img/top-banner-author.jpg') }} " alt="author image">
|
||||||
</div>
|
</div>
|
||||||
<div class="top-banner__text">
|
<div class="top-banner__text">
|
||||||
<div class="top-banner__text-up">
|
<div class="top-banner__text-up">
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
<div class="about-me-inner site-container">
|
<div class="about-me-inner site-container">
|
||||||
<article class="portfolio-wrapper">
|
<article class="portfolio-wrapper">
|
||||||
<div class="portfolio__img">
|
<div class="portfolio__img">
|
||||||
<img src="./images/about-me.jpg" class="about-me__profile" alt="about me profile picture">
|
<img src="{{ url_for('static', filename='img/about-me.jpg') }} " class="about-me__profile" alt="about me profile picture">
|
||||||
</div>
|
</div>
|
||||||
<div class="portfolio__bottom">
|
<div class="portfolio__bottom">
|
||||||
<div class="portfolio__name">
|
<div class="portfolio__name">
|
||||||
@@ -109,9 +109,9 @@
|
|||||||
<div class="books">
|
<div class="books">
|
||||||
<div class="single-book">
|
<div class="single-book">
|
||||||
<a href="#" class="single-book__img">
|
<a href="#" class="single-book__img">
|
||||||
<img src="./images/books-1.jpg" alt="single book and cd">
|
<img src="{{ url_for('static', filename='img/books-1.jpg')}} " alt="single book and cd">
|
||||||
<div class="single-book_download">
|
<div class="single-book_download">
|
||||||
<img src="./images/download.svg" alt="book image">
|
<img src="{{ url_for('static', filename='img/download.svg') }} " alt="book image">
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<h4 class="single-book__title">Olivani</h4>
|
<h4 class="single-book__title">Olivani</h4>
|
||||||
@@ -128,9 +128,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="single-book">
|
<div class="single-book">
|
||||||
<a href="#" class="single-book__img">
|
<a href="#" class="single-book__img">
|
||||||
<img src="./images/books-2.jpg" alt="single book and cd">
|
<img src="{{ url_for('static', filename='img/books-2.jpg') }} " alt="single book and cd">
|
||||||
<div class="single-book_download">
|
<div class="single-book_download">
|
||||||
<img src="./images/download.svg" alt="book image">
|
<img src="{{ url_for('static', filename='img/download.svg') }} " alt="book image">
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<h4 class="single-book__title">Molleon’s Life</h4>
|
<h4 class="single-book__title">Molleon’s Life</h4>
|
||||||
@@ -147,9 +147,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="single-book">
|
<div class="single-book">
|
||||||
<a href="#" class="single-book__img">
|
<a href="#" class="single-book__img">
|
||||||
<img src="./images/books-3.jpg" alt="single book and cd">
|
<img src="{{ url_for('static', filename='img/books-3.jpg') }} " alt="single book and cd">
|
||||||
<div class="single-book_download">
|
<div class="single-book_download">
|
||||||
<img src="./images/download.svg" alt="book image">
|
<img src="{{ url_for('static', filename='img/download.svg')}}" alt="book image">
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<h4 class="single-book__title">Love is Love</h4>
|
<h4 class="single-book__title">Love is Love</h4>
|
||||||
@@ -157,9 +157,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="single-book">
|
<div class="single-book">
|
||||||
<a href="#" class="single-book__img">
|
<a href="#" class="single-book__img">
|
||||||
<img src="./images/books-4.jpg" alt="single book and cd">
|
<img src="{{ url_for('static', filename='img/books-4.jpg')}} " alt="single book and cd">
|
||||||
<div class="single-book_download">
|
<div class="single-book_download">
|
||||||
<img src="./images/download.svg" alt="book image">
|
<img src="{{ url_for('static', filename='img/download.svg') }}" alt="book image">
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<h4 class="single-book__title">Give Me Also</h4>
|
<h4 class="single-book__title">Give Me Also</h4>
|
||||||
@@ -179,28 +179,28 @@
|
|||||||
<div class="single-count">
|
<div class="single-count">
|
||||||
<span class="count" data-count="50">0</span>
|
<span class="count" data-count="50">0</span>
|
||||||
<div class="single-count__text">
|
<div class="single-count__text">
|
||||||
<img src="./images/counter-1.png" alt="counter icon">
|
<img src="{{ url_for('static', filename='img/counter-1.png') }}" alt="counter icon">
|
||||||
<p>Books</p>
|
<p>Books</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="single-count">
|
<div class="single-count">
|
||||||
<span class="count" data-count="600">0</span>
|
<span class="count" data-count="600">0</span>
|
||||||
<div class="single-count__text">
|
<div class="single-count__text">
|
||||||
<img src="./images/counter-2.png" alt="counter icon">
|
<img src="{{ url_for('static', filename='img/counter-2.png') }}" alt="counter icon">
|
||||||
<p>Pages</p>
|
<p>Pages</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="single-count">
|
<div class="single-count">
|
||||||
<span class="count" data-count="2000">0</span>
|
<span class="count" data-count="2000">0</span>
|
||||||
<div class="single-count__text">
|
<div class="single-count__text">
|
||||||
<img src="./images/counter-3.png" alt="counter icon">
|
<img src="{{ url_for('static', filename='img/counter-3.png') }}" alt="counter icon">
|
||||||
<p>Sales</p>
|
<p>Sales</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="single-count">
|
<div class="single-count">
|
||||||
<span class="count" data-count="125">0</span>
|
<span class="count" data-count="125">0</span>
|
||||||
<div class="single-count__text">
|
<div class="single-count__text">
|
||||||
<img src="./images/counter-4.png" alt="counter icon">
|
<img src="{{ url_for('static', filename='img/counter-4.png') }}" alt="counter icon">
|
||||||
<p>Awards</p>
|
<p>Awards</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -215,7 +215,7 @@
|
|||||||
<div class="blog-slider blog-inner">
|
<div class="blog-slider blog-inner">
|
||||||
<div class="single-blog">
|
<div class="single-blog">
|
||||||
<div class="single-blog__img">
|
<div class="single-blog__img">
|
||||||
<img src="./images/blog1.jpg" alt="blog image">
|
<img src="{{ url_for('static', filename='img/blog1.jpg') }}" alt="blog image">
|
||||||
</div>
|
</div>
|
||||||
<div class="single-blog__text">
|
<div class="single-blog__text">
|
||||||
<h4>The Journey Under the Waves</h4>
|
<h4>The Journey Under the Waves</h4>
|
||||||
@@ -225,7 +225,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="single-blog">
|
<div class="single-blog">
|
||||||
<div class="single-blog__img">
|
<div class="single-blog__img">
|
||||||
<img src="./images/blog2.jpg" alt="blog image">
|
<img src="{{ url_for('static', filename='img/blog2.jpg') }}" alt="blog image">
|
||||||
</div>
|
</div>
|
||||||
<div class="single-blog__text">
|
<div class="single-blog__text">
|
||||||
<h4>The Journey Under the Waves</h4>
|
<h4>The Journey Under the Waves</h4>
|
||||||
@@ -235,7 +235,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="single-blog">
|
<div class="single-blog">
|
||||||
<div class="single-blog__img">
|
<div class="single-blog__img">
|
||||||
<img src="./images/blog2.jpg" alt="blog image">
|
<img src="{{ url_for('static', filename='img/blog2.jpg') }}" alt="blog image">
|
||||||
</div>
|
</div>
|
||||||
<div class="single-blog__text">
|
<div class="single-blog__text">
|
||||||
<h4>The Journey Under the Waves</h4>
|
<h4>The Journey Under the Waves</h4>
|
||||||
@@ -255,14 +255,14 @@
|
|||||||
<div>
|
<div>
|
||||||
<h2 class="universal-h2 universal-h2-bckg">What People Are Saying</h2>
|
<h2 class="universal-h2 universal-h2-bckg">What People Are Saying</h2>
|
||||||
<p>“Pudding croissant cake candy canes fruitcake sweet roll pastry gummies sugar plum. Tart pastry danish soufflé donut bear claw chocolate cake marshmallow chupa chups. Jelly danish gummi bears cake donut powder chocolate cake. Bonbon soufflé lollipop biscuit dragée jelly-o. Wafer pastry pudding tiramisu chocolate bar croissant cake. Pie caramels gummies danish.”</p>
|
<p>“Pudding croissant cake candy canes fruitcake sweet roll pastry gummies sugar plum. Tart pastry danish soufflé donut bear claw chocolate cake marshmallow chupa chups. Jelly danish gummi bears cake donut powder chocolate cake. Bonbon soufflé lollipop biscuit dragée jelly-o. Wafer pastry pudding tiramisu chocolate bar croissant cake. Pie caramels gummies danish.”</p>
|
||||||
<img src="./images/quotes.svg" alt="quotes svg">
|
<img src="{{ url_for('static', filename='img/quotes.svg')}}" alt="quotes svg">
|
||||||
<h4>David Dixon</h4>
|
<h4>David Dixon</h4>
|
||||||
<p>Reader</p>
|
<p>Reader</p>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h2 class="universal-h2 universal-h2-bckg">What People Are Saying 2</h2>
|
<h2 class="universal-h2 universal-h2-bckg">What People Are Saying 2</h2>
|
||||||
<p>“Pudding croissant cake candy canes fruitcake sweet roll pastry gummies sugar plum. Tart pastry danish soufflé donut bear claw chocolate cake marshmallow chupa chups. Jelly danish gummi bears cake donut powder chocolate cake. Bonbon soufflé lollipop biscuit dragée jelly-o. Wafer pastry pudding tiramisu chocolate bar croissant cake. Pie caramels gummies danish.”</p>
|
<p>“Pudding croissant cake candy canes fruitcake sweet roll pastry gummies sugar plum. Tart pastry danish soufflé donut bear claw chocolate cake marshmallow chupa chups. Jelly danish gummi bears cake donut powder chocolate cake. Bonbon soufflé lollipop biscuit dragée jelly-o. Wafer pastry pudding tiramisu chocolate bar croissant cake. Pie caramels gummies danish.”</p>
|
||||||
<img src="./images/quotes.svg" alt="quotes svg">
|
<img src="{{ url_for('static', filename='img/quotes.svg') }}" alt="quotes svg">
|
||||||
<h4>David Dixon</h4>
|
<h4>David Dixon</h4>
|
||||||
<p>Reader</p>
|
<p>Reader</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -277,10 +277,10 @@
|
|||||||
<div class="social">
|
<div class="social">
|
||||||
<h5>Follow me!!</h5>
|
<h5>Follow me!!</h5>
|
||||||
<div class="social-icons">
|
<div class="social-icons">
|
||||||
<a href="#" target="_blank"><img src="./images/social-twitter.png" alt="social icon"></a>
|
<a href="#" target="_blank"><img src="{{ url_for('static', filename='img/social-pinterest.png')}}" alt="social icon"></a>
|
||||||
<a href="#" target="_blank"><img src="./images/social-pinterest.png" alt="social icon"></a>
|
<a href="#" target="_blank"><img src="{{ url_for('static', filename='img/social-youtube.png') }} " alt="social icon"></a>
|
||||||
<a href="#" target="_blank"><img src="./images/social-youtube.png" alt="social icon"></a>
|
<a href="#" target="_blank"><img src="{{ url_for('static', filename='img/social-twitter.png') }}" alt="social icon"></a>
|
||||||
<a href="#" target="_blank"><img src="./images/social-twitter.png" alt="social icon"></a>
|
<a href="#" target="_blank"><img src="{{ url_for('static', filename='img/social-twitter.png') }}" alt="social icon"></a>
|
||||||
</div>
|
</div>
|
||||||
<h5>Share it!</h5>
|
<h5>Share it!</h5>
|
||||||
</div>
|
</div>
|
||||||
@@ -294,7 +294,7 @@
|
|||||||
<div class="footer-inner">
|
<div class="footer-inner">
|
||||||
<div class="footer-info">
|
<div class="footer-info">
|
||||||
<div class="footer-info__left">
|
<div class="footer-info__left">
|
||||||
<img src="./images/footer-img.jpg" alt="about me image">
|
<img src="{{ url_for('static', filename='img/footer-img.jpg') }}" alt="about me image">
|
||||||
<p>Read more about me</p>
|
<p>Read more about me</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-info__right">
|
<div class="footer-info__right">
|
||||||
@@ -302,10 +302,10 @@
|
|||||||
<p class="footer-phone">Phone: +958734902847</p>
|
<p class="footer-phone">Phone: +958734902847</p>
|
||||||
<p>Email : Jhone@Example.com</p>
|
<p>Email : Jhone@Example.com</p>
|
||||||
<div class="social-icons">
|
<div class="social-icons">
|
||||||
<a href="#" target="_blank"><img src="./images/social-twitter.png" alt="social icon"></a>
|
<a href="#" target="_blank"><img src="{{ url_for('static', filename='img/social-twitter.png') }} " alt="social icon"></a>
|
||||||
<a href="#" target="_blank"><img src="./images/social-pinterest.png" alt="social icon"></a>
|
<a href="#" target="_blank"><img src="{{ url_for('static', filename='img/social-pinterest.png') }}" alt="social icon"></a>
|
||||||
<a href="#" target="_blank"><img src="./images/social-youtube.png" alt="social icon"></a>
|
<a href="#" target="_blank"><img src="{{ url_for('static', filename='img/social-youtube.png') }}" alt="social icon"></a>
|
||||||
<a href="#" target="_blank"><img src="./images/social-twitter.png" alt="social icon"></a>
|
<a href="#" target="_blank"><img src="{{ url_for('static', filename='img/social-twitter.png') }} " alt="social icon"></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -326,11 +326,11 @@
|
|||||||
<div class="site-container footer-bottom-inner">
|
<div class="site-container footer-bottom-inner">
|
||||||
<p>© 2019 Author | Design by <a href="https://freehtml5.co/" target="_blank">freehtml5.co</a> | All rights Reserved.</p>
|
<p>© 2019 Author | Design by <a href="https://freehtml5.co/" target="_blank">freehtml5.co</a> | All rights Reserved.</p>
|
||||||
<div class="footer-bottom__img">
|
<div class="footer-bottom__img">
|
||||||
<img src="./images/footer-mastercard.png" alt="footer image">
|
<img src="{{ url_for('static', filename='img/footer-mastercard.png') }}" alt="footer image">
|
||||||
<img src="./images/footer-paypal.png" alt="footer image">
|
<img src="{{ url_for('static', filename='img/footer-paypal.png') }}" alt="footer image">
|
||||||
<img src="./images/footer-visa.png" alt="footer image">
|
<img src="{{ url_for('static', filename='img/footer-visa.png') }}" alt="footer image">
|
||||||
<img src="./images/footer-fedex.png" alt="footer image">
|
<img src="{{ url_for('static', filename='img/footer-fedex.png') }} " alt="footer image">
|
||||||
<img src="./images/footer-dhl.png" alt="footer image">
|
<img src="{{ url_for('static', filename='img/footer-dhl.png') }} " alt="footer image">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -338,9 +338,9 @@
|
|||||||
<!-- Footer end -->
|
<!-- Footer end -->
|
||||||
|
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
<script src="js/jquery.min.js"></script>
|
<script src="{{ url_for('static', filename='js/jquery.min.js') }} "></script>
|
||||||
<script src="js/slick.min.js"></script>
|
<script src="{{ url_for('static', filename='js/slick.min.js') }} "></script>
|
||||||
<script src="js/main.js"></script>
|
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user