Skip to content

Commit ee71770

Browse files
authored
Merge pull request #35 from grain-lang/fix-blurbs-md-screen
Fix blurbs on medium screen sizes
2 parents 0bae1be + b1e353a commit ee71770

File tree

2 files changed

+30
-17
lines changed

2 files changed

+30
-17
lines changed

index.html

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,22 @@ <h2 class="hero-heading2 heading">Grain is a new language that puts academic lan
6060
</div>
6161
</section>
6262
<section class="blurbs">
63-
<div class="blurb">
64-
<i class="fas fa-layer-group blurb-icon"></i>
65-
<h2 class="blurb-title heading">Powered by WebAssembly</h2>
66-
<p class="blurb-message">Enter the future. Grain compiles directly to WebAssembly, taking full advantage of its speed and efficiency.</p>
67-
</div>
68-
<div class="blurb">
69-
<i class="fas fa-check-double blurb-icon"></i>
70-
<h2 class="blurb-title heading">Sensible Types</h2>
71-
<p class="blurb-message">No runtime type errors, ever. Every bit of Grain you write is thoroughly sifted for type errors, with no need for type annotations.</p>
72-
</div>
73-
<div class="blurb">
74-
<i class="fas fa-hand-holding-heart blurb-icon"></i>
75-
<h2 class="blurb-title heading">Functional Yet Flexible</h2>
76-
<p class="blurb-message">Grain has its roots in functional programming, but is flexible enough to accomodate different programming styles for various applications.</p>
63+
<div class="blurb-wrapper">
64+
<div class="blurb">
65+
<i class="fas fa-layer-group blurb-icon"></i>
66+
<h2 class="blurb-title heading">Powered by WebAssembly</h2>
67+
<p class="blurb-message">Enter the future. Grain compiles directly to WebAssembly, taking full advantage of its speed and efficiency.</p>
68+
</div>
69+
<div class="blurb">
70+
<i class="fas fa-check-double blurb-icon"></i>
71+
<h2 class="blurb-title heading">Sensible Types</h2>
72+
<p class="blurb-message">No runtime type errors, ever. Every bit of Grain you write is thoroughly sifted for type errors, with no need for type annotations.</p>
73+
</div>
74+
<div class="blurb">
75+
<i class="fas fa-hand-holding-heart blurb-icon"></i>
76+
<h2 class="blurb-title heading">Functional Yet Flexible</h2>
77+
<p class="blurb-message">Grain has its roots in functional programming, but is flexible enough to accomodate different programming styles for various applications.</p>
78+
</div>
7779
</div>
7880
</section>
7981
<section class="vision">

stylesheets/style.css

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,27 @@ html, body {
129129
justify-content: center;
130130
flex-wrap: wrap;
131131
}
132+
.blurb-wrapper {
133+
width: 78rem;
134+
display: flex;
135+
flex-wrap: wrap;
136+
justify-content: space-between;
137+
}
138+
@media only screen and (max-width: 1300px) {
139+
.blurb-wrapper {
140+
width: 22rem;
141+
}
142+
.blurb {
143+
margin-bottom: 6rem;
144+
}
145+
}
132146
.blurb {
133147
display: flex;
134148
flex-direction: column;
135149
width: 22rem;
136150
text-align: center;
137151
font-size: 1.125rem;
138152
}
139-
.blurb:not(:last-of-type) {
140-
margin-right: 6rem;
141-
}
142153
.blurb-icon {
143154
color: var(--gray2);
144155
font-size: 4rem;

0 commit comments

Comments
 (0)