From ea18750b2463855454e4320edb3a079d3161c530 Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Wed, 20 Nov 2024 16:53:29 +0100 Subject: [PATCH] fix(templates): Add basic template --- templates/base.html.njk | 49 ++++++++++ templates/index.html.njk | 187 ++++++++++++++++----------------------- 2 files changed, 127 insertions(+), 109 deletions(-) create mode 100644 templates/base.html.njk diff --git a/templates/base.html.njk b/templates/base.html.njk new file mode 100644 index 0000000..12802e8 --- /dev/null +++ b/templates/base.html.njk @@ -0,0 +1,49 @@ + + + + + + + + amiopen.now + + + + {% block header %}{% endblock %} + + +
+ {% block main %} +

Am I Open

+ {% endblock %} +
+ {% block scripts %} + {% endblock %} + + diff --git a/templates/index.html.njk b/templates/index.html.njk index 847db48..dfd7416 100644 --- a/templates/index.html.njk +++ b/templates/index.html.njk @@ -1,141 +1,110 @@ - - - - - - - - amiopen.now +{% extends "base.html.njk" %} - +{% endblock %} - vertical-align: middle; +{% block main %} +

Am I Open

+

+ Your IP address: {{ip}} + +

- transition: background-color 0.2s; - } - - .copy:hover { - background: #ffffff40; - } - - .copy img { - width: 1rem; - color: #fff; - filter: invert(1); - } - - - -
-

Am I Open

-

- Your IP address: {{ip}} - -

- - Check if your port is reachable: -
curl amiopen.now/<port>
+	 Check if your port is reachable: 
+	
curl amiopen.now/<port>
 
 // Example
 curl amiopen.now/80
 > open
- Check if an IP address is reachable: -
curl amiopen.now/<ip address>/<port>
+	 Check if an IP address is reachable: 
+	
curl amiopen.now/<ip address>/<port>
 
 // Example
 $ curl amiopen.now/1.1.1.1/53
 > open
- Check if your ISP is blocking a port: -
telnet amiopen.now <port>
+	 Check if your ISP is blocking a port: 
+	
telnet amiopen.now <port>
 
 // Example
 telnet amiopen.now 80
- - Hint: You can also check if you can access SSH by using: -
ssh hello@amiopen.now
-
-
- - - +{% block scripts %} + +{% endblock %}