Skip to content

Commit 986b424

Browse files
committed
dropdown
1 parent 02a38cd commit 986b424

5 files changed

Lines changed: 99 additions & 3 deletions

File tree

docs/src/components/Demos/getGeocode.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ const GetGeocode: React.FC<PostcodeLookupProps> = ({
4747
return (
4848
<div className={styles.container}>
4949
<div className={styles.endpointContainer}>
50-
<h3 className={styles.endpointLabel}>{headingText}</h3>
5150
<div className={styles.requestContainer}>
5251
<span className={styles.httpMethod}>GET</span>
5352
<p className={styles.request}>{endpointTemplate}?lon=</p>

docs/src/components/Demos/getPostcode.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ const GetPostcode: React.FC<PostcodeLookupProps> = ({
4040
return (
4141
<div className={styles.container}>
4242
<div className={styles.endpointContainer}>
43-
<h3 className={styles.endpointLabel}>{headingText}</h3>
4443
<div className={styles.requestContainer}>
4544
<span className={styles.httpMethod}>GET</span>
4645
<p className={styles.request}>{endpointTemplate}</p>

docs/src/components/Demos/postMethod.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ const PostMethod: React.FC<PostMethodProps> = ({
3737
return (
3838
<div className={styles.container}>
3939
<div className={styles.endpointContainer}>
40-
<h3 className={styles.endpointLabel}>{headerText}</h3>
4140
<div className={styles.requestContainer}>
4241
<span className={styles.httpMethod}>POST</span>
4342
<p className={styles.request}>{endpoint}</p>

docs/src/pages/index.module.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,46 @@
3434
margin-bottom: 2rem;
3535
}
3636

37+
.comparisonTable {
38+
width: 100%;
39+
margin: 0 auto;
40+
}
41+
42+
.comparisonTable th {
43+
padding: 1rem;
44+
text-align: center;
45+
font-size: 1.2rem;
46+
border: none;
47+
}
48+
49+
.comparisonTable td {
50+
padding: 1.5rem 1rem;
51+
text-align: center;
52+
border: none;
53+
}
54+
55+
.comparisonTable tr {
56+
border: none;
57+
}
58+
59+
.comparisonTable tr td:first-child {
60+
text-align: left;
61+
font-weight: bold;
62+
}
63+
3764
@media screen and (max-width: 996px) {
3865
.heroBanner {
3966
padding: 2rem;
4067
}
68+
69+
.comparisonTable {
70+
font-size: 0.9rem;
71+
}
72+
73+
.comparisonTable td,
74+
.comparisonTable th {
75+
padding: 1rem 0.5rem;
76+
}
4177
}
4278

4379
.btnContainer {

docs/src/pages/index.tsx

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,69 @@ export default function Home(): JSX.Element {
110110
</div>
111111
</div>
112112
</section>
113+
<section className={styles.section}>
114+
<div className="container">
115+
<div className="row">
116+
<div className="col">
117+
<h2 className="text--center">
118+
Here&apos;s why developers upgrade
119+
</h2>
120+
</div>
121+
</div>
122+
<div className="row">
123+
<div className="col">
124+
<table className={styles.comparisonTable}>
125+
<thead>
126+
<tr>
127+
<th></th>
128+
<th>Postcodes.io</th>
129+
<th>Ideal Postcodes</th>
130+
</tr>
131+
</thead>
132+
<tbody>
133+
<tr>
134+
<td>Coverage</td>
135+
<td>Mainland UK</td>
136+
<td>Mainland UK + additional British Isles coverage</td>
137+
</tr>
138+
<tr>
139+
<td>Data Updates</td>
140+
<td>Updated periodically as Ordnance Survey & ONS data becomes public</td>
141+
<td>Licensed partner of royal mail and other data sources with daily updates</td>
142+
</tr>
143+
<tr>
144+
<td>Scale</td>
145+
<td>No rate limits. Great for prototypes, small/medium projects</td>
146+
<td>Capacity for high-volume lookups and critical applications</td>
147+
</tr>
148+
<tr>
149+
<td>Reliability</td>
150+
<td>Sporadically maintained</td>
151+
<td>High availability, and 99.99% uptime guarantee</td>
152+
</tr>
153+
<tr>
154+
<td>Support</td>
155+
<td>Self-serve docs and community support</td>
156+
<td>Account access, priority technical support and SLAs available</td>
157+
</tr>
158+
</tbody>
159+
</table>
160+
</div>
161+
</div>
162+
<div className="row" style={{ marginTop: '3rem' }}>
163+
<div className="col text--center">
164+
<a
165+
className="button button--primary button--lg"
166+
href="https://ideal-postcodes.co.uk"
167+
target="_blank"
168+
rel="noopener noreferrer"
169+
>
170+
Explore Ideal Postcodes
171+
</a>
172+
</div>
173+
</div>
174+
</div>
175+
</section>
113176
</main>
114177
</Layout>
115178
);

0 commit comments

Comments
 (0)