Skip to content

Commit 440807a

Browse files
Fixed text visibility in roadmap section (#1488)
1 parent c671f0a commit 440807a

File tree

1 file changed

+72
-43
lines changed

1 file changed

+72
-43
lines changed

web/src/components/Roadmap.js

Lines changed: 72 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
import React from 'react'
22
import Link from '@docusaurus/Link'
33
import classNames from 'classnames'
4-
import { Terminal, Layers, Coffee, Code, Unlock, Repeat, Send, Link2, Grid, ArrowRight, Globe, Settings, Mail, Type, Star } from 'react-feather'
4+
import {
5+
Terminal,
6+
Layers,
7+
Coffee,
8+
Code,
9+
Unlock,
10+
Repeat,
11+
Send,
12+
Link2,
13+
Grid,
14+
ArrowRight,
15+
Globe,
16+
Settings,
17+
Mail,
18+
Type,
19+
Star,
20+
} from 'react-feather'
521

622
import SectionContainer from './Layouts/SectionContainer'
723

@@ -10,33 +26,41 @@ import styles from '../pages/styles.module.css'
1026
// TODO(matija): this is duplication from HowItWorks section.
1127
const GhIssueLink = ({ url, label }) => (
1228
<Link to={url}>
13-
<span className={`
29+
<span
30+
className={`
1431
cursor-pointer text-xs
1532
bg-neutral-600 text-white
1633
px-2.5 py-1 rounded-full
1734
`}
1835
>
19-
<div className='group inline-flex gap-1 items-center'>
36+
<div className="group inline-flex gap-1 items-center">
2037
<span>{label}</span>
21-
<div className='transition-all group-hover:ml-0.5'>
22-
<span className='text-yellow-400'>
38+
<div className="transition-all group-hover:ml-0.5">
39+
<span className="text-yellow-400">
2340
<ArrowRight size={14} strokeWidth={2} />
2441
</span>
2542
</div>
2643
</div>
27-
2844
</span>
2945
</Link>
3046
)
3147

3248
const Section = ({ features }) => (
33-
<ul className='space-y-6'>
34-
{features.map(f => (
35-
<li className='grid grid-cols-12'>
36-
<div className='flex items-center col-start-3 col-span-8'>
49+
<ul className="space-y-6">
50+
{features.map((f) => (
51+
<li className="grid grid-cols-12">
52+
<div className="flex items-center col-start-3 col-span-8">
3753
<span>
38-
<span className='text-neutral-600'>{f[0]}</span>
39-
{f[1] && <>&nbsp;<GhIssueLink url={'https://github.com/wasp-lang/wasp/issues/' + f[1]} label={f[1]} /></>}
54+
<span className="text-neutral-600">{f[0]}</span>
55+
{f[1] && (
56+
<>
57+
&nbsp;
58+
<GhIssueLink
59+
url={'https://github.com/wasp-lang/wasp/issues/' + f[1]}
60+
label={f[1]}
61+
/>
62+
</>
63+
)}
4064
</span>
4165
</div>
4266
</li>
@@ -45,60 +69,65 @@ const Section = ({ features }) => (
4569
)
4670

4771
const Roadmap = () => (
48-
<SectionContainer className='space-y-16 lg:py-18' id='roadmap'>
49-
<div className='grid grid-cols-12'>
50-
<div className='col-span-12 text-center'>
51-
<h2 className='text-xl lg:text-2xl text-neutral-700 mb-4'>
52-
🚧 Roadmap 🚧
53-
</h2>
54-
<p className='text-neutral-500'>
55-
Work on Wasp never stops: get a glimpse of what is coming next!
56-
</p>
57-
</div>
72+
<SectionContainer className="space-y-16 lg:py-18" id="roadmap">
73+
<div className="grid grid-cols-12">
74+
<div className="col-span-12 text-center">
75+
<h2 className="text-xl lg:text-2xl text-neutral-700 mb-4">
76+
🚧 Roadmap 🚧
77+
</h2>
78+
<p className="text-neutral-500">
79+
Work on Wasp never stops: get a glimpse of what is coming next!
80+
</p>
5881
</div>
82+
</div>
5983

60-
<div className='grid grid-cols-1 lg:grid-cols-2 md:gap-16'>
61-
62-
<div
63-
className={`
84+
<div className="grid grid-cols-1 lg:grid-cols-2 md:gap-16">
85+
<div
86+
className={`
6487
bg-yellow-500/5 border border-yellow-500/25
6588
p-5 rounded-lg
6689
`}
67-
>
68-
<div className='font-bold text-center mb-6'>Near-term improvements and features</div>
69-
<Section features={[
90+
>
91+
<div className="font-bold text-center text-neutral-700 mb-6">
92+
Near-term improvements and features
93+
</div>
94+
<Section
95+
features={[
7096
['Improve Wasp project structure', 734],
7197
['Allow custom steps in the build pipeline', 906],
7298
['Support for SSR / SSG', 911],
7399
['Automatic generation of API for Operations', 863],
74100
['Better Prisma support (more features, IDE)', 641],
75101
['Support for backend testing', 110],
76-
['Better way to define JS dependencies', 243]
77-
]} />
78-
</div>
102+
['Better way to define JS dependencies', 243],
103+
]}
104+
/>
105+
</div>
79106

80-
<div
81-
className={`
107+
<div
108+
className={`
82109
bg-yellow-500/20 border border-yellow-500/25
83110
p-5 rounded-lg
84111
mt-6 lg:mt-0
85112
`}
86-
>
87-
<div className='font-bold text-center mb-6'>Advanced Features</div>
88-
<Section features={[
113+
>
114+
<div className="font-bold text-center text-neutral-700 mb-6">
115+
Advanced Features
116+
</div>
117+
<Section
118+
features={[
89119
['Top-level data schema', 642],
90120
['Automatic generation of CRUD UI', 489],
91121
['Multiple targets (e.g. mobile)', 1088],
92122
['Multiple servers, serverless'],
93123
['Polyglot'],
94124
['Multiple frontend libraries'],
95-
['Full-stack modules']
96-
]} />
97-
</div>
98-
125+
['Full-stack modules'],
126+
]}
127+
/>
99128
</div>
100-
101-
</SectionContainer>
129+
</div>
130+
</SectionContainer>
102131
)
103132

104133
export default Roadmap

0 commit comments

Comments
 (0)