Skip to content

Commit 25f6545

Browse files
committed
Fix for mobile viewport overflows on home page
1 parent e93e4f4 commit 25f6545

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

src/css/tailwind.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,14 @@ details[open] .summary-swap-open {
260260
}
261261

262262
/* special text treatment on home page */
263+
.hero-text {
264+
font-size: 2.5em;
265+
}
266+
@media (min-width: 40em) { /* 640px */
267+
.hero-text {
268+
font-size: 3em; /* 48px /16 */
269+
}
270+
}
263271
@media (min-width: 64em) { /* 1024px */
264272
.hero-text {
265273
font-size: 4em; /* 64px /16 */

src/site/_includes/components/section-heading.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212

1313

1414
{% macro benefit(title, icon, description ) %}
15-
<div class="flex content-start space-x-8 my-12">
15+
<div class="sm:flex sm:content-start sm:space-x-8 my-12">
1616

1717
{% if icon %}
18-
<svg role="img" aria-label="{{ title }}" aria-hidden="true" focusable="false" width="60" height="60" class="flex-none mt-2">
18+
<svg role="img" aria-label="{{ title }}" aria-hidden="true" focusable="false" width="60" height="60" class="flex-none my-2">
1919
<use xlink:href="{{ icon }}"></use>
2020
</svg>
2121
{% endif %}

src/site/index.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ layout: layouts/base.njk
6060
<section class="mb-20">
6161
<h2 class="text-2xl">The future is highly distributed</h2>
6262
<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.
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.
6464
</p>
6565
<img src="/img/svg/architecture.svg" alt="Jamstack architecture diagram, Bidirectional arrows between Client and CDN, Client and Microservices">
6666
</section>
@@ -85,7 +85,7 @@ layout: layouts/base.njk
8585
</p>
8686
<div class="mt-12 flex flex-wrap justify-around lg:justify-between">
8787
{% for item in examples | iterable | selectattr("featured") | luckydip(6) %}
88-
<div class="md:w-1/2 lg:w-1/3 text-left mb-8 pr-10">
88+
<div class="md:w-1/2 lg:w-1/3 text-left mb-8 md:pr-10">
8989
{% include "components/example-thumbnail.njk" %}
9090
</div>
9191
{% endfor %}

0 commit comments

Comments
 (0)