69 lines
		
	
	
	
		
			3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			69 lines
		
	
	
	
		
			3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!--
 | 
						|
Copyright (c) 2019 Steven Spangler <132@ikl.sh>
 | 
						|
This file is part of liteshort by 132ikl
 | 
						|
This software is license under the MIT license. It should be included in your copy of this software.
 | 
						|
A copy of the MIT license can be obtained at https://mit-license.org/
 | 
						|
-->
 | 
						|
<!DOCTYPE html>
 | 
						|
<html lang="en">
 | 
						|
<head>
 | 
						|
    <meta charset="UTF-8">
 | 
						|
    <title>{{ config.site_name }}</title>
 | 
						|
    <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
 | 
						|
    <link rel="stylesheet" href="{{ url_for('static', filename='ia.css') }}">
 | 
						|
    <meta name="viewport" content="width=device-width, initial-scale=1">
 | 
						|
</head>
 | 
						|
<body>
 | 
						|
    <div id="top">
 | 
						|
        <div id="header">
 | 
						|
            <div id="logo" class="drop-shadow">
 | 
						|
                <img src="{{ url_for('static', filename='ictsv-logo-white.svg') }}" alt="logo">
 | 
						|
            </div>
 | 
						|
            <div id="title" class="drop-shadow">
 | 
						|
                I.C.T.S.V. URL Shortener
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
    <div id="middle">
 | 
						|
        <div id="content">
 | 
						|
            <div class="clearfix"></div>
 | 
						|
            <div id="box" class="align-self-center col-xl-4 col-lg-4 col-md-6 col-sm-10 col-xs-12">
 | 
						|
                <div class="form">
 | 
						|
                    <h3 id="box-title">Shorten URL</h3>
 | 
						|
                    <form>
 | 
						|
                        <div id="long-url-box">
 | 
						|
                            <span class="prepend">≫</span>
 | 
						|
                            <input id="long-url" name="long" type="url" placeholder="Paste a long URL...">
 | 
						|
                            <button id="submit" type="submit" class="btn btn-primary" formmethod="post">Shorten</button>
 | 
						|
                        </div>
 | 
						|
                        <div id="custom-link-box">
 | 
						|
                            <div class="optional">Optional short link ending:</div>
 | 
						|
                            <label id="custom-label" for="custom-link">
 | 
						|
                                <span class="url">{% if config.site_domain %}{{ config.site_domain }}{% else %}{{ request.host }}{% endif %}/</span>
 | 
						|
                                <input id="custom-link" name="short" type="text" placeholder="Custom">
 | 
						|
                            </label>
 | 
						|
                        </div>
 | 
						|
                    </form>
 | 
						|
                </div>
 | 
						|
 | 
						|
                {% with messages = get_flashed_messages(with_categories=true) %}
 | 
						|
                    {% if messages %}
 | 
						|
                        {% for category, message in messages %}
 | 
						|
                            {% if category == 'success' %}
 | 
						|
                            <div class="success">
 | 
						|
                                <span>✓ Short link successfully generated!</span>
 | 
						|
                                <a href="{{ message }}">{{ message }}</a>
 | 
						|
                            </div>
 | 
						|
                            {% elif category == 'error' %}
 | 
						|
                            <div class="error">
 | 
						|
                                ✖ {{ message }}
 | 
						|
                            </div>
 | 
						|
                            {% endif %}
 | 
						|
                        {% endfor %}
 | 
						|
                    {% endif %}
 | 
						|
                {% endwith %}
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
</body>
 | 
						|
</html>
 |