Skip to content

Commit 785b6e1

Browse files
committed
Merge branch 'next-design-iteration' of github.com:jamstack/jamstack.org into ht/last-improvements-before-launch
2 parents 5a81f43 + fba62ab commit 785b6e1

File tree

7 files changed

+34
-20
lines changed

7 files changed

+34
-20
lines changed

src/css/tailwind.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ dd a:focus {
5454
p+p {
5555
@apply mt-4;
5656
}
57-
57+
section.cards {
58+
max-width: 66rem;
59+
}
5860

5961
/*
6062
CTA links
@@ -65,7 +67,7 @@ a.cta:visited {
6567
@apply bg-pink-900;
6668
@apply text-white;
6769
@apply rounded-full;
68-
@apply text-xs;
70+
@apply text-sm;
6971
@apply font-semibold;
7072
@apply px-4;
7173
@apply py-2;
@@ -193,7 +195,7 @@ footer p a:focus {
193195
}
194196
.list-jams-logo > li:after {
195197
background-image: url("data:image/svg+xml,%3Csvg width='8' viewBox='0 0 12 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 0C2.68226 0 0 2.90578 0 6.5C0 10.0942 2.68226 13 6 13C9.31774 13 12 10.0942 12 6.5V0H6Z' fill='%235A5F75'/%3E%3C/svg%3E%0A");
196-
left: 2em;
198+
left: 3em;
197199
}
198200
.list-jams-logo-pink > li:after {
199201
background-image: url("data:image/svg+xml,%3Csvg width='8' viewBox='0 0 12 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 0C2.68226 0 0 2.90578 0 6.5C0 10.0942 2.68226 13 6 13C9.31774 13 12 10.0942 12 6.5V0H6Z' fill='%23F0047F'/%3E%3C/svg%3E%0A");
@@ -203,7 +205,7 @@ footer p a:focus {
203205
@apply text-gray-400;
204206
content: "";
205207
position: absolute;
206-
left: 2.25em; /* 36px /16 */
208+
left: 3.25em; /* 36px /16 */
207209
top: 0;
208210
bottom: 0;
209211
border-left: 1px solid;

src/site/_includes/components/cards.njk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
{%- elseif loopIndex % 4 === 2 %} bg-gradient-card-seafoam
88
{%- elseif loopIndex % 4 === 3 %} bg-gradient-card-gold
99
{%- endif -%}">
10+
{%- if item.data.opensource -%}
11+
<div class="text-xxs mb-2">
12+
<span class="inline-block uppercase bg-black text-white leading-5 px-2 rounded">Open Source</span>
13+
</div>
14+
{% endif %}
1015
{{ item.data.title }}
1116
</div>
1217
<div class="p-4">

src/site/_includes/header.njk

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@
3939
{% include "navigation-links.njk" %}
4040

4141
<div>
42-
<a href="https://jamstackconf.com/" class="block p-4 my-4 bg-gradient-jams hover:bg-gradient-pink-orange font-bold text-center">Jamstack Conf</a>
43-
44-
<div class="text-center text-sm mb-4">Connect with us</div>
45-
<div class="grid grid-cols-3 divide-x divide-gray-700">
42+
<div class="text-center text-sm mb-4 text-gray-300">Connect with us</div>
43+
<div class="grid grid-cols-3 divide-x divide-gray-700 text-gray-300">
4644
<a href="https://jamstack.org/slack" target="_BLANK" rel="noopener" class="flex items-center justify-center p-4 hover:text-pink-500">
4745
<svg role="img" aria-label="Slack" focusable="false" width="30" height="30" class="fill-current"><use xlink:href="#logo-slack"></use></svg>
4846
</a>
@@ -53,6 +51,7 @@
5351
<svg role="img" aria-label="GitHub" focusable="false" width="36" height="36" class="fill-current"><use xlink:href="#logo-github"></use></svg>
5452
</a>
5553
</div>
54+
<a href="https://jamstackconf.com/" class="block p-4 mt-4 bg-gradient-jams hover:bg-gradient-pink-orange font-bold text-center">Jamstack Conf</a>
5655
</div>
5756
</nav>
5857
</details>

src/site/_includes/layouts/tool.njk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ layout: layouts/base.njk
5454
{%- endif %}
5555
</dl>
5656
<dl class="inline-block mb-4">
57+
{%- if opensource %}
58+
<dt class="inline-block font-bold mr-6">Open Source</dt>
59+
<dd class="inline-block sr-only">Yes</dd>
60+
{%- endif %}
5761
{%- if language %}
5862
<dt class="inline-block font-bold">Language:</dt>
5963
<dd class="inline-block mr-6">{{ language }}</dd>

src/site/_includes/navigation-links.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{%- for childlink in link.children %}
1313
<li>
1414
<a href="{{ childlink.url }}"
15-
class="block text-sm text-white hover:underline py-2 pl-12 pr-8{% if page.url.split("/")[1] == childlink.url.split("/")[1] %} bg-gray-900 font-bold{% endif %}">
15+
class="block text-sm text-white hover:underline py-2 pl-16 pr-8{% if page.url.split("/")[1] == childlink.url.split("/")[1] %} bg-gray-900 font-bold{% endif %}">
1616
{{ childlink.text }}
1717
</a>
1818
</li>

src/site/index.njk

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ layout: layouts/base.njk
66
{% import "components/ticker.njk" as ticker %}
77
{% import "components/section-heading.njk" as section %}
88

9-
<section class="my-16 ">
9+
<section class="mt-16">
1010
<p class="w-1/2">Comprehensive guide for building Jamstack sites and home of the global Jamstack community.</p>
1111
<h1 class="hero-text">The modern way to&nbsp;build <img src="/img/svg/websites-and-apps.svg" width="545" height="88" alt="Websites and Apps" class="inline-block mr-2 hero-text-img"> that delivers better performance</h1>
1212
<a href="/community" class="cta">Join the global community</a>
1313
</section>
1414

1515
<section class="mb-20 p-0">
16-
<p class="px-8">Maximize efficiency with the tools you love</p>
1716
{{ ticker.icons() }}
1817
{{ ticker.main() }}
1918
</section>
@@ -57,13 +56,15 @@ layout: layouts/base.njk
5756
<a href="/why-jamstack" class="cta">Read more about the benefits of Jamstack</a>
5857
</section>
5958

60-
<section class="mb-20">
61-
<h2 class="text-2xl">The future is highly distributed</h2>
62-
<p class="mt-6 mb-8">
63-
Jamstack is the new standard architecture for the web. Using Git workflows and modern build tools, pre-rendered content is served to a CDN and made dynamic through APIs and serverless functions. Technologies in the stack include JavaScript frameworks, Static Site Generators, Headless CMSs, and CDNs.
64-
</p>
65-
<img src="/img/svg/architecture.svg" alt="Jamstack architecture diagram, Bidirectional arrows between Client and CDN, Client and Microservices">
66-
</section>
59+
<div class="bg-gray-100 mb-20">
60+
<section>
61+
<h2 class="text-2xl">The future is highly distributed</h2>
62+
<p class="mt-6 mb-8">
63+
Jamstack is the new standard architecture for the web. Using Git workflows and modern build tools, pre-rendered content is served to a CDN and made dynamic through APIs and serverless functions. Technologies in the stack include JavaScript frameworks, Static Site Generators, Headless CMSs, and CDNs.
64+
</p>
65+
<img src="/img/svg/architecture.svg" alt="Jamstack architecture diagram, Bidirectional arrows between Client and CDN, Client and Microservices">
66+
</section>
67+
</div>
6768

6869
<section class="text-center mb-20">
6970
<div class="md:w-8/12 mx-auto">

tailwind.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ module.exports = {
44
'./src/site/**/*.md'
55
],
66
theme: {
7-
87
borderRadius: {
98
'none': '0',
109
'sm': '.125rem',
@@ -14,6 +13,9 @@ module.exports = {
1413
'full': '9999px',
1514
},
1615
extend: {
16+
fontSize: {
17+
xxs: "0.625rem",
18+
},
1719
colors: {
1820
orange: {
1921
500: "#DF4A1F",
@@ -29,11 +31,12 @@ module.exports = {
2931
900: "#0D0F18",
3032
700: "#2D3247",
3133
400: "#5A5F75",
34+
300: "#9AA0B6",
3235
200: "#DEDEDE",
3336
100: "#10121E"
3437
},
3538
pink : {
36-
900 : '#D81467', // old
39+
900 : '#D1036F', // old
3740
500 : '#F0047F',
3841
100 : '#FFB1C5' // old
3942
}

0 commit comments

Comments
 (0)