Skip to content

Commit d09393c

Browse files
authored
Merge pull request #35 from ryanmr/tailwind-2.x-upgrade
Tailwind 2.x upgrade
2 parents dae82e8 + fa7da1e commit d09393c

File tree

9 files changed

+6036
-3643
lines changed

9 files changed

+6036
-3643
lines changed

package-lock.json

Lines changed: 5953 additions & 2747 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@
2323
"@11ty/eleventy": "^0.11.1",
2424
"@11ty/eleventy-plugin-inclusive-language": "^1.0.0",
2525
"@mightyplow/eleventy-plugin-cache-buster": "^1.1.3",
26-
"@tailwindcss/typography": "^0.2.0",
27-
"autoprefixer": "^10.0.4",
26+
"@tailwindcss/typography": "^0.3.1",
27+
"autoprefixer": "^10.1.0",
2828
"cross-env": "^7.0.3",
29+
"cssnano": "^4.1.10",
2930
"html-minifier": "^4.0.0",
30-
"husky": "^4.3.4",
31+
"husky": "^4.3.5",
3132
"npm-run-all": "^4.1.5",
32-
"postcss": "8.1.10",
33-
"postcss-clean": "^1.1.0",
33+
"postcss": "^8.2.1",
3434
"postcss-cli": "^8.3.0",
3535
"prettier": "^2.2.1",
3636
"pretty-quick": "^3.1.0",
3737
"rimraf": "^3.0.2",
38-
"tailwindcss": "^1.9.6",
38+
"tailwindcss": "^2.0.1",
3939
"terser": "^5.5.1"
4040
},
4141
"repository": {

postcss.config.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ module.exports = {
44
require('autoprefixer'),
55
...(process.env.NODE_ENV === 'production'
66
? [
7-
require('postcss-clean')({
8-
compatibility: {
9-
properties: {
10-
zeroUnits: false,
7+
require('cssnano')({
8+
preset: [
9+
'default',
10+
{
11+
calc: {
12+
preserve: true,
13+
},
1114
},
12-
},
15+
],
1316
}),
1417
]
1518
: []),

src/events.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ title: Events
99
{% include "nextEvent.njk" %}
1010

1111
<h2
12-
class="inline-block bg-black text-white text-2xl font-bold px-4 mb-2 transform -rotate-1"
12+
class="inline-block bg-black text-white text-2xl font-bold px-4 leading-normal mb-2 transform -rotate-1"
1313
>
1414
Past
1515
</h2>
1616

17-
<div class="divide-y divide-black divide-solid">
17+
<div class="divide-y divide-gray-400 divide-solid">
1818
{% for event in events | rejectattr('hidden') %}
1919
<article class="py-4" data-past-event>
2020
<h3 class="font-bold text-2xl">{{ event.title }}</h3>

src/includes/footer.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<footer class="border-t-2 border-black mt-10">
22
<div class="container mx-auto p-2 pt-4">
33
<div
4-
class="flex justify-center items-start space-x-16 divide-x-2 divide-gray-100 divide"
4+
class="flex justify-center items-start space-x-16"
55
>
66
<div class="px-2">
77
<p
@@ -10,7 +10,7 @@
1010
>
1111
Meetup
1212
</p>
13-
<ul aria-describedby="footer-meetup">
13+
<ul aria-describedby="footer-meetup" class="space-y-2 sm:space-y-0">
1414
{% for link in site.navigation %}
1515
<li>
1616
<a class="hover:underline" href="{{ link.path | url }}"
@@ -27,7 +27,7 @@
2727
>
2828
Connect
2929
</p>
30-
<ul aria-describedby="footer-connect">
30+
<ul aria-describedby="footer-connect" class="space-y-2 sm:space-y-0">
3131
{% for link in site.connect %}
3232
<li>
3333
<a class="hover:underline" href="{{ link.href }}" rel="noopener noreferrer"

src/includes/nextEvent.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<article class="mb-20">
44
<h2
5-
class="inline-block bg-black text-white text-2xl font-bold px-4 mb-2 transform -rotate-1"
5+
class="inline-block bg-black text-white text-2xl font-bold px-4 leading-normal mb-2 transform -rotate-1"
66
>
77
{% if page.url !== '/events/' | url %}
88
<a href="{{ '/events/' | url }}">Upcoming</a>

src/index.njk

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ changeFreq: daily
77
{# primary content #}
88
<div class="special-bg">
99
<div class="container mx-auto px-2 py-10 mb-10">
10-
<div class="x-h-screen flex justify-center items-center">
10+
<div class="flex justify-center items-center">
1111
<div>
12-
<div class="text-center flex flex-wrap sm:flex-no-wrap justify-center px-4 sm:px-0">
12+
<div
13+
class="text-center flex flex-wrap sm:flex-nowrap justify-center px-4 sm:px-0"
14+
>
1315
<div class="w-full sm:w-1/2">
1416
<div class="pl-8 sm:pl-16" data-animated-logo>
1517
{% include "_logo.svg" %}
1618
</div>
1719
</div>
1820
<div class="w-full sm:w-1/2 self-center">
19-
<div class="text-4xl font-bold"><h1>JavaScriptMN</h1></div>
20-
<p class="text-xl">
21+
<div class="text-4xl leading-normal font-bold"><h1>JavaScriptMN</h1></div>
22+
<p class="text-xl leading-normal">
2123
A monthly meetup for anyone interested in JavaScript and related
2224
technologies in the Twin Cities.
2325
</p>
@@ -37,13 +39,13 @@ changeFreq: daily
3739
<div>
3840
<div class="flex justify-end items-center mb-2">
3941
<h2
40-
class="inline-block bg-black text-white text-2xl font-bold px-4 transform rotate-1"
42+
class="inline-block bg-black text-white text-2xl font-bold px-4 leading-normal transform rotate-1"
4143
>
4244
Links
4345
</h2>
4446
</div>
4547
<ul
46-
class="flex justify-center sm:justify-end items-center space-y-2 sm:space-y-0 sm:space-x-2 flex-wrap sm:flex-no-wrap"
48+
class="flex justify-center sm:justify-end items-center space-y-2 sm:space-y-0 sm:space-x-2 flex-wrap sm:flex-nowrap"
4749
>
4850
{% for link in actionLinks %}
4951
<li class="w-full sm:w-auto">
@@ -60,20 +62,19 @@ changeFreq: daily
6062
</div>
6163
</div>
6264

63-
6465
{# location, speaking #}
6566

6667
<div class="container mx-auto px-2 mb-10">
6768
<div class="x-h-screen flex justify-center items-center">
6869
<div class="w-full">
6970
<section class="mb-8">
7071
<h2
71-
class="inline-block bg-black text-white text-2xl font-bold px-4 mb-2 transform -rotate-1"
72+
class="inline-block bg-black text-white text-2xl font-bold px-4 leading-normal mb-2 transform -rotate-1"
7273
>
7374
Location
7475
</h2>
7576
<div
76-
class="border-jsmn-yellow border-4 p-4 flex justify-between items-center flex-wrap sm:flex-no-wrap space-y-4 sm:space-y-0"
77+
class="border-jsmn-yellow border-4 p-4 flex justify-between items-center flex-wrap sm:flex-nowrap space-y-4 sm:space-y-0"
7778
>
7879
<div class="w-full sm:w-1/2">
7980
<p class="text-lg leading-7">
@@ -99,13 +100,13 @@ changeFreq: daily
99100
<section class="mb-8">
100101
<div class="flex justify-start items-center mb-2">
101102
<h2
102-
class="inline-block bg-black text-white text-2xl font-bold px-4 transform -rotate-1"
103+
class="inline-block bg-black text-white text-2xl font-bold px-4 leading-normal transform -rotate-1"
103104
>
104105
Speak
105106
</h2>
106107
</div>
107108
<div
108-
class="border-jsmn-yellow border-4 p-4 flex justify-between items-center flex-wrap sm:flex-no-wrap space-y-4 sm:space-y-0"
109+
class="border-jsmn-yellow border-4 p-4 flex justify-between items-center flex-wrap sm:flex-nowrap space-y-4 sm:space-y-0"
109110
>
110111
<div>
111112
<h3 class="text-2xl font-bold">Interested in speaking?</h3>
@@ -116,10 +117,11 @@ changeFreq: daily
116117
</div>
117118
<div class="w-full sm:w-auto">
118119
<a
119-
class="block text-xl font-semibold border-2 border-black p-4 hover:bg-jsmn-yellow transition-all duration-100"
120+
class="text-xl font-semibold border-2 border-black p-4 hover:bg-jsmn-yellow transition-all duration-100 flex justify-evenly items-center"
120121
href="{{ '/speak/' | url }}"
121-
>Learn More</a
122122
>
123+
<span>Speak at JSMN!</span>
124+
</a>
123125
</div>
124126
</div>
125127
</section>
@@ -128,7 +130,7 @@ changeFreq: daily
128130
<section class="mb-8">
129131
<div class="flex justify-between items-center mb-2">
130132
<h2
131-
class="inline-block bg-black text-white text-2xl font-bold px-4 transform -rotate-1"
133+
class="inline-block bg-black text-white text-2xl font-bold px-4 leading-normal transform -rotate-1"
132134
>
133135
Sponsors
134136
</h2>
@@ -139,11 +141,12 @@ changeFreq: daily
139141
</p>
140142
</div>
141143
<div class="border-jsmn-yellow border-4 p-4">
142-
{% for section in sponsors %}
143-
{% if section.showOnHome === true %}
144+
{% for section in sponsors %} {% if section.showOnHome === true %}
144145
<div class="w-2/3 mx-auto mb-4">
145146
<h3 class="font-bold text-2xl">{{ section.section | safe }}</h3>
146-
<div class="grid sm:grid-cols-4 sm:gap-2 grid-cols-none space-y-4 sm:space-y-0">
147+
<div
148+
class="grid sm:grid-cols-4 sm:gap-2 grid-cols-none space-y-4 sm:space-y-0"
149+
>
147150
{% for sponsor in section.sponsors %}
148151
<div class="flex justify-center items-center">
149152
<a
@@ -163,8 +166,7 @@ changeFreq: daily
163166
{% endfor %}
164167
</div>
165168
</div>
166-
{% endif %}
167-
{% endfor %}
169+
{% endif %} {% endfor %}
168170
</div>
169171
</section>
170172
</div>

src/sponsorship-opportunities.njk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ layout: base
2121
</div>
2222

2323
<div
24-
class="flex flex-wrap sm:flex-no-wrap space-x-0 sm:space-x-4 space-y-8 sm:space-y-0"
24+
class="flex flex-wrap sm:flex-nowrap space-x-0 sm:space-x-4 space-y-8 sm:space-y-0"
2525
>
2626
{# first option #}
2727
<section class="w-full sm:w-1/3">
2828
<div class="border-4 border-jsmn-yellow shadow-lg">
2929
<div class="px-2 text-center my-4">
30-
<p role="img" aria-label="silver medal" class="text-8xl">🥈</p>
30+
<p role="img" aria-label="silver medal" class="text-8xl leading-normal">🥈</p>
3131
<h2 class="text-3xl">Silver</h2>
3232
<p class="text-xl">$250 / year</p>
3333
</div>
@@ -54,7 +54,7 @@ layout: base
5454
<section class="w-full sm:w-1/3">
5555
<div class="border-4 border-jsmn-yellow shadow-lg">
5656
<div class="px-2 text-center my-4">
57-
<p role="img" aria-label="gold medal" class="text-8xl">🥇</p>
57+
<p role="img" aria-label="gold medal" class="text-8xl leading-normal">🥇</p>
5858
<h2 class="text-3xl">Gold</h2>
5959
<p class="text-xl">$1,000 / year</p>
6060
</div>
@@ -95,7 +95,7 @@ layout: base
9595
</div>
9696
</div>
9797
<div class="px-2 text-center my-4">
98-
<p role="img" aria-label="diamond" class="text-8xl transform duration-200 hover:-rotate-25">💎</p>
98+
<p role="img" aria-label="diamond" class="text-8xl leading-normal transform duration-200 hover:-rotate-12">💎</p>
9999
<h2 class="text-3xl">Diamond</h2>
100100
<p class="text-xl">$2,500 / year</p>
101101
</div>

0 commit comments

Comments
 (0)