]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/templates/index.html
wiki: Add meta tags for OpenGraph & Twitter
[ipfire.org.git] / src / templates / index.html
index 772d7ddcf8477707efe1f9759276eff1468eb233..f668b01b86519719e63c225a35bc1ed1f71c4bf3 100644 (file)
 {% extends "base.html" %}
 
+{% block head %}
+       <meta name="description" content="{{ _("IPFire is a hardened, versatile, state-of-the-art Open Source firewall based on Linux.") }}" />
+       <link rel="alternate" type="application/rss+xml" title="RSS" href="https://blog.ipfire.org/feed.xml" />
+{% end block %}
+
 {% block title %}{{ _("Welcome to IPFire") }}{% end block %}
 
 {% block container %}
-       <div class="main">
-               <section class="intro">
-                       <div class="container">
-                               <div class="branding">
-                                       <h1 class="display-1">IP<strong>Fire</strong></h1>
-                                       <h5>The Open Source Firewall Distribution</h5>
-                               </div>
+       <header class="cover">
+               <div class="container h-100">
+                       {% module ChristmasBanner() %}
 
-                               <div class="row justify-content-center">
-                                       <a class="btn btn-outline-primary btn-lg mr-3" href="/download">{{ _("Download") }}</a>
-                                       <a class="btn btn-outline-dark btn-lg ml-3" href="/features">{{ _("Features") }}</a>
+                       <div class="row d-flex h-100 flex-fill flex-md-row-reverse align-items-center">
+                               <div class="col-12 col-md-5 my-5 text-center">
+                                       <img class="img-fluid" src="{{ static_url("img/ipfire-tux.png") }}" alt="IPFire Logo" />
                                </div>
-                       </div>
 
-                       <div class="page-scroll">
-                               <a href="#features" class="btn btn-outline-primary rounded-circle scroll">
-                                       <svg class="icon i_lg i_arrow_down"><use xlink:href="#arrow_down"/></svg>
-                               </a>
-                       </div>
-               </section>
-
-               <section id="features">
-                       <div class="container">
-                               <h1 class="text-center">{{ _("Secure up your network with IPFire") }}</h1>
+                               <div class="col-12 col-md-7 px-3">
+                                       <h1 class="mb-3">{{ _("The Open Source Firewall") }}</h1>
 
-                               <div class="row mb-lg-6 mb-md-5">
-                                       <div class="col-md-6 col-lg-4 mb-6 pb-lg-5 d-flex">
-                                               <div class="feature_icons align-self-stretch">
-                                                       <svg class="icon i_lg i_shield"><use xlink:href="#shield"/></svg>
-                                               </div>
-                                               <div class="flex-column">
-                                                       <h5 class="pb-3">{{ _("Firewall") }}</h5>
-                                                       <p>
-                                                               IPFire comes with a versatile and state of the art
-                                                               firewall engine that makes even the most complex
-                                                               setups easy to administer.
-                                                       </p>
-                                               </div>
-                                       </div>
-                                       
-                                       <div class="col-md-6 col-lg-4 mb-6 d-flex">
-                                               <div class="feature_icons align-self-stretch">
-                                                       <svg class="icon i_lg i_speed"><use xlink:href="#speed"/></svg>
-                                               </div>
-                                               <div class="flex-column">
-                                                       <h5 class="pb-3">{{ _("Performance") }}</h5>
-                                                       <p>
-                                                               IPFire is ready for high performance networks
-                                                               and running evenly well on embedded hardware.
-                                                       </p>
-                                               </div>  
-                                       </div>
-                                       
-                                       <div class="col-md-6 col-lg-4 mb-6 d-flex">
-                                               <div class="feature_icons align-self-stretch">
-                                                       <svg class="icon i_lg i_couch"><use xlink:href="#couch"/></svg>
-                                               </div>
-                                               <div class="flex-column">
-                                                       <h5 class="pb-3">{{ _("Easy to use") }}</h5>
-                                                       <p class="mb-1">
-                                                               IPFire is set up easily in 15 to 20 minutes
-                                                               but also comes with expert features that
-                                                               are needed in professional networks.
-                                                       </p>
-                                               </div>
-                                       </div>
+                                       {% if latest_release %}
+                                               <span>
+                                                       {{ _("Latest Release:") }}
+                                                       <a href="/download">{{ latest_release.name }}</a>
+                                                       {{ _("from %s") % locale.format_date(latest_release.date, shorter=True) }}
+                                               </span>
+                                       {% end %}
 
-                                       <div class="col-md-6 col-lg-4 mb-6 d-flex">
-                                               <div class="feature_icons align-self-stretch">
-                                                       <svg class="icon i_lg i_security"><use xlink:href="#security"/></svg>
-                                               </div>
-                                               <div class="flex-column">
-                                                       <h5 class="pb-3">{{ _("Network Security") }}</h5>
-                                                       <p>
-                                                               IPFire is designed for high security.
-                                                               It is hardened to protect itself from attacks
-                                                               from the network.
-                                                       </p>
-                                               </div>
-                                       </div>
-                                       
-                                       <div class="col-md-6 col-lg-4 mb-6 d-flex">
-                                               <div class="feature_icons align-self-stretch">
-                                                       <svg class="icon i_lg i_github"><use xlink:href="#github"/></svg>
-                                               </div>
-                                               <div class="flex-column">
-                                                       <h5 class="pb-3">{{ _("Open Source") }}</h5>
-                                                       <p>
-                                                               IPFire is free software and developed by an open community,
-                                                               that improves it every single day.
-                                                       </p>
-                                               </div>
-                                       </div>
-                                       
-                                       <div class="col-md-6 col-lg-4 mb-6 d-flex">
-                                               <div class="feature_icons align-self-stretch">
-                                                       <svg class="icon i_lg i_heart"><use xlink:href="#heart"/></svg>
-                                               </div>
-                                               <div class="flex-column">
-                                                       <h5 class="pb-3">{{ _("Trusted by thousands") }}</h5>
-                                                       <p>
-                                                               IPFire is developed in Europe and used all over the world
-                                                               <a href="https://fireinfo.ipfire.org/statistics/geo-locations">in hundreds of countries</a>
-                                                               by hundreds of thousands of users every day.
-                                                       </p>
-                                               </div>
+                                       <div class="btn-toolbar my-5">
+                                               <a class="btn btn-outline-primary glow-primary btn-lg mr-2" href="/download">{{ _("Download") }}</a>
+                                               <a class="btn btn-outline-secondary glow-secondary btn-lg ml-2" href="/features">{{ _("Features") }}</a>
                                        </div>
                                </div>
-                               
-                               <div class="btn-toolbar justify-content-center pt-0 pt-md-4">
-                                       <a class="btn btn-primary btn-lg mr-4 px-4 px-md-6" href="/get-started">{{ _("Get Started") }}</a>
-                                       <a class="btn btn-secondary btn-lg px-4 px-md-6" href="/features">{{ _("Learn more") }}</a>
-                               </div>
                        </div>
-               </section>
+               </div>
+       </header>
 
-               <section id="news">
-                       <div class="container">
-                               <div class="row">
-                                       <div class="col-12 col-md-6 col-lg-5 mb-5">
-                                               <h1>Latest Release</h1>
+       <section class="inverse">
+               <div class="container">
+                       <div class="row mb-5">
+                               <div class="col-12 col-md-9 col-lg-7">
+                                       <h1 class="mb-0">{{ _("Secure your network with IPFire") }}</h1>
 
-                                               <p class="mb-0">
-                                                       <small>{{ locale.format_date(latest_release.date, shorter=True) }}</small>
-                                               </p>
+                                       <p>
+                                               {{ _("IPFire is a hardened, versatile, state-of-the-art Open Source firewall based on Linux.") }}
+                                               {{ _("Its ease of use, high performance in any scenario and extensibility make it usable for everyone.") }}
+                                       </p>
 
-                                               <h3 class="mb-5">
-                                                       {% if latest_release.post %}
-                                                               <a href="https://blog.ipfire.org/post/{{ latest_release.post.slug }}">
-                                                                       {{ _("%s has been released!") % latest_release.name }}
-                                                               </a>
-                                                       {% else %}
-                                                               {{ _("%s has been released!") % latest_release.name }}
-                                                       {% end %}
-                                               </h3>
+                                       <a class="btn btn-secondary mb-5" href="/features">{{ _("Learn More") }}</a>
+                               </div>
+                       </div>
 
-                                               <div class="btn-toolbar mb-5">
-                                                       <a class="btn btn-primary mr-3" href="/download">
-                                                               <svg class="icon i_sm i_download"><use xlink:href="#download"/></svg>
-                                                               {{ _("Download") }}
-                                                       </a>
+                       <div class="row mt-5">
+                               <div class="col-md-6 col-lg-4 mb-5 d-flex">
+                                       <div class="align-self-stretch">
+                                               <span class="fas fa-shield-alt fa-2x text-primary px-3"></span>
+                                       </div>
 
-                                                       <a class="btn btn-secondary ml-3" href="/donate">
-                                                               <svg class="icon i_sm i_heart"><use xlink:href="#heart"/></svg>
-                                                               {{ _("Donate") }}
-                                                       </a>
-                                               </div>
+                                       <div class="flex-column">
+                                               <h5 class="mb-3">{{ _("Security") }}</h5>
 
                                                <p>
-                                                       A complete history of IPFire releases is available at our <a href="/news">News</a> page.
+                                                       {{ _("Security is the highest priority in IPFire.") }}
+                                                       {{ _("It is hardened to protect itself from attacks from the Internet and prevents attacks on your network.") }}
                                                </p>
                                        </div>
-                                       
-                                       <div class="col-12 col-md-6 col-lg-5 offset-lg-2">
-                                               <h1>What&rsquo;s going on?</h1>
+                               </div>
+
+                               <div class="col-md-6 col-lg-4 mb-5 d-flex">
+                                       <div class="align-self-stretch">
+                                               <span class="fas fa-fire fa-2x text-primary px-3"></span>
+                                       </div>
 
-                                               <dl class="dl-horizontal">
-                                                       {% for post in posts %}
-                                                               <dt>
-                                                                       <small>{{ locale.format_date(post.published_at, relative=True, shorter=True) }} &nbsp;</small>
-                                                               </dt>
+                                       <div class="flex-column">
+                                               <h5 class="mb-3">{{ _("Firewall") }}</h5>
 
-                                                               <dd class="text-overflow mb-4">
-                                                                       <a href="https://blog.ipfire.org/post/{{ post.slug }}">{{ post.title }}</a>
-                                                               </dd>
-                                                       {% end %}
-                                               </dl>
-                                               
-                                               <a class="btn btn-secondary" href="/news">{{ _("Read More") }}</a>
+                                               <p>
+                                                       {{ _("Its powerful firewall engine and Intrusion Prevention System protects your network against attacks from the Internet and Denial-of-Service attacks.") }}
+                                               </p>
                                        </div>
                                </div>
-                       </div>
-               </section>
 
-               <section id="fireinfo">
-                       <div class="container">
-                               <h1 class="text-center">Fire<strong>Info</strong> Statistics</h1>
-                               
-                               <div class="row mb-6 mb-md-5 pb-lg-5 mb-lg-6 justify-content-center">
-                                       <div class="col-6 col-md-3 mb-6 text-center">
-                                               <p class="mb-0 mb-sm-3 fireinfo_cat">Latest Release</p>
-                                               <h6 class="pb-5 fireinfo">{{ latest_release.name }}</h6>
-                                               <div class="r_circle circle mt-5">
-                                                       <p class="fireinfo_per">{{ "%.0f%%" % (latest_release.penetration * 100) }}</p>
-                                               </div>
-                                               <script>
-                                                       $('.r_circle').circleProgress({ value: {{ latest_release.penetration }}, size: 128, thickness: 4, animation: false, startAngle: -Math.PI / 2, fill: { color: ["#1976d2"] } });
-                                               </script>
+                               <div class="col-md-6 col-lg-4 mb-5 d-flex">
+                                       <div class="align-self-stretch">
+                                               <span class="fab fa-osi fa-2x text-primary px-3"></span>
                                        </div>
 
-                                       {% if fireinfo_country %}
-                                               <div class="col-6 col-md-3 text-center">
-                                                       <p class="mb-0 mb-sm-3 fireinfo_cat truncate">
-                                                               {{ _("%.0f%% of all IPFire systems are running in") % (fireinfo_country.percentage * 100) }}
-                                                       </p>
-                                                       <h6 class="pb-5 fireinfo">{{ fireinfo_country.country.name }}</h6>
-                                                       <div class="v_circle circle mt-5">
-                                                               <p class="fireinfo_per">{{ "%.0f%%" % (fireinfo_country.percentage * 100) }}</p>
-                                                       </div>
-                                                       <script>
-                                                               $('.v_circle').circleProgress({ value: {{ fireinfo_country.percentage }}, size: 128, thickness: 4, animation: false, startAngle: -Math.PI / 2, fill: { color: ["#ff8f00"] } });
-                                                       </script>
-                                               </div>
-                                       {% end %}
-                               </div>
-                               
-                               <div class="row justify-content-center">
-                                       <a class="btn btn-lg btn-primary" href="/stats">More Stats</a>
-                               </div>
-                       </div>
-               </section>
+                                       <div class="flex-column">
+                                               <h5 class="mb-3">{{ _("Open Source") }}</h5>
 
-               <section id="appliances">
-                       <div class="container">
-                               <h1 class="text-center">{{ _("Professional Appliances & Services") }}</h1>
-                               
-                               <div class="row mb-lg-6 mb-md-4 pb-6 pb-lg-4">
-                                       <div class="col-md-12 col-lg-7 mb-5 mb-md-6 mb-lg-0">
-                                               <p class="lead">
-                                                       <a href="https://www.lightningwirelabs.com" target="_blank">Lightning Wire Labs</a> offer
-                                                       IPFire hardware appliances for enterprises, large businesses and SOHO.
-                                                       Deploying one of these on your network will provide you with the
-                                                       greatest reliability, stability and performance.
+                                               <p>
+                                                       {{ _("IPFire is free software and developed by an open community and trusted by hundreds of thousands of users from all around the world.") }}
                                                </p>
                                        </div>
-                                       <div class="col-sm-6 offset-sm-3 col-lg-4 offset-lg-1">
-                                               <a class="btn btn-dark btn-lg btn-block px-md-0 mb-4" href="/get-support#professional">{{ _("Get Professional Support") }}</a>
-                                               <a class="btn btn-dark btn-lg btn-block px-md-0" href="/hardware">{{ _("Hardware Appliances") }}</a>
-                                       </div>
-                               </div>
-                               <div class="text-center">
-                                       <picture>
-                                               <source media="(max-width: 575px" srcset="{{ static_url("img/appliance-pro_xs.png") }}">
-                                               <source media="(max-width: 767px" srcset="{{ static_url("img/appliance-pro_sm.png") }}">
-                                               <source media="(max-width: 991px" srcset="{{ static_url("img/appliance-pro_md.png") }}">
-                                               <source media="(min-width: 992px" srcset="{{ static_url("img/appliance-pro.png") }}">
-                                               <img class="img-fluid" src="{{ static_url("img/appliance-pro.png") }}" alt="Appliance">
-                                       </picture>
                                </div>
                        </div>
-               </section>
-       </div>
-<script>
-$(document).ready(function () {
-       $('.scroll').on('click', function(event) {
-                       event.preventDefault();
-                       $('html, body').stop().animate({
-                               scrollTop: $('#features').offset().top -72
-                       }, 1000);
-       });
-});
-</script>
+               </div>
+       </section>
 {% end block %}