Skip to content

Commit

Permalink
Community updates (kubernetes#4) (kubernetes#864)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Heneise <[email protected]>

Co-authored-by: Christian Mejlak <[email protected]>
  • Loading branch information
PatrickHeneise and C-Mejlak authored Nov 24, 2020
1 parent 18a8862 commit 2a99f95
Show file tree
Hide file tree
Showing 22 changed files with 487 additions and 37 deletions.
37 changes: 37 additions & 0 deletions linkerd.io/.forestry/front_matter/templates/schema-faq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
label: 'Schema: FAQ'
hide_body: true
fields:
- name: enableFAQSchema
type: boolean
label: Enable FAQ Schema
- name: schema_faq
type: field_group
config: {}
fields:
- name: faqs
type: field_group_list
fields:
- name: question
type: text
config:
required: true
label: Question
- name: answer
type: textarea
default: ''
config:
required: true
wysiwyg: false
schema:
format: markdown
label: Answer
config:
min:
max:
labelField:
label: FAQs
label: 'Schema: FAQ'
showOnly:
field: enableFAQSchema
value: true
62 changes: 62 additions & 0 deletions linkerd.io/.forestry/front_matter/templates/schema-video.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
label: 'Schema: Video'
hide_body: true
fields:
- name: enableVideoSchema
type: boolean
label: video object
- name: schema_video
type: field_group_list
config:
min: 1
max: 3
labelField:
fields:
- name: title
type: text
config:
required: true
label: Title
- name: description
type: textarea
default: ''
config:
required: true
wysiwyg: false
schema:
format: markdown
label: Description
- name: thumbnailUrl
type: text
config:
required: false
label: Thumbnail Url
default: https://i.ytimg.com/
- name: embedUrl
type: text
config:
required: true
label: YouTube Embed Url
default: ''
description: https://www.youtube.com/watch?v=123
- name: uploadDate
type: datetime
label: Upload Date
description: ''
config:
required: true
date_format: YYYY-MM-DD
time_format:
display_utc: false
export_format: YYYY-MM-DD
default: now
- name: duration
type: text
config:
required: false
label: Duration
default: PT3078S
label: 'Schema: Video'
showOnly:
field: enableVideoSchema
value: true
30 changes: 27 additions & 3 deletions linkerd.io/assets/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,24 @@
}

.community-top-hero {
background: url('/images/community_hero.png'), url('/images/pattern_community_hero.svg');
background-repeat: no-repeat;
background-position: 10px 22px, left center;
padding: 100px 20px;
.community-top-hero__image-wrapper {
position: relative;
img {
clip-path: url(#star);
vertical-align: middle;
}
.trophy {
position: absolute;
bottom: 20px;
left: 0;
z-index: 10;
}
}
}



.enterprise-top-hero {
background: url('/images/enterprise_left.svg'), url('/images/enterprise_right.svg');
background-repeat: no-repeat;
Expand Down Expand Up @@ -525,4 +537,16 @@ blockquote {
label {
@extend .has-text-navy-black;
}
}

.heroes-card {
.heroes-card__no-of-wins {
display: flex;
justify-content: center;
align-items: center;
margin-left: auto;
color: $white;
background-image: url('data:image/svg+xml, %3Csvg%20width%3D%2239%22%20height%3D%2239%22%20viewBox%3D%220%200%2039%2039%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M19.7611%201.60836L22.3431%200.25385C22.5688%200.13392%2022.844%200.183303%2023.0133%200.366726L25.0168%202.48315C25.1438%202.61719%2025.3273%202.68068%2025.5107%202.65246L28.3961%202.20801C28.643%202.17274%2028.8899%202.29972%2028.9957%202.53253L30.2021%205.18511C30.2797%205.35442%2030.4349%205.47435%2030.6183%205.50963L33.4896%206.02462C33.7365%206.06695%2033.927%206.27154%2033.9481%206.52551L34.2233%209.42501C34.2444%209.60843%2034.3503%209.77069%2034.5125%209.8624L37.0593%2011.2804C37.278%2011.4003%2037.3908%2011.6614%2037.3344%2011.9083L36.6572%2014.7443C36.6148%2014.9277%2036.6642%2015.1182%2036.7841%2015.2522L38.7312%2017.4251C38.9006%2017.6156%2038.9217%2017.8907%2038.7877%2018.1023L37.2215%2020.5644C37.1228%2020.7196%2037.1087%2020.9172%2037.1792%2021.0865L38.315%2023.7743C38.4138%2024.0071%2038.3432%2024.2752%2038.1457%2024.4375L35.867%2026.2576C35.7189%2026.3705%2035.6413%2026.5539%2035.6554%2026.7373L35.86%2029.6439C35.8811%2029.8978%2035.7259%2030.1307%2035.4861%2030.2153L32.7418%2031.1959C32.5654%2031.2594%2032.4314%2031.4005%2032.389%2031.5839L31.6342%2034.3988C31.5707%2034.6457%2031.352%2034.815%2031.098%2034.815L28.1844%2034.8503C28.001%2034.8503%2027.8246%2034.949%2027.7259%2035.0972L26.0962%2037.5381C25.9551%2037.7498%2025.6941%2037.8415%2025.4542%2037.7568L22.6817%2036.8468C22.5054%2036.7903%2022.3149%2036.8185%2022.1667%2036.9314L19.8457%2038.6951C19.6411%2038.8503%2019.366%2038.8503%2019.1614%2038.6951L16.8404%2036.9314C16.6923%2036.8185%2016.5018%2036.7903%2016.3254%2036.8468L13.5529%2037.7568C13.313%2037.8344%2013.052%2037.7427%2012.9109%2037.5381L11.2883%2035.1184C11.1825%2034.9631%2011.0132%2034.8714%2010.8298%2034.8714L7.91617%2034.8362C7.6622%2034.8362%207.4435%2034.6598%207.38001%2034.4199L6.62515%2031.6051C6.57577%2031.4287%206.44173%2031.2806%206.27241%2031.2171L3.52812%2030.2365C3.28826%2030.1518%203.14011%2029.919%203.15422%2029.665L3.35881%2026.7585C3.37292%2026.5751%203.29532%2026.3916%203.14717%2026.2788L0.868488%2024.4586C0.670956%2024.3034%200.600408%2024.0283%200.699175%2023.7955L1.82088%2021.1006C1.89142%2020.9313%201.87732%2020.7337%201.77855%2020.5785L0.212398%2018.1164C0.0783579%2017.9048%200.0995223%2017.6226%200.268836%2017.4392L2.21594%2015.2663C2.34293%2015.1252%202.38526%2014.9348%202.34293%2014.7584L1.66567%2011.9224C1.60924%2011.6755%201.72211%2011.4215%201.94081%2011.2945L4.48757%209.87651C4.64983%209.7848%204.75565%209.62254%204.77681%209.43912L5.05195%206.53962C5.07311%206.28565%205.26359%206.08106%205.5105%206.03873L8.38178%205.52374C8.5652%205.48846%208.72041%205.36853%208.79801%205.19922L10.0044%202.54664C10.1102%202.31383%2010.3571%202.18685%2010.604%202.22212L13.4894%202.66657C13.6728%202.69479%2013.8563%202.6313%2013.9832%202.49726L15.9868%200.380836C16.1632%200.197412%2016.4383%200.148029%2016.657%200.26796L19.239%201.62247C19.4013%201.69302%2019.5988%201.69302%2019.7611%201.60836Z%22%20fill%3D%22%23001443%22%2F%3E%0A%3C%2Fsvg%3E%0A');
background-size: cover;
}
}
45 changes: 30 additions & 15 deletions linkerd.io/content/community/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,37 @@ top_hero:
title: Community-Powered, Battle-Tested
description: Linkerd is a community project! We'd love to have you join our active
and friendly community of adopters and contributors.
image: "/uploads/community_hero.png"
image: "/uploads/community-hero-example.jpg"
buttons:
- caption: I gave a talk!
url: https://docs.google.com/forms/d/e/1FAIpQLSffBkzqjErpSY3ibkaZhy7_9AayVlIhya-5R4DvL-Ttq_wkjA/viewform
- caption: I use Linkerd!
url: https://docs.google.com/forms/d/e/1FAIpQLSe69G-4GmhMb9nzBO9Du0582eJJMHAmK0BQi1F23X6htsieLQ/viewform
- caption: Meet all our Linkerd Heros
url: "/heroes"
image_on_the_right: false
two_col_section:
title: Tell your story
description: Talking about the problems you’re solving could save someone weeks or even months of toil. Share your lessons learned with our community!
links:
- caption: Become a Community Anchor
url:
icon_name: fas fa-anchor
image: "/uploads/tell-your-story.png"
image_on_the_right: true
two_col_section_2:
title: Get Involved
description: Whether contributing code, flagging bugs, or helping your peers on Slack, contributors come in all shapes and sizes. Join our thriving community today!
links:
- caption: Github
url:
icon_name: fab fa-github
- caption: Report a Bug
url:
icon_name: fas fa-bug
- caption: Slack
url:
icon_name: fab fa-slack
- caption: Summer of Code
url:
icon_name: fas fa-code
image: "/uploads/get-involved.png"
image_on_the_right: false
link_lists:
links_list:
Expand Down Expand Up @@ -50,16 +75,6 @@ link_lists:
- caption: Calendar
url: https://calendar.google.com/calendar/embed?src=buoyant.io_j28ik70vrl3418f4oldkdici7o%40group.calendar.google.com
icon_name: far fa-calendar
talk_hero:
title: Giving a talk or hosting a meetup about Linkerd?
description: Download an up-to-date slide deck or request swag to support your talk.
image: "/uploads/IMG_3409.JPG"
image_on_the_right: false
buttons:
- caption: Get Slides
url: https://docs.google.com/presentation/d/1qseWDYWD4KzYFhb4bcp8WuDPYFVwB8sYeNnjCsgDUOw/edit#slide=id.g43a491cf2f_1_4
- caption: Get Meetup Swag
url: https://docs.google.com/forms/d/e/1FAIpQLSfO9jILT-2B3XNi-2IJvLEfPuhyf_Xxc_EqYl3dU8CgVtQCqQ/viewform
jobs:
title: Jobs in the Community
description: Check out these Linkerd related jobs from companies who love Linkerd
Expand Down
25 changes: 25 additions & 0 deletions linkerd.io/content/heroes/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Heroes
layout: heroes
top_hero:
title: Linkerd Heros
description: Open source is all about community, and Linkerd wouldn't be what it is today without our heroes. Linkerd Heroes contribute to the codebase, help each other out whether on Slack or social media, share their successes and failures at conferences or through blogs, fostering the dynamic and engaging community we all love.
image: "/uploads/heros-trophy.svg"
image_on_the_right: false
heroes:
- name: Mayank Shan
job_title: Intern @ CNCF
location: Chennai, Tamil Nadu, India
image: "/uploads/community-hero-example.jpg"
times_winner: 4
- name: Mayank Shan
job_title: Intern @ CNCF
location: Chennai, Tamil Nadu, India
image: "/uploads/community-hero-example.jpg"
times_winner: 2
- name: Mayank Shan
job_title: Intern @ CNCF
location: Chennai, Tamil Nadu, India
image: "/uploads/community-hero-example.jpg"
times_winner: 3
---
3 changes: 2 additions & 1 deletion linkerd.io/layouts/community/community.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

{{ define "main" }}
{{ partial "community/top-hero.html" .Params.top_hero }}
{{ partial "community/two-col-section.html" .Params.two_col_section }}
{{ partial "community/two-col-section.html" .Params.two_col_section_2 }}
{{ partial "community/links-lists.html" .Params.link_lists }}
{{ partial "hero.html" .Params.talk_hero }}
{{ partial "community/jobs.html" .Params.jobs }}

{{ partial "homepage/image-list.html" (dict "mentions" .Site.Home.Params.companies "title" .Site.Home.Params.companies_title "backgroundColor" "has-background-light-blue") }}
Expand Down
5 changes: 5 additions & 0 deletions linkerd.io/layouts/heroes/heroes.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{ define "main" }}
{{ partial "heroes/top-hero.html" .Params.top_hero }}
{{ partial "heroes/heroes-section.html" .Params.heroes }}

{{ end }}
2 changes: 1 addition & 1 deletion linkerd.io/layouts/partials/community/links-lists.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="wrapper has-background-white">
<div class="wrapper has-background-white py-6">
<div class="container columns is-mobile is-multiline is-centered links-list-container">
{{ range .links_list }}
<div class="column is-narrow links-list is-paddingless">
Expand Down
26 changes: 16 additions & 10 deletions linkerd.io/layouts/partials/community/top-hero.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
<div class="wrapper body-header has-background-bright-blue has-text-white">
<div class="community-top-hero wrapper body-header has-background-bright-blue has-text-white">
<div class="columns center-column is-marginless is-fullwidth">
<div class="column">
<div class="container columns community-top-hero is-marginless{{ if .image_on_the_right }} row-reverse{{ end }}">
<div class="column"></div>
<div class="column center">
<div class="container columns is-marginless{{ if .image_on_the_right }} row-reverse{{ end }}">
<div class="column is-4 is-offset-1 py-4 community-top-hero__image-wrapper">
<img src="{{.image}}" alt="">

{{ partial "community/trophy.svg"}}
<svg width="0" height="0">
<defs>
<clipPath id="star" clipPathUnits="objectBoundingBox">
<path d="M0.5 0L0.574891 0.0512056L0.66235 0.0270914L0.716556 0.0998394L0.807106 0.10543L0.834754 0.191837L0.918583 0.226526L0.916677 0.317229L0.9847 0.377257L0.953446 0.462426L0.998292 0.54129L0.941077 0.611696L0.957887 0.700848L0.880911 0.748861L0.867862 0.838641L0.779467 0.859059L0.737974 0.939737L0.647738 0.930347L0.582297 0.993181L0.5 0.955L0.417703 0.993181L0.352262 0.930347L0.262026 0.939737L0.220533 0.859059L0.132138 0.838641L0.119089 0.748861L0.0421133 0.700848L0.0589229 0.611696L0.00170776 0.54129L0.0465541 0.462426L0.0152999 0.377257L0.0833232 0.317229L0.0814168 0.226526L0.165246 0.191837L0.192894 0.10543L0.283444 0.0998394L0.33765 0.0270914L0.425109 0.0512056L0.5 0Z" fill="#C4C4C4"/>
</clipPath>
</defs>
</svg>
</div>
<div class="column is-6 is-offset-1 center">
<div class="notification">
<h1 class="title is-size-1">{{.title}}</h1>
<h5 class="title is-size-5">{{.description | markdownify}}</h5>
<div class="columns">
{{ range .buttons }}
<div class="column">
<a href="{{.url}}" class="button is-primary is-large is-fullwidth" target="_blank">
<a href="{{.url}}" class="button is-primary is-large">
{{.caption}}
</a>
</div>
{{ end }}
</div>
<div class="github-stat-buttons">
<a class="github-button" href="https://github.com/linkerd/linkerd2" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star linkerd/linkerd2 on GitHub">Star</a>
<a class="github-button" href="https://github.com/linkerd/linkerd2/subscription" data-icon="octicon-eye" data-size="large" data-show-count="true" aria-label="Watch linkerd/linkerd2 on GitHub" data-proofer-ignore="data-proofer-ignore">Watch</a>
<a class="github-button" href="https://github.com/linkerd/linkerd2/fork" data-icon="octicon-repo-forked" data-size="large" data-show-count="true" aria-label="Fork linkerd/linkerd2 on GitHub">Fork</a>
</div>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 2a99f95

Please sign in to comment.