You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2020/08/17 08:49:18 UTC

[camel-website] branch master updated (6a21c0e -> d4412c5)

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

zregvart pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git.


    from 6a21c0e  fix: toc for hugo within mobile view
     new a995882  feat: provide a modified neat card layout for community & docs
     new 45f5439  feat: remove specifc width to button for card layout
     new 002163f  CAMEL-15392: add badges like button for community cards
     new d4412c5  CAMEL-15392: add badges like button for docs cards

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 antora-ui-camel/src/css/docs.css     |  67 +++++++++++
 antora-ui-camel/src/img/docs.svg     |   4 +
 antora-ui-camel/src/img/examples.svg |  13 ++
 antora-ui-camel/src/img/github.svg   |   5 +
 antora-ui-camel/src/img/read.svg     |  12 ++
 content/community/_index.md          |  37 ++++--
 content/docs/_index.md               | 224 ++++++++++++++++++++++++++++++++---
 layouts/shortcodes/pre.html          |   5 +
 8 files changed, 343 insertions(+), 24 deletions(-)
 create mode 100644 antora-ui-camel/src/img/docs.svg
 create mode 100644 antora-ui-camel/src/img/examples.svg
 create mode 100644 antora-ui-camel/src/img/github.svg
 create mode 100644 antora-ui-camel/src/img/read.svg
 create mode 100644 layouts/shortcodes/pre.html


[camel-website] 01/04: feat: provide a modified neat card layout for community & docs

Posted by zr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git

commit a9958824a9cb854e8b113001b4ab2c6460fb8704
Author: Aemie <ae...@hotmail.co.uk>
AuthorDate: Sat Aug 8 21:40:28 2020 +0530

    feat: provide a modified neat card layout for community & docs
---
 antora-ui-camel/src/css/docs.css | 30 ++++++++++++++++++++++++++++++
 content/docs/_index.md           | 28 ++++++++++++++--------------
 2 files changed, 44 insertions(+), 14 deletions(-)

diff --git a/antora-ui-camel/src/css/docs.css b/antora-ui-camel/src/css/docs.css
index 701b1bd..dea3ccf 100644
--- a/antora-ui-camel/src/css/docs.css
+++ b/antora-ui-camel/src/css/docs.css
@@ -16,6 +16,7 @@
   text-align: center;
   padding: 1rem 1rem 2rem 1rem;
   margin: 1.5rem;
+  border-radius: 10px;
 }
 
 .camel-project .section {
@@ -23,6 +24,18 @@
   padding: 0;
 }
 
+.camel-project .camel-documentation .links {
+  background-color: var(--color-camel-orange);
+  padding: 0.45rem;
+  border-radius: 25px;
+  color: var(--navbar-background);
+}
+
+.camel-project .camel-documentation .links a {
+  color: var(--navbar-background);
+  font-weight: bolder;
+}
+
 .section {
   display: inline-flex;
   border: 1px solid var(--color-smoke-90);
@@ -32,6 +45,7 @@
   text-align: center;
   padding: 1rem;
   margin: 1.5rem;
+  border-radius: 10px;
 }
 
 .section a > img,
@@ -55,6 +69,22 @@
   align-items: center;
   margin: 1.5rem 0;
   word-break: break-word;
+  background-color: var(--color-camel-orange);
+  padding: 0.45rem;
+  border-radius: 25px;
+  color: var(--navbar-background);
+  width: calc(100% - 2rem);
+}
+
+@media screen and (max-width: 626px) {
+  .section .links {
+    width: auto;
+  }
+}
+
+.section .links a {
+  color: var(--navbar-background);
+  font-weight: bolder;
 }
 
 @media screen and (max-width: 1023px) {
diff --git a/content/docs/_index.md b/content/docs/_index.md
index 7c57351..c729827 100644
--- a/content/docs/_index.md
+++ b/content/docs/_index.md
@@ -35,10 +35,10 @@ Camel is packed with several hundred components that are used to access database
 
 {{< div "links" >}}
 
-[User Manual](/manual/latest/) |
-[Component Reference](/components/latest/) | 
-[Source](https://github.com/apache/camel/) |
-[API Documentation](https://www.javadoc.io/doc/org.apache.camel/camel-api/latest/index.html) |
+[User Manual](/manual/latest/) / 
+[Component Reference](/components/latest/) / 
+[Source](https://github.com/apache/camel/) / 
+[API Documentation](https://www.javadoc.io/doc/org.apache.camel/camel-api/latest/index.html) /
 [Examples](https://github.com/apache/camel-examples/)
 
 {{< /div >}}
@@ -61,8 +61,8 @@ Apache Camel K is a lightweight integration framework built on Apache Camel that
 
 {{< div "links" >}}
 
-[Examples](https://github.com/apache/camel-k-examples) |
-[Documentation](/camel-k/latest/) |
+[Examples](https://github.com/apache/camel-k-examples) / 
+[Documentation](/camel-k/latest/) / 
 [Source](https://github.com/apache/camel-k/)
 
 {{< /div >}}
@@ -83,8 +83,8 @@ Camel Kafka Connector allows you to use all Camel [components](/components/lates
 
 {{< div "links" >}}
 
-[Examples](https://github.com/apache/camel-kafka-connector-examples) |
-[Documentation](/camel-kafka-connector/latest/) |
+[Examples](https://github.com/apache/camel-kafka-connector-examples) / 
+[Documentation](/camel-kafka-connector/latest/) / 
 [Source](https://github.com/apache/camel-kafka-connector/)
 
 {{< /div >}}
@@ -106,8 +106,8 @@ This project hosts the efforts to port and package the 280+ Camel components as
 
 {{< div "links" >}}
 
-[Examples](https://github.com/apache/camel-quarkus/tree/master/examples) |
-[Documentation](/camel-quarkus/latest/) |
+[Examples](https://github.com/apache/camel-quarkus/tree/master/examples) / 
+[Documentation](/camel-quarkus/latest/) / 
 [Source](https://github.com/apache/camel-quarkus/)
 
 {{< /div >}}
@@ -128,8 +128,8 @@ Camel support for Spring Boot provides auto-configuration of the Camel context b
 
 {{< div "links" >}}
 
-[Examples](https://github.com/apache/camel-spring-boot-examples) |
-[Documentation](/camel-spring-boot/latest/) |
+[Examples](https://github.com/apache/camel-spring-boot-examples) / 
+[Documentation](/camel-spring-boot/latest/) / 
 [Source](https://github.com/apache/camel-spring-boot)
 
 {{< /div >}}
@@ -151,8 +151,8 @@ Camel support for Spring Boot provides auto-configuration of the Camel context b
 
 {{< div "links" >}}
 
-[Examples](https://github.com/apache/camel-karaf-examples) |
-[Documentation](/camel-karaf/latest/) |
+[Examples](https://github.com/apache/camel-karaf-examples) / 
+[Documentation](/camel-karaf/latest/) / 
 [Source](https://github.com/apache/camel-karaf)
 
 {{< /div >}}


[camel-website] 02/04: feat: remove specifc width to button for card layout

Posted by zr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git

commit 45f54397b800b17a46d17ea646e1bac4f9e8233a
Author: Aemie <ae...@hotmail.co.uk>
AuthorDate: Mon Aug 10 17:21:56 2020 +0530

    feat: remove specifc width to button for card layout
---
 antora-ui-camel/src/css/docs.css | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/antora-ui-camel/src/css/docs.css b/antora-ui-camel/src/css/docs.css
index dea3ccf..a112be2 100644
--- a/antora-ui-camel/src/css/docs.css
+++ b/antora-ui-camel/src/css/docs.css
@@ -26,7 +26,7 @@
 
 .camel-project .camel-documentation .links {
   background-color: var(--color-camel-orange);
-  padding: 0.45rem;
+  padding: 0.5rem;
   border-radius: 25px;
   color: var(--navbar-background);
 }
@@ -70,16 +70,9 @@
   margin: 1.5rem 0;
   word-break: break-word;
   background-color: var(--color-camel-orange);
-  padding: 0.45rem;
+  padding: 0.5rem;
   border-radius: 25px;
   color: var(--navbar-background);
-  width: calc(100% - 2rem);
-}
-
-@media screen and (max-width: 626px) {
-  .section .links {
-    width: auto;
-  }
 }
 
 .section .links a {


[camel-website] 04/04: CAMEL-15392: add badges like button for docs cards

Posted by zr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git

commit d4412c5b5932957f90dea418f1f4ff505671aac7
Author: Aemie <ae...@hotmail.co.uk>
AuthorDate: Sat Aug 15 13:30:13 2020 +0530

    CAMEL-15392: add badges like button for docs cards
---
 antora-ui-camel/src/css/docs.css     |  35 +++++-
 antora-ui-camel/src/img/docs.svg     |   4 +
 antora-ui-camel/src/img/examples.svg |  13 ++
 antora-ui-camel/src/img/github.svg   |   5 +
 content/community/_index.md          |  24 ----
 content/docs/_index.md               | 224 ++++++++++++++++++++++++++++++++---
 layouts/shortcodes/pre.html          |   5 +
 7 files changed, 266 insertions(+), 44 deletions(-)

diff --git a/antora-ui-camel/src/css/docs.css b/antora-ui-camel/src/css/docs.css
index 056fcb8..419726f 100644
--- a/antora-ui-camel/src/css/docs.css
+++ b/antora-ui-camel/src/css/docs.css
@@ -2,6 +2,10 @@
   padding: 1rem 3rem;
 }
 
+.docs p:empty {
+  display: none;
+}
+
 .section h2 {
   text-align: center;
   padding-bottom: 0;
@@ -24,9 +28,13 @@
   padding: 0;
 }
 
+.camel-project .section.core {
+  width: 100%;
+}
+
 .camel-project .camel-documentation .links {
   background-color: var(--color-camel-orange);
-  padding: 0.5rem;
+  padding: 0 0.5rem;
   border-radius: 25px;
   color: var(--navbar-background);
 }
@@ -65,6 +73,11 @@
   text-align: center;
 }
 
+.section .list {
+  display: flex;
+  flex-wrap: wrap;
+}
+
 .section .links {
   display: flex;
   flex-wrap: wrap;
@@ -77,12 +90,28 @@
   color: var(--navbar-background);
 }
 
+.section .list pre {
+  padding: 0;
+  width: 0.5rem;
+  box-shadow: none;
+  overflow-x: hidden;
+  background: none;
+}
+
+.section .list .links {
+  margin: 0.5rem auto;
+}
+
 .section .links img {
-  height: 1.75rem;
-  width: 1.75rem;
+  height: 1.5rem;
+  width: 2rem;
   margin: 0.35rem 0 0 0.25rem;
 }
 
+.section .links p {
+  margin: 0;
+}
+
 .section .links .partition {
   background: #fff;
   height: 2.5rem;
diff --git a/antora-ui-camel/src/img/docs.svg b/antora-ui-camel/src/img/docs.svg
new file mode 100644
index 0000000..693f76f
--- /dev/null
+++ b/antora-ui-camel/src/img/docs.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+<path d="M0 0h24v24H0z" fill="none"/>
+<path fill="#fff" d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z"/>
+</svg> 
diff --git a/antora-ui-camel/src/img/examples.svg b/antora-ui-camel/src/img/examples.svg
new file mode 100644
index 0000000..137112c
--- /dev/null
+++ b/antora-ui-camel/src/img/examples.svg
@@ -0,0 +1,13 @@
+<svg xmlns:x="http://ns.adobe.com/Extensibility/1.0/" xmlns:i="http://ns.adobe.com/AdobeIllustrator/10.0/" xmlns:graph="http://ns.adobe.com/Graphs/1.0/" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 57.087 37.591" xml:space="preserve" fill="#fff">
+<switch>
+	<foreignObject requiredExtensions="http://ns.adobe.com/AdobeIllustrator/10.0/" x="0" y="0" width="1" height="1">
+		<i:pgfRef xlink:href="#adobe_illustrator_pgf">
+		</i:pgfRef>
+	</foreignObject>
+	<g i:extraneous="self">
+		
+		<path d="M11.325,17.191c1.004-0.026,1.822-0.293,2.454-0.809c0.633-0.515,1.053-1.226,1.262-2.125    c0.209-0.898,0.319-2.437,0.333-4.614c0.013-2.178,0.052-3.612,0.117-4.303c0.117-1.095,0.336-1.976,0.655-2.641    s0.714-1.196,1.183-1.594c0.47-0.398,1.069-0.701,1.8-0.91C19.624,0.065,20.433,0,21.555,0h1.095v3.071h-0.606    c-1.355,0-2.256,0.245-2.699,0.734c-0.443,0.489-0.665,1.581-0.665,3.276c0,3.417-0.071,5.575-0.215,6.474    c-0.234,1.394-0.636,2.469-1.203,3.226c-0.566,0.756-1.457,1.428- [...]
+		<path d="M45.762,17.191v3.188c-1.004,0.026-1.822,0.3-2.454,0.821c-0.633,0.521-1.053,1.232-1.262,2.126    c-0.209,0.893-0.319,2.425-0.333,4.603c-0.013,2.178-0.052,3.612-0.117,4.303c-0.117,1.108-0.336,1.995-0.655,2.654    c-0.319,0.658-0.714,1.187-1.183,1.584c-0.47,0.397-1.069,0.697-1.8,0.906c-0.496,0.144-1.304,0.215-2.426,0.215h-1.095v-3.07    h0.606c1.355,0,2.256-0.241,2.699-0.73s0.665-1.591,0.665-3.299c0-3.26,0.059-5.327,0.176-6.2    c0.208-1.447,0.626-2.602,1.252-3.469s1.513-1.545,2. [...]
+	</g>
+</switch>
+</svg>
diff --git a/antora-ui-camel/src/img/github.svg b/antora-ui-camel/src/img/github.svg
new file mode 100644
index 0000000..77d3f04
--- /dev/null
+++ b/antora-ui-camel/src/img/github.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 54 54" xml:space="preserve" fill="#fff">
+<g>
+	<path d="M15.9,7.7c3.3-1.9,6.9-2.9,10.8-2.9c3.9,0,7.5,1,10.8,2.9s5.9,4.5,7.8,7.8c1.9,3.3,2.9,6.9,2.9,10.8   c0,4.7-1.4,8.9-4.1,12.6c-2.7,3.7-6.2,6.3-10.6,7.7c-0.5,0.1-0.9,0-1.1-0.2c-0.2-0.2-0.4-0.5-0.4-0.8c0-0.1,0-0.8,0-2.1   s0-2.6,0-3.8c0-1.8-0.5-3.1-1.5-4c1.1-0.1,2-0.3,2.9-0.5c0.8-0.2,1.7-0.6,2.6-1.1c0.9-0.5,1.7-1.1,2.3-1.9c0.6-0.7,1.1-1.7,1.5-2.9   s0.6-2.6,0.6-4.2c0-2.2-0.7-4.1-2.2-5.7c0.7-1.7,0.6-3.6-0.2-5.7c-0.5-0.2-1.3-0.1-2.3,0.3c-1,0.4-1.8,0.8-2.6,1.2L32,15.9   c-1.7-0.5-3.5-0 [...]
+</g>
+</svg>
\ No newline at end of file
diff --git a/content/community/_index.md b/content/community/_index.md
index 44511cd..72733ed 100644
--- a/content/community/_index.md
+++ b/content/community/_index.md
@@ -15,15 +15,11 @@ If you are experiencing problems using Camel then please report your problem to
 
 {{< div "links" >}}
 
-{{< div >}}
 [![Read](/_/img/read.svg)](/community/support/) 
-{{< /div >}}
 
 {{< div "partition" >}}{{< /div >}}
 
-{{< div >}}
 [Read More](/community/support/) 
-{{< /div >}}
 
 {{< /div >}}
 
@@ -43,15 +39,11 @@ There are many ways you can help make Camel better - please dive in and help!Ide
 
 {{< div "links" >}}
 
-{{< div >}}
 [![Read](/_/img/read.svg)](/manual/latest/contributing.html)
-{{< /div >}}
 
 {{< div "partition" >}}{{< /div >}}
 
-{{< div >}}
 [Read More](/manual/latest/contributing.html) 
-{{< /div >}}
 
 {{< /div >}}
 
@@ -72,15 +64,11 @@ This page is intended as a place to collect user stories and feedback on Apache
 
 {{< div "links" >}}
 
-{{< div >}}
 [![Read](/_/img/read.svg)](/community/user-stories/) 
-{{< /div >}}
 
 {{< div "partition" >}}{{< /div >}}
 
-{{< div >}}
 [Read More](/community/user-stories/) 
-{{< /div >}}
 
 {{< /div >}}
 
@@ -100,15 +88,11 @@ Articles are divided into several sections. As the lists grow, further sectionin
 
 {{< div "links" >}}
 
-{{< div >}}
 [![Read](/_/img/read.svg)](/community/articles/) 
-{{< /div >}}
 
 {{< div "partition" >}}{{< /div >}}
 
-{{< div >}}
 [Read More](/community/articles/) 
-{{< /div >}}
 
 {{< /div >}}
 
@@ -128,15 +112,11 @@ This page lists the known books about Apache Camel. If you happen to know a book
 
 {{< div "links" >}}
 
-{{< div >}}
 [![Read](/_/img/read.svg)](/community/books/) 
-{{< /div >}}
 
 {{< div "partition" >}}{{< /div >}}
 
-{{< div >}}
 [Read More](/community/books/) 
-{{< /div >}}
 
 {{< /div >}}
 
@@ -156,15 +136,11 @@ This page lists who we are. By all means add yourself to the list - lets sort it
 
 {{< div "links" >}}
 
-{{< div >}}
 [![Read](/_/img/read.svg)](/community/team/)
-{{< /div >}}
 
 {{< div "partition" >}}{{< /div >}}
 
-{{< div >}}
 [Read More](/community/team/) 
-{{< /div >}}
 
 {{< /div >}}
 
diff --git a/content/docs/_index.md b/content/docs/_index.md
index c729827..bd50903 100644
--- a/content/docs/_index.md
+++ b/content/docs/_index.md
@@ -7,6 +7,46 @@
 
 ## Camel Core
 
+{{< div "section core" >}}
+
+{{< div "list" >}}
+{{< div "links" >}}
+
+[![Examples](/_/img/examples.svg)](https://github.com/apache/camel-examples/) 
+
+{{< div "partition" >}}{{< /div >}}
+
+[Examples](https://github.com/apache/camel-examples/)
+
+{{< /div >}}
+
+{{< pre >}}{{< /pre >}}
+
+{{< div "links" >}}
+
+[![Sources](/_/img/github.svg)](https://github.com/apache/camel/) 
+{{< div "partition" >}}{{< /div >}}
+
+[Source](https://github.com/apache/camel/)
+
+{{< /div >}} 
+
+{{< pre >}}{{< /pre >}}
+
+{{< div "links" >}}
+
+[![Documentation](/_/img/docs.svg)](https://www.javadoc.io/doc/org.apache.camel/camel-api/latest/index.html) 
+
+{{< div "partition" >}}{{< /div >}}
+
+[API Documentation](https://www.javadoc.io/doc/org.apache.camel/camel-api/latest/index.html)
+
+{{< /div >}}
+
+{{< /div >}}
+
+{{< /div >}}
+
 {{< div "camel-documentation" >}}
 
 {{< div "section" >}}
@@ -19,10 +59,21 @@ The [User Manual](/manual/latest/) is a comprehensive guide meant to help you wi
 
 {{< /div >}}
 
+{{< div "links" >}}
+
+[![Documentation](/_/img/docs.svg)](/manual/latest/) 
+
+{{< div "partition" >}}{{< /div >}}
+
+[Documentation](/manual/latest/)
+
+{{< /div >}}
+
 {{< /div >}}
 
 {{< div "section" >}}
 
+
 ### Components
 
 {{< div "description" >}}
@@ -31,15 +82,15 @@ Camel is packed with several hundred components that are used to access database
 
 {{< /div >}}
 
-{{< /div >}}
-
 {{< div "links" >}}
 
-[User Manual](/manual/latest/) / 
-[Component Reference](/components/latest/) / 
-[Source](https://github.com/apache/camel/) / 
-[API Documentation](https://www.javadoc.io/doc/org.apache.camel/camel-api/latest/index.html) /
-[Examples](https://github.com/apache/camel-examples/)
+[![Documentation](/_/img/docs.svg)](/components/latest/) 
+
+{{< div "partition" >}}{{< /div >}}
+
+[Documentation](/components/latest/)
+
+{{< /div >}}
 
 {{< /div >}}
 
@@ -59,15 +110,42 @@ Apache Camel K is a lightweight integration framework built on Apache Camel that
 
 {{< /div >}}
 
+{{< div "list" >}}
+{{< div "links" >}}
+
+[![Examples](/_/img/examples.svg)](https://github.com/apache/camel-k-examples) 
+
+{{< div "partition" >}}{{< /div >}}
+
+[Examples](https://github.com/apache/camel-k-examples)
+
+{{< /div >}}
+
+{{< pre >}}{{< /pre >}}
+
 {{< div "links" >}}
 
-[Examples](https://github.com/apache/camel-k-examples) / 
-[Documentation](/camel-k/latest/) / 
+[![Sources](/_/img/github.svg)](https://github.com/apache/camel-k/) 
+{{< div "partition" >}}{{< /div >}}
+
 [Source](https://github.com/apache/camel-k/)
 
+{{< /div >}} 
+
+{{< pre >}}{{< /pre >}}
+
+{{< div "links" >}}
+
+[![Documentation](/_/img/docs.svg)](/camel-k/latest/) 
+
+{{< div "partition" >}}{{< /div >}}
+
+[Documentation](/camel-k/latest/)
+
 {{< /div >}}
 
 {{< /div >}}
+{{< /div >}}
 
 {{< div "section" >}}
 
@@ -81,12 +159,40 @@ Camel Kafka Connector allows you to use all Camel [components](/components/lates
 
 {{< /div >}}
 
+{{< div "list" >}}
 {{< div "links" >}}
 
-[Examples](https://github.com/apache/camel-kafka-connector-examples) / 
-[Documentation](/camel-kafka-connector/latest/) / 
+[![Examples](/_/img/examples.svg)](https://github.com/apache/camel-kafka-connector-examples) 
+
+{{< div "partition" >}}{{< /div >}}
+
+[Examples](https://github.com/apache/camel-kafka-connector-examples)
+
+{{< /div >}}
+
+{{< pre >}}{{< /pre >}}
+
+{{< div "links" >}}
+
+[![Sources](/_/img/github.svg)](https://github.com/apache/camel-kafka-connector/) 
+{{< div "partition" >}}{{< /div >}}
+
 [Source](https://github.com/apache/camel-kafka-connector/)
 
+{{< /div >}} 
+
+{{< pre >}}{{< /pre >}}
+
+{{< div "links" >}}
+
+[![Documentation](/_/img/docs.svg)](/camel-kafka-connector/latest/) 
+
+{{< div "partition" >}}{{< /div >}}
+
+[Documentation](/camel-kafka-connector/latest/)
+
+{{< /div >}}
+
 {{< /div >}}
 
 {{< /div >}}
@@ -104,12 +210,40 @@ This project hosts the efforts to port and package the 280+ Camel components as
 
 {{< /div >}}
 
+{{< div "list" >}}
 {{< div "links" >}}
 
-[Examples](https://github.com/apache/camel-quarkus/tree/master/examples) / 
-[Documentation](/camel-quarkus/latest/) / 
+[![Examples](/_/img/examples.svg)](https://github.com/apache/camel-quarkus/tree/master/examples) 
+
+{{< div "partition" >}}{{< /div >}}
+
+[Examples](https://github.com/apache/camel-quarkus/tree/master/examples)
+
+{{< /div >}}
+
+{{< pre >}}{{< /pre >}}
+
+{{< div "links" >}}
+
+[![Sources](/_/img/github.svg)](https://github.com/apache/camel-quarkus/) 
+{{< div "partition" >}}{{< /div >}}
+
 [Source](https://github.com/apache/camel-quarkus/)
 
+{{< /div >}} 
+
+{{< pre >}}{{< /pre >}}
+
+{{< div "links" >}}
+
+[![Documentation](/_/img/docs.svg)](/camel-quarkus/latest/) 
+
+{{< div "partition" >}}{{< /div >}}
+
+[Documentation](/camel-quarkus/latest/)
+
+{{< /div >}}
+
 {{< /div >}}
 
 {{< /div >}}
@@ -126,12 +260,40 @@ Camel support for Spring Boot provides auto-configuration of the Camel context b
 
 {{< /div >}}
 
+{{< div "list" >}}
 {{< div "links" >}}
 
-[Examples](https://github.com/apache/camel-spring-boot-examples) / 
-[Documentation](/camel-spring-boot/latest/) / 
+[![Examples](/_/img/examples.svg)](https://github.com/apache/camel-spring-boot-examples) 
+
+{{< div "partition" >}}{{< /div >}}
+
+[Examples](https://github.com/apache/camel-spring-boot-examples)
+
+{{< /div >}}
+
+{{< pre >}}{{< /pre >}}
+
+{{< div "links" >}}
+
+[![Sources](/_/img/github.svg)](https://github.com/apache/camel-spring-boot) 
+{{< div "partition" >}}{{< /div >}}
+
 [Source](https://github.com/apache/camel-spring-boot)
 
+{{< /div >}} 
+
+{{< pre >}}{{< /pre >}}
+
+{{< div "links" >}}
+
+[![Documentation](/_/img/docs.svg)](/camel-spring-boot/latest/) 
+
+{{< div "partition" >}}{{< /div >}}
+
+[Documentation](/camel-spring-boot/latest/)
+
+{{< /div >}}
+
 {{< /div >}}
 
 {{< /div >}}
@@ -149,12 +311,40 @@ Camel support for Spring Boot provides auto-configuration of the Camel context b
 
 {{< /div >}}
 
+{{< div "list" >}}
+{{< div "links" >}}
+
+[![Examples](/_/img/examples.svg)](https://github.com/apache/camel-karaf-examples) 
+
+{{< div "partition" >}}{{< /div >}}
+
+[Examples](https://github.com/apache/camel-karaf-examples)
+
+{{< /div >}}
+
+{{< pre >}}{{< /pre >}}
+
 {{< div "links" >}}
 
-[Examples](https://github.com/apache/camel-karaf-examples) / 
-[Documentation](/camel-karaf/latest/) / 
+[![Sources](/_/img/github.svg)](https://github.com/apache/camel-karaf) 
+{{< div "partition" >}}{{< /div >}}
+
 [Source](https://github.com/apache/camel-karaf)
 
+{{< /div >}} 
+
+{{< pre >}}{{< /pre >}}
+
+{{< div "links" >}}
+
+[![Documentation](/_/img/docs.svg)](/camel-karaf/latest/) 
+
+{{< div "partition" >}}{{< /div >}}
+
+[Documentation](/camel-karaf/latest/)
+
+{{< /div >}}
+
 {{< /div >}}
 
 {{< /div >}}
diff --git a/layouts/shortcodes/pre.html b/layouts/shortcodes/pre.html
new file mode 100644
index 0000000..b173019
--- /dev/null
+++ b/layouts/shortcodes/pre.html
@@ -0,0 +1,5 @@
+<pre class="{{ .Get 0}}">
+    {{ $content := .Inner | markdownify }}
+    {{ $content | safeHTML }}
+</pre>
+  
\ No newline at end of file


[camel-website] 03/04: CAMEL-15392: add badges like button for community cards

Posted by zr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git

commit 002163f0a3d45a46d6c7472db3b27b14702adde3
Author: Aemie <ae...@hotmail.co.uk>
AuthorDate: Thu Aug 13 20:19:52 2020 +0530

    CAMEL-15392: add badges like button for community cards
---
 antora-ui-camel/src/css/docs.css | 17 +++++++++++-
 antora-ui-camel/src/img/read.svg | 12 ++++++++
 content/community/_index.md      | 59 ++++++++++++++++++++++++++++++++++++----
 3 files changed, 81 insertions(+), 7 deletions(-)

diff --git a/antora-ui-camel/src/css/docs.css b/antora-ui-camel/src/css/docs.css
index a112be2..056fcb8 100644
--- a/antora-ui-camel/src/css/docs.css
+++ b/antora-ui-camel/src/css/docs.css
@@ -66,15 +66,30 @@
 }
 
 .section .links {
+  display: flex;
+  flex-wrap: wrap;
   align-items: center;
   margin: 1.5rem 0;
   word-break: break-word;
   background-color: var(--color-camel-orange);
-  padding: 0.5rem;
+  padding: 0 0.5rem;
   border-radius: 25px;
   color: var(--navbar-background);
 }
 
+.section .links img {
+  height: 1.75rem;
+  width: 1.75rem;
+  margin: 0.35rem 0 0 0.25rem;
+}
+
+.section .links .partition {
+  background: #fff;
+  height: 2.5rem;
+  width: 0.1rem;
+  margin: 0 0.5rem;
+}
+
 .section .links a {
   color: var(--navbar-background);
   font-weight: bolder;
diff --git a/antora-ui-camel/src/img/read.svg b/antora-ui-camel/src/img/read.svg
new file mode 100644
index 0000000..a0f3bee
--- /dev/null
+++ b/antora-ui-camel/src/img/read.svg
@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 296.999 296.999" xml:space="preserve" fill="#fff">
+<g>
+<g>
+<g>
+	<path d="M45.432,35.049c-0.008,0-0.017,0-0.025,0c-2.809,0-5.451,1.095-7.446,3.085c-2.017,2.012-3.128,4.691-3.128,7.543     v159.365c0,5.844,4.773,10.61,10.641,10.625c24.738,0.059,66.184,5.215,94.776,35.136V84.023c0-1.981-0.506-3.842-1.461-5.382     C115.322,40.849,70.226,35.107,45.432,35.049z"/>
+	<path d="M262.167,205.042V45.676c0-2.852-1.111-5.531-3.128-7.543c-1.995-1.99-4.639-3.085-7.445-3.085c-0.009,0-0.018,0-0.026,0     c-24.793,0.059-69.889,5.801-93.357,43.593c-0.955,1.54-1.46,3.401-1.46,5.382v166.779     c28.592-29.921,70.038-35.077,94.776-35.136C257.394,215.651,262.167,210.885,262.167,205.042z"/>
+	<path d="M286.373,71.801h-7.706v133.241c0,14.921-12.157,27.088-27.101,27.125c-20.983,0.05-55.581,4.153-80.084,27.344     c42.378-10.376,87.052-3.631,112.512,2.171c3.179,0.724,6.464-0.024,9.011-2.054c2.538-2.025,3.994-5.052,3.994-8.301V82.427     C297,76.568,292.232,71.801,286.373,71.801z"/>
+    <path d="M18.332,205.042V71.801h-7.706C4.768,71.801,0,76.568,0,82.427v168.897c0,3.25,1.456,6.276,3.994,8.301     c2.545,2.029,5.827,2.78,9.011,2.054c25.46-5.803,70.135-12.547,112.511-2.171c-24.502-23.19-59.1-27.292-80.083-27.342     C30.49,232.13,18.332,219.963,18.332,205.042z"/>
+</g>
+</g>
+</g>
+</svg>
diff --git a/content/community/_index.md b/content/community/_index.md
index 8551ce2..44511cd 100644
--- a/content/community/_index.md
+++ b/content/community/_index.md
@@ -15,7 +15,15 @@ If you are experiencing problems using Camel then please report your problem to
 
 {{< div "links" >}}
 
-[Continue Reading](/community/support/) 
+{{< div >}}
+[![Read](/_/img/read.svg)](/community/support/) 
+{{< /div >}}
+
+{{< div "partition" >}}{{< /div >}}
+
+{{< div >}}
+[Read More](/community/support/) 
+{{< /div >}}
 
 {{< /div >}}
 
@@ -35,7 +43,15 @@ There are many ways you can help make Camel better - please dive in and help!Ide
 
 {{< div "links" >}}
 
-[Continue Reading](/manual/latest/contributing.html) 
+{{< div >}}
+[![Read](/_/img/read.svg)](/manual/latest/contributing.html)
+{{< /div >}}
+
+{{< div "partition" >}}{{< /div >}}
+
+{{< div >}}
+[Read More](/manual/latest/contributing.html) 
+{{< /div >}}
 
 {{< /div >}}
 
@@ -56,7 +72,15 @@ This page is intended as a place to collect user stories and feedback on Apache
 
 {{< div "links" >}}
 
-[Continue Reading](/community/user-stories/) 
+{{< div >}}
+[![Read](/_/img/read.svg)](/community/user-stories/) 
+{{< /div >}}
+
+{{< div "partition" >}}{{< /div >}}
+
+{{< div >}}
+[Read More](/community/user-stories/) 
+{{< /div >}}
 
 {{< /div >}}
 
@@ -76,12 +100,19 @@ Articles are divided into several sections. As the lists grow, further sectionin
 
 {{< div "links" >}}
 
-[Continue Reading](/community/articles/) 
+{{< div >}}
+[![Read](/_/img/read.svg)](/community/articles/) 
+{{< /div >}}
+
+{{< div "partition" >}}{{< /div >}}
 
+{{< div >}}
+[Read More](/community/articles/) 
 {{< /div >}}
 
 {{< /div >}}
 
+{{< /div >}}
 
 {{< div "section" >}}
 
@@ -97,7 +128,15 @@ This page lists the known books about Apache Camel. If you happen to know a book
 
 {{< div "links" >}}
 
-[Continue Reading](/community/books/) 
+{{< div >}}
+[![Read](/_/img/read.svg)](/community/books/) 
+{{< /div >}}
+
+{{< div "partition" >}}{{< /div >}}
+
+{{< div >}}
+[Read More](/community/books/) 
+{{< /div >}}
 
 {{< /div >}}
 
@@ -117,7 +156,15 @@ This page lists who we are. By all means add yourself to the list - lets sort it
 
 {{< div "links" >}}
 
-[Continue Reading](/community/team/) 
+{{< div >}}
+[![Read](/_/img/read.svg)](/community/team/)
+{{< /div >}}
+
+{{< div "partition" >}}{{< /div >}}
+
+{{< div >}}
+[Read More](/community/team/) 
+{{< /div >}}
 
 {{< /div >}}