Add Inter-Actief styling
This commit is contained in:
		
							parent
							
								
									9800858fb3
								
							
						
					
					
						commit
						332d82e97a
					
				
					 6 changed files with 633 additions and 39 deletions
				
			
		| 
						 | 
				
			
			@ -9,47 +9,61 @@ A copy of the MIT license can be obtained at https://mit-license.org/
 | 
			
		|||
<head>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <title>{{ config.site_name }}</title>
 | 
			
		||||
    <link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css">
 | 
			
		||||
    <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">  
 | 
			
		||||
    <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
 | 
			
		||||
    <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 class="form">
 | 
			
		||||
        <h2>{{ config.site_name }}</h2>
 | 
			
		||||
        <form class="pure-form">
 | 
			
		||||
            <p>
 | 
			
		||||
                <input name="long" type="url" placeholder="Long URL">
 | 
			
		||||
            </p>
 | 
			
		||||
            <p>
 | 
			
		||||
                <input name="short" type="text" placeholder="Custom link (optional)">
 | 
			
		||||
            </p>
 | 
			
		||||
            <p>
 | 
			
		||||
                <button type="submit" class="pure-button pure-button-primary" formmethod="post">Shorten</button>
 | 
			
		||||
            </p>
 | 
			
		||||
        </form>
 | 
			
		||||
    </div>
 | 
			
		||||
    {% with messages = get_flashed_messages(with_categories=true) %}
 | 
			
		||||
        {% if messages %}
 | 
			
		||||
            {% for category, message in messages %}
 | 
			
		||||
                {% if category == 'success' %}
 | 
			
		||||
                <div class="success">
 | 
			
		||||
                    ✓ Shortlink successfully generated! Available at  <a href="{{ message }}">{{ message }}</a>
 | 
			
		||||
                </div>
 | 
			
		||||
                {% elif category == 'error' %}
 | 
			
		||||
                <div class="error">
 | 
			
		||||
                    ✖ {{ message }}
 | 
			
		||||
                </div>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
        {% endif %}
 | 
			
		||||
    {% endwith %}
 | 
			
		||||
    {% if config.show_github_link %}
 | 
			
		||||
        <div class="github">
 | 
			
		||||
            <a href="https://github.com/132ikl/liteshort">
 | 
			
		||||
                <img src="{{ url_for('static', filename='GitHub.svg') }}">
 | 
			
		||||
            </a>
 | 
			
		||||
    <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>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    </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>
 | 
			
		||||
</html>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue