Skip to content

Master #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"params":
{
"local_server":"True",
"fb_url":"https://facebook.com/kirpalsingh17",
"tw_url":"https://twitter.com/kirpalsingh_17",
"gh_url": "https://github.com/kirpalsingh17",
"blog_name": "Html Integration in Flask",
"tag_line": "Heaven for programmers",
"gmail-user":"mailme.kirpal@gmail.com",
"gmail-password":"gmailpassword",
"about_text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
}
}
22 changes: 22 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from flask import Flask, render_template
app = Flask(__name__)
import json

with open('config.json', 'r') as c:
params = json.load(c)["params"]

@app.route("/")
def home():
return render_template('index.html',params=params)

@app.route("/about")
def about():
return render_template('about.html',params=params)

@app.route("/project")
def contact():
return render_template('project.html', params=params)


app.run(debug=True)

Binary file added static/assets/apple-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/images/img-01.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/images/img-02.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/images/img-03.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/images/img-04.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/images/img-08.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/images/img-home.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/images/img-profil.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions static/assets/images/mashuptemplate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions static/main.3da94fde.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/main.4c6e144e.js

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions templates/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{% extends "layout.html" %}
{% block body %}
<div class="section-container content-container">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="col-md-6">
<img src="{{ url_for('static',filename='assets/images/img-profil.jpg')}}" class="img-responsive" alt="">
</div>
<div class="col-md-6">
<h1 class="h2">James Torres</h1>
<p>Mi eget mauris pharetra et ultrices neque ornare. Pellentesque elit ullamcorper dignissim cras tincidunt
lobortis. Euismod in pellentesque massa placerat. Consectetur libero id faucibus nisl tincidunt eget.
Pulvinar etiam non quam lacus suspendisse. Tincidunt nunc pulvinar sapien et ligula ullamcorper malesuada.
Ante in nibh mauris cursus mattis molestie a iaculis. Gravida cum sociis natoque penatibus et magnis
dis parturient montes. Ultrices gravida dictum fusce ut placerat orci.</p>

<ul class="list-unstyled">
<li>
<a href="mailto:myemail@myemail.com" title="" class="link-like-text">email</a>
</li>
<li>
<a href="https://www.linkedin.com/" title="" class="link-like-text">linkedin</a>
</li>
<li>
<a href="https://www.facebook.com/" title="" class="link-like-text">facebook</a>
</li>
<li>
<a href="https://www.instagram.com/" title="" class="link-like-text">instagram</a>
</li>
<li>
<a href="https://twitter.com/" title="" class="link-like-text">twitter</a>
</li>
<li>
<a href="https://www.behance.net" title="" class="link-like-text">behance</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
286 changes: 286 additions & 0 deletions templates/components.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,286 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width,initial-scale=1" name="viewport">
<meta content="description" name="description">
<meta name="google" content="notranslate" />
<meta content="Mashup templates have been developped by Orson.io team" name="author">

<!-- Disable tap highlight on IE -->
<meta name="msapplication-tap-highlight" content="no">

<link rel="apple-touch-icon" sizes="180x180" href="./assets/apple-icon-180x180.png">
<link href="./assets/favicon.ico" rel="icon">

<title>Title page</title>

<link href="./main.3da94fde.css" rel="stylesheet"></head>

<body>

<!-- Add your content of header -->

<header>
<nav class="navbar navbar-fixed-top navbar-default">
<div class="container">
<button type="button" class="navbar-toggle">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>

<nav class="navbar-fullscreen" id="navbar-middle">
<button type="button" class="close" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<ul class="navbar-fullscreen-links">
<li><a href="./index.html" title="">Home</a></li>
<li><a href="./project.html" title="">Project</a></li>
<li><a href="./about.html" title="">About me</a></li>
<li><a href="./components.html" title="">Components</a></li>
</ul>

<div class="footer-container">

<p><small>© Untitled | Website created with <a href="http://www.mashup-template.com/" title="Create website with free html template">Mashup Template</a>/<a href="https://www.unsplash.com/" title="Beautiful Free Images">Unsplash</a></small></p>
<p class="footer-share-icons">
<a href="https://www.twitter.com" class="fa-icon" title="">
<i class="fa fa-twitter" aria-hidden="true"></i>
</a>
<a href="https://www.linkedin.com" class="fa-icon" title="">
<i class="fa fa-instagram" aria-hidden="true"></i>
</a>
<a href="https://www.behance.com" class="fa-icon" title="">
<i class="fa fa-behance" aria-hidden="true"></i>
</a>
<a href="https://www.vimeo.com" class="fa-icon" title="">
<i class="fa fa-vimeo" aria-hidden="true"></i>
</a>
</p>

</div>


</nav>

</div>
</nav>
</header>

<div class="section-container">
<!-- Add your site or app content here -->
<div class="container">
<div class="row">
<div class="col-xs-12 col-md-6">

<div class="template-example">
<h2 class="template-title-example">Text</h2>
<p>This is bold and this is semi bold and <b>this is extra bold</b>. This is italic and this is extra light and this is light
and this is regular. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in <a href="" title="">reprehenderit</a> in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>

<div class="template-example">
<h2 class="template-title-example">Headings</h2>

<table class="table table-bordered">
<tr><td><h1>H1: Heading 1</h1></td></tr>
<tr><td><h2>H2: Heading 2</h2></td></tr>
<tr><td><h3>H3: Heading 3</h3></td></tr>
<tr><td><h4>H4: Heading 4</h4></td></tr>
</table>
</div>

<div class="template-example">
<h2 class="template-title-example">List</h2>
<div class="row">
<div class="col-md-6">
<h3 class="template-title-example">Ordered</h3>
<ul>
<li>Consectetur adipiscing elit</li>
<li>Integer molestie lorem at massa</li>
<li>Facilisis in pretium nisl aliquet</li>
<li>Nulla volutpat aliquam velit</li>
</ul>
</div>
<div class="col-md-6">
<h3 class="template-title-example">Number</h3>
<ol>
<li>Consectetur adipiscing elit</li>
<li>Integer molestie lorem at massa</li>
<li>Facilisis in pretium nisl aliquet</li>
<li>Nulla volutpat aliquam velit</li>
</ol>
</div>
</div>
</div>


</div>

<div class="col-xs-12 col-md-6">
<div class="template-example">
<h2 class="template-title-example">Icons</h2>

<div class="row">
<div class="col-md-6">
<h3 class="template-title-example">Social Round</h2>
<ul class="list-icons">
<li>
<a href="" class="social-round-icon fa-icon">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="" class="social-round-icon fa-icon">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="" class="social-round-icon fa-icon">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="" class="social-round-icon fa-icon">
<i class="fa fa-instagram"></i>
</a>
</li>
</ul>
</div>
<div class="col-md-6">
<h3 class="template-title-example">Basic Icons</h2>
<ul class="list-icons">
<li>
<span class="fa-icon">
<i class="fa fa-facebook"></i>
</span>
</li>
<li>
<span class="fa-icon">
<i class="fa fa-twitter"></i>
</span>
</li>
<li>
<span class="fa-icon">
<i class="fa fa-linkedin"></i>
</span>
</li>
<li>
<span class="fa-icon">
<i class="fa fa-instagram"></i>
</span>
</li>
</ul>
</div>

</div>





</div>

<div class="template-example">
<h2 class="template-title-example">Buttons</h2>
<div class="row">
<div class="col-md-6">
<h3 class="template-title-example">Primary</h2>
<div class="row">
<div class="col-md-6">
<p><a href="" class="btn btn-primary btn-lg">Primary Large</a></p>
<p><a href="" class="btn btn-primary">Primary </a></p>
<p><a href="" class="btn btn-primary btn-sm">Primary Small</a></p>
</div>
</div>

<h3 class="template-title-example">Default</h2>
<div class="row">
<div class="col-md-6">
<p><a href="" class="btn btn-default btn-lg">Default Large</a></p>
<p><a href="" class="btn btn-default">Default </a></p>
<p><a href="" class="btn btn-default btn-sm">Default Small</a></p>
</div>
</div>

</div>

<div class="col-md-6">
<h3 class="template-title-example">Secondary</h2>
<div class="row">
<div class="col-md-6">
<p><a href="" class="btn btn-info btn-lg">Secondary Large</a></p>
<p><a href="" class="btn btn-info">Secondary </a></p>
<p><a href="" class="btn btn-info btn-sm">Secondary Small</a></p>
</div>
</div>
</div>
</div>
</div>

<div class="template-example">
<h2 class="template-title-example">Inputs</h2>

<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email">
</div>

<div class="form-group">
<select class="form-control">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>

<div class="form-group">
<label class="checkbox-inline">
<input
type="checkbox" id="inlineCheckbox1" value="option1"> Email me a copy
</label>
<label class="checkbox-inline">
<input type="checkbox" id="inlineCheckbox2" value="option2"> I am a human
</label>
</div>

<div class="form-group">
<textarea class="form-control" rows="3" placeholder="Enter your message"></textarea>
</div>

<div class="alert alert-success" role="alert">Your message was successfully sent</div>
<div class="alert alert-danger" role="alert">Your message has not been sent, restart</div>
</div>




</div>
</div>
</div>

</div>




<script>
document.addEventListener("DOMContentLoaded", function (event) {
navbarToggleSidebar();
closeMenuBeforeGoingToPage();
navActivePage();
});
</script>
<script type="text/javascript" src="./main.4c6e144e.js"></script></body>

</html>
Loading