diff --git a/assets/scss/_community.scss b/assets/scss/_community.scss new file mode 100644 index 000000000..62107b6f8 --- /dev/null +++ b/assets/scss/_community.scss @@ -0,0 +1,258 @@ +/* Community page β section layout (ported from tekton-website-refresh) */ + +.td-community { + .td-outer, + .td-main { + padding: 0; + } + + .tekton-footer { + margin-right: 0; + margin-left: 0; + } +} + +.community-section { + padding: 3rem 1.5rem; + + &--alt { + background: #f8fafc; + } + + &__inner { + max-width: 62.5rem; + margin: 0 auto; + } + + &__label { + display: block; + margin-bottom: .25rem; + color: #6b7280; + font-size: $font-size-xs; + font-weight: 600; + letter-spacing: .1em; + text-transform: uppercase; + } + + &__heading { + margin: 0 0 1.5rem; + color: #0f172a; + font-size: $font-size-lg; + font-weight: 700; + } +} + +.community-pills { + display: flex; + flex-wrap: wrap; + gap: .75rem; +} + +.community-pill { + display: inline-flex; + align-items: center; + gap: .5rem; + padding: .5rem 1rem; + color: #374151; + background: #fff; + border: 1px solid #e5e7eb; + border-radius: 2rem; + font-size: $font-size-sm; + font-weight: 500; + text-decoration: none; + transition: border-color .15s, box-shadow .15s, color .15s; + + &:hover, + &:focus { + color: #4f46e5; + border-color: #818cf8; + box-shadow: 0 2px 8px rgba(79, 70, 229, .1); + text-decoration: none; + } + + &__icon { + font-size: 1rem; + line-height: 1; + } +} + +.community-grid { + display: grid; + gap: 1.5rem; + + &--2 { + grid-template-columns: repeat(2, 1fr); + } + + &--3 { + grid-template-columns: repeat(3, 1fr); + } +} + +.community-card { + padding: 1.5rem; + background: #fff; + border: 1px solid #e5e7eb; + border-radius: .75rem; + transition: box-shadow .2s, border-color .2s; + + &:hover { + border-color: #c7d2fe; + box-shadow: 0 4px 16px rgba(0, 0, 0, .07); + } + + &__header { + display: flex; + align-items: center; + gap: .625rem; + margin-bottom: .75rem; + + h3 { + margin: 0; + font-size: $font-size-md; + font-weight: 700; + } + } + + &__icon { + display: flex; + flex-shrink: 0; + align-items: center; + justify-content: center; + width: 2rem; + height: 2rem; + border-radius: .5rem; + font-size: 1.1rem; + + &--blue { background: #eef2ff; color: #4f46e5; } + &--amber { background: #fef3c7; color: #d97706; } + &--purple { background: #ede9fe; color: #7c3aed; } + &--teal { background: #ecfdf5; color: #059669; } + &--orange { background: #fff7ed; color: #ea580c; } + } + + p { + margin: 0 0 .75rem; + color: #6b7280; + font-size: $font-size-sm; + line-height: 1.5; + } + + ul { + display: flex; + flex-direction: column; + gap: .375rem; + margin: 0; + padding: 0; + list-style: none; + } + + li a { + display: flex; + align-items: center; + gap: .5rem; + padding: .375rem .625rem; + color: #374151; + border-radius: .375rem; + font-size: $font-size-sm; + text-decoration: none; + transition: background .15s, color .15s; + + &::before { + content: "β"; + flex-shrink: 0; + opacity: .4; + font-size: $font-size-xs; + } + + &:hover, + &:focus { + color: $primary; + background: #f0f0ff; + text-decoration: none; + + &::before { + opacity: 1; + } + } + } + + &__cta { + display: inline-block; + color: #4f46e5; + font-size: $font-size-sm; + font-weight: 500; + text-decoration: none; + transition: color .15s; + + &:hover, + &:focus { + color: $primary; + text-decoration: none; + } + } +} + +.community-adopters { + border-top: 1px solid #e5e7eb; + + &__heading { + text-align: center; + } + + &__logos { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: center; + gap: 2rem 2.5rem; + } + + &__logo { + width: auto; + max-width: 8.75rem; + height: 2rem; + object-fit: contain; + opacity: .7; + transition: opacity .2s; + + &:hover { + opacity: 1; + } + } + + &__link { + margin-top: 1.5rem; + text-align: center; + } +} + +@media (max-width: 900px) { + .community-grid--3 { + grid-template-columns: repeat(2, 1fr); + } +} + +@media (max-width: $mobile-width) { + .community-section { + padding: 2rem 1rem; + + &__heading { + font-size: $font-size-xl; + } + } + + .community-grid--2, + .community-grid--3 { + grid-template-columns: 1fr; + } + + .community-adopters__logos { + gap: 1.25rem 1.5rem; + } + + .community-adopters__logo { + max-width: 6.25rem; + height: 1.5rem; + } +} diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss index 983c2a767..9f8aed7e6 100644 --- a/assets/scss/_styles_project.scss +++ b/assets/scss/_styles_project.scss @@ -790,3 +790,5 @@ body > header { } } } +@import "community"; + diff --git a/content/en/community/_index.md b/content/en/community/_index.md index d7aca66eb..a6e1c380e 100644 --- a/content/en/community/_index.md +++ b/content/en/community/_index.md @@ -1,9 +1,10 @@ --- title: Community +type: community +description: "Join the Tekton community β Slack, working groups, contribution guides, and governance." menu: main: weight: 50 --- -Find more information on the [Tekton Community -repository](https://github.com/tektoncd/community). +Tekton is built in the open by contributors from dozens of organizations. Whether you're fixing a typo, proposing a feature, or joining a working group, there's a place for you here. diff --git a/layouts/community/baseof.html b/layouts/community/baseof.html new file mode 100644 index 000000000..223efc0ca --- /dev/null +++ b/layouts/community/baseof.html @@ -0,0 +1,19 @@ + + +
+ {{ partial "head.html" . }} + + +Our mission is to be the industry-standard, cloud-native CI/CD - platform components and ecosystem.
- -Read our contribution standards:
-Join our community spaces:
-Join our regular meetings β everyone is welcome to listen, ask questions, and contribute.
+ + View schedule β + +Focused teams drive specific areas of the project. Find one that matches your interests.
+ + Join a group β + +Check out our processes:
+Read our contribution standards and start contributing to Tekton.
Help improve the Tekton documentation:
+Understand how to propose, review, and ship contributions.
+Grow from first-time contributor to project lead. Every step is documented.
+ +Open source projects, cloud vendors, and end users are building - amazing things with Tekton. Check out the - - list of Tekton Adopters to learn more.
+ - +