You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2019/10/29 21:19:44 UTC

[airflow-site] 01/05: Put components in home page

This is an automated email from the ASF dual-hosted git repository.

kamilbregula pushed a commit to branch aip-11
in repository https://gitbox.apache.org/repos/asf/airflow-site.git

commit 6a06c9ee59d2817664a2b03aa1bf7882cd88e677
Author: Kamil Gabryjelski <ka...@gmail.com>
AuthorDate: Wed Oct 23 13:56:55 2019 +0200

    Put components in home page
---
 landing-pages/site/assets/scss/_base-layout.scss   |  2 +-
 .../scss/{_text-with-icon.scss => _home-page.scss} | 27 ++-------
 .../site/assets/scss/_text-with-icon.scss          |  2 +-
 landing-pages/site/assets/scss/main-custom.scss    |  1 +
 landing-pages/site/content/en/_index.html          | 67 ----------------------
 landing-pages/site/layouts/_default/baseof.html    |  2 +-
 landing-pages/site/layouts/index.html              | 50 ++++++++++++++++
 7 files changed, 58 insertions(+), 93 deletions(-)

diff --git a/landing-pages/site/assets/scss/_base-layout.scss b/landing-pages/site/assets/scss/_base-layout.scss
index 2c560ec..c94204e 100644
--- a/landing-pages/site/assets/scss/_base-layout.scss
+++ b/landing-pages/site/assets/scss/_base-layout.scss
@@ -44,6 +44,6 @@
 .container {
   margin-top: 44px;
   @media(min-width: 1200px) {
-    max-width: 1230px;
+    max-width: 1200px;
   }
 }
diff --git a/landing-pages/site/assets/scss/_text-with-icon.scss b/landing-pages/site/assets/scss/_home-page.scss
similarity index 63%
copy from landing-pages/site/assets/scss/_text-with-icon.scss
copy to landing-pages/site/assets/scss/_home-page.scss
index e27b137..beb35e3 100644
--- a/landing-pages/site/assets/scss/_text-with-icon.scss
+++ b/landing-pages/site/assets/scss/_home-page.scss
@@ -17,29 +17,10 @@
  * under the License.
  */
 
-.text-with-icon-list {
-  display: flex;
-  flex-wrap: wrap;
-  max-width: 940px;
-  margin: 0 auto 100px;
-  justify-content: space-between;
+.principles-header {
+  margin-bottom: 4px;
 }
 
-.text-with-icon-item {
-  display: flex;
-  flex-direction: column;
-  max-width: 410px;
-  align-items: center;
-  margin-top: 65px;
-
-  &--header {
-    @extend .header__xsmall--greyish-brown;
-    text-align: center;
-    margin-top: 23px;
-  }
-
-  &--text {
-    @extend .bodytext__medium--brownish-grey;
-    text-align: center;
-  }
+.integrations-header {
+  margin-bottom: 60px; // to be changed when searchbox is added
 }
diff --git a/landing-pages/site/assets/scss/_text-with-icon.scss b/landing-pages/site/assets/scss/_text-with-icon.scss
index e27b137..f508d91 100644
--- a/landing-pages/site/assets/scss/_text-with-icon.scss
+++ b/landing-pages/site/assets/scss/_text-with-icon.scss
@@ -30,7 +30,7 @@
   flex-direction: column;
   max-width: 410px;
   align-items: center;
-  margin-top: 65px;
+  margin-top: 54px;
 
   &--header {
     @extend .header__xsmall--greyish-brown;
diff --git a/landing-pages/site/assets/scss/main-custom.scss b/landing-pages/site/assets/scss/main-custom.scss
index bcf14f7..f12c1e7 100644
--- a/landing-pages/site/assets/scss/main-custom.scss
+++ b/landing-pages/site/assets/scss/main-custom.scss
@@ -36,3 +36,4 @@
 @import "text-with-icon";
 @import "video";
 @import "blog-page";
+@import "home-page";
diff --git a/landing-pages/site/content/en/_index.html b/landing-pages/site/content/en/_index.html
index dbdcffd..d9fe535 100644
--- a/landing-pages/site/content/en/_index.html
+++ b/landing-pages/site/content/en/_index.html
@@ -3,70 +3,3 @@ title = "Goldydocs"
 linkTitle = "Goldydocs"
 
 +++
-
-{{< blocks/cover title="Welcome to Goldydocs: A Docsy Example Project!" image_anchor="top" height="full" color="orange" >}}
-<div class="mx-auto">
-    <a class="btn btn-lg btn-primary mr-3 mb-4" href="{{< relref "/docs" >}}">
-        Learn More <i class="fas fa-arrow-alt-circle-right ml-2"></i>
-    </a>
-    <a class="btn btn-lg btn-secondary mr-3 mb-4" href="https://github.com/google/docsy-example">
-        Download <i class="fab fa-github ml-2 "></i>
-    </a>
-    <p class="lead mt-5">Porridge temperature assessment - in the cloud!</p>
-    <div class="mx-auto mt-5">
-        {{< blocks/link-down color="info" >}}
-    </div>
-</div>
-{{< /blocks/cover >}}
-
-
-{{% blocks/lead color="primary" %}}
-Goldydocs provides a single web UI providing visibility into porridge temperature, chair size, and bed softness metrics! You can even find out who's been eating **your** porridge.
-
-(Sadly, Goldydocs isn't a real project, but you can use this site as an example to create your own real websites with [Docsy](http://docsy.dev))
-{{% /blocks/lead %}}
-
-{{< blocks/section color="dark" >}}
-{{% blocks/feature icon="fa-lightbulb" title="New chair metrics!" %}}
-The Goldydocs UI now shows chair size metrics by default.
-
-Please follow this space for updates!
-{{% /blocks/feature %}}
-
-
-{{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/google/docsy-example" %}}
-We do a [Pull Request](https://github.com/gohugoio/hugo/pulls) contributions workflow on **GitHub**. New users are always welcome!
-{{% /blocks/feature %}}
-
-
-{{% blocks/feature icon="fab fa-twitter" title="Follow us on Twitter!" url="https://twitter.com/docsydocs" %}}
-For announcement of latest features etc.
-{{% /blocks/feature %}}
-
-
-{{< /blocks/section >}}
-
-
-{{< blocks/section >}}
-<div class="col">
-<h1 class="text-center">This is the second Section</h1>
-</div>
-
-{{< /blocks/section >}}
-
-
-
-{{< blocks/section >}}
-{{% blocks/feature icon="fab fa-app-store-ios" title="Download **from AppStore**" %}}
-Get the Goldydocs app!
-{{% /blocks/feature %}}
-
-
-{{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/gohugoio/hugo" %}}
-We do a [Pull Request](https://github.com/gohugoio/hugo/pulls) contributions workflow on **GitHub**. New users are always welcome!
-{{% /blocks/feature %}}
-
-
-{{% blocks/feature icon="fab fa-twitter" title="Follow us on Twitter!" url="https://twitter.com/GoHugoIO" %}}
-For announcement of latest features etc.
-{{% /blocks/feature %}}
diff --git a/landing-pages/site/layouts/_default/baseof.html b/landing-pages/site/layouts/_default/baseof.html
index 04a48dc..b83b82f 100644
--- a/landing-pages/site/layouts/_default/baseof.html
+++ b/landing-pages/site/layouts/_default/baseof.html
@@ -27,7 +27,7 @@
     {{ partial "navbar.html" . }}
 </header>
 <div class="container-fluid td-default">
-    <main role="main" class="td-main base-layout">
+    <main role="main" class="td-main container base-layout">
         {{ block "main" . }}{{ end }}
         <div class="base-layout--button">
             <a href="https://github.com">
diff --git a/landing-pages/site/layouts/index.html b/landing-pages/site/layouts/index.html
new file mode 100644
index 0000000..84eca94
--- /dev/null
+++ b/landing-pages/site/layouts/index.html
@@ -0,0 +1,50 @@
+{{/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+*/}}
+
+{{ define "main" }}
+    <div>
+        <h4 class="page-header principles-header">Principles</h4>
+        <div class="text-with-icon-list">
+            {{ partial "text-with-icon" (dict "logo_path" "icons/scalable-icon.svg" "header" "Scalable" "text" "Airflow pipelines are configuration as code (Python), allowing for dynamic pipeline generation. This allows for writing code that instantiates pipelines dynamically.") }}
+            {{ partial "text-with-icon" (dict "logo_path" "icons/dynamic-icon.svg" "header" "Dynamic" "text" "Airflow pipelines are configuration as code (Python), allowing for dynamic pipeline generation. This allows for writing code that instantiates pipelines dynamically.") }}
+            {{ partial "text-with-icon" (dict "logo_path" "icons/extensible-icon.svg" "header" "Extensible" "text" "Easily define your own operators, executors and extend the library so that it fits the level of abstraction that suits your environment.") }}
+            {{ partial "text-with-icon" (dict "logo_path" "icons/elegant-icon.svg" "header" "Elegant" "text" "Airflow pipelines are lean and explicit. Parametrizing your scripts is built into its core using the powerful Jinja templating engine.") }}
+        </div>
+    </div>
+    <div>
+        <h4 class="page-header">Features</h4>
+        <div class="features-list">
+            {{ partial "feature" (dict "logo_path" "icons/pure-python-icon.svg" "header" "Pure Python" "text" "No more command-line or XML black-magic! Use all Python features to create your workflows including date time formats for scheduling tasks and loops to dynamically generate tasks. This allows you to build your workflows as complicated as you wish.") }}
+            {{ partial "feature" (dict "logo_path" "icons/useful-ui-icon.svg" "header" "Useful UI" "text" "Monitor, schedule and manage your workflows using web app. No need to learn old, cron-like interfaces. You always have an insight into the status of completed and ongoing tasks along with insight into the logs.") }}
+            {{ partial "feature" (dict "logo_path" "icons/integrations-icon.svg" "header" "Plenty of integrations" "text" "Airflow provides many plug-and-play operators that are ready to handle your task on Google Cloud Platform, Amazon Web Services, Microsoft Azure and many other services. This makes Airflow easy to use with your current infrastructure.") }}
+            {{ partial "feature" (dict "logo_path" "icons/easy-use-icon.svg" "header" "Easy to use" "text" "Anyone with Python knowledge can deploy a workflow. Apache Airflow does not limit scopes of your pipelines. You can use it for building ML models, transferring data or managing your infrastructure.") }}
+            {{ partial "feature" (dict "logo_path" "icons/open-source-icon.svg" "header" "Open source" "text" "Wherever you want to share your improvement you can do this by opening a PR. It’s simple as that, no barriers, no prolonged procedures. Airflow has many active users who willingly share their experiences. Have any questions? Check our buzzing slack.") }}
+        </div>
+    </div>
+    <div>
+        <h4 class="page-header integrations-header">Integrations</h4>
+        <div id="integrations-container" class="list-items">
+            {{ range .Site.Data.integrations }}
+                <a class="list-item" href="{{ .url }}">
+                    {{ partial "boxes/integration" . }}
+                </a>
+            {{ end }}
+        </div>
+    </div>
+{{ end }}