Skip to content

Torpedo away patch 1 #56

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 5 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
4 changes: 4 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
@app.route("/")
def hello_world():
return render_template("index.html")

@app.route("/tempate-creator")
def tempate-creator():
return render_template("gen.html")
123 changes: 123 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<!DOCTYPE html>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>2 Rows, 2 Columns, A</title>
<style type="text/css">

body {
margin: 0;
padding: 0;
overflow: hidden;
height: 100%;
max-height: 100%;
font-family:Sans-serif;
line-height: 1.5em;
}

#header {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100px;
overflow: hidden; /* Disables scrollbars on the header frame. To enable scrollbars, change "hidden" to "scroll" */
background: #0d0d0d;
}

#nav {
position: absolute;
top: 100px;
left: 0;
bottom: 0;
width: 230px;
overflow: auto; /* Scrollbars will appear on this frame only when there's enough content to require scrolling. To disable scrollbars, change to "hidden", or use "scroll" to enable permanent scrollbars */
background: #dfe0de;
}

#logo {
padding:10px;
}

main {
position: fixed;
top: 100px; /* Set this to the height of the header */
left: 230px;
right: 0;
bottom: 0;
overflow: auto;
background: #fff;
}

.innertube {
margin: 15px; /* Provides padding for the content */
}

p {
color: #555;
}

nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}

nav ul a {
color: darkgreen;
text-decoration: none;
}

/*IE6 fix*/
* html body{
padding: 100px 0 0 230px; /* Set the first value to the height of the header and last value to the width of the nav */
}

* html main{
height: 100%;
width: 100%;
}

</style>



</head>

<body>

<header id="header">
<div id="logo">
<h1 style="color:white;">CloudOps Terraform Template Creator</h1>
</div>
</header>

<main>
<div class="innertube">

{% block content %} {% endblock %}

</div>
</main>

<nav id="nav">
<div class="innertube">
<img src="https://torpedo-away.nyc3.digitaloceanspaces.com/Images/Sisyphus.jpg" alt="Sisyphus" style="width:150px;height:150px;">
<ul>
<li><a href="#">Virtual Machine</a></li>
<li><a href="#">Virtual Disks</a></li>
</ul>
<h1>Storage</h1>
<ul>
<li><a href="#">ANFS Volume</a></li>
<li><a href="#">S3 Bucket</a></li>
<li><a href="#">EFS Filesystem</a></li>
<li><a href="#">SGW SMB Share</a></li>
<li><a href="#">SGW NFS Share</a></li>
</ul>

</div>
</nav>
</body>
</html>
8 changes: 8 additions & 0 deletions templates/gen.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block content %}

<pre>
Now is the time for all good men to come to the aid of their country.
</pre>

{% endblock %}
4 changes: 3 additions & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<div class="container">
<div class="content">
<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxOS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjY3IDE3NS4yIDE3Ni40IDE3Ni41IiBzdHlsZT0iZW5hYmxlLWJhY2tncm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F80NV8iIGNsYXNzPSJzdDAiIGQ9Ik05NS4xLDMxNy42SDczLjJsMCwwdi0yMS45bDAsMGgyMS45bDAsMFYzMTcuNnoiLz4NCgkJCQk8L2c+DQoJCQk8L2c+DQoJCTwvZz4NCgk8L2c+DQo8L2c+DQo8L3N2Zz4NCg==" alt="DigitalOcean Logo" width="100" />
<h1>Welcome to your new <a href="https://flask.palletsprojects.com/en/1.1.x/">Flask App</a>!</h1>
<h1>Documentation for Digital's <a href="https://flask.palletsprojects.com/en/1.1.x/">Flask App</a>!</h1>
<h1>My sandbox for developing a Flask App redesign</a>!</h1>


<p>
This application is an example of how to deploy a Flask Application to DigitalOcean's App
Expand Down