Skip to content

Commit d9ee980

Browse files
committed
Adding CTA
1 parent 50b9c7f commit d9ee980

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed

docs/pages/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ export default function Home() {
1414

1515
<h2 className={styles.description}>{SITE.description}</h2>
1616

17+
<section className={styles.cta}>
18+
<a href={SITE.github}>Star us on GitHub</a>
19+
<a href={`${SITE.github}/blob/main/README.md`}>View README</a>
20+
</section>
21+
1722
<div className={styles.divider}></div>
1823

1924
<section className={styles.about}>
@@ -100,6 +105,10 @@ export default function Home() {
100105
The goal of OpenNext is to create an open source, framework agnostic,
101106
serverless adapter for Next.js.
102107
</p>
108+
<p>
109+
OpenNext is currently built for AWS but we plan to support any
110+
functions as a service platform.
111+
</p>
103112
<p>
104113
We need your help keeping it up to date and feature complete. Make
105114
sure to{" "}

docs/styles/Home.module.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
max-width: 500px;
2626
border-top: 1px solid var(--theme-divider);
2727
}
28+
@media only screen and (max-width: 480px) {
29+
.divider {
30+
margin: 3.5rem auto;
31+
}
32+
}
2833

2934
.description {
3035
margin: 0.5rem 0 0;
@@ -45,6 +50,50 @@
4550
margin-bottom: 0;
4651
}
4752

53+
.cta {
54+
margin-top: calc(var(--spacing-unit) * 1.25);
55+
padding: 0 2rem;
56+
}
57+
.cta a {
58+
padding: 1rem 2rem;
59+
background-color: var(--theme-primary-button-bg);
60+
color: var(--theme-bg);
61+
border-radius: 7px;
62+
font-size: 0.9375rem;
63+
font-weight: 500;
64+
box-shadow: 0 4px 14px var(--theme-primary-button-shadow);
65+
text-align: center;
66+
transition: box-shadow 0.2s ease;
67+
}
68+
.cta a:hover {
69+
box-shadow: 0 6px 20px var(--theme-primary-button-shadow-hover);
70+
}
71+
.cta a:last-child {
72+
margin-left: 1.65rem;
73+
background-color: var(--theme-secondary-button-bg);
74+
color: var(--theme-text-light);
75+
box-shadow: 0 4px 14px 0 var(--theme-secondary-button-shadow);
76+
}
77+
.cta a:last-child:hover {
78+
box-shadow: 0 6px 20px 0 var(--theme-secondary-button-shadow-hover);
79+
}
80+
@media only screen and (max-width: 480px) {
81+
.cta {
82+
padding: 0;
83+
margin-top: var(--spacing-unit);
84+
width: 100%;
85+
}
86+
.cta a {
87+
padding: 1.125rem 0;
88+
display: block;
89+
width: 100%;
90+
}
91+
.cta a:last-child {
92+
margin-top: 1rem;
93+
margin-left: 0;
94+
}
95+
}
96+
4897
.tech {
4998
align-self: stretch;
5099
}

docs/styles/globals.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
--theme-text-lighter: hsla(var(--color-black), 0.4);
3030
--theme-accent: hsla(var(--color-green), 1);
3131

32+
--theme-primary-button-bg: var(--theme-accent);
33+
--theme-secondary-button-bg: var(--theme-bg);
34+
--theme-primary-button-shadow: hsla(var(--color-green), 0.3);
35+
--theme-primary-button-shadow-hover: hsla(var(--color-green), 0.5);
36+
--theme-secondary-button-shadow: hsla(var(--color-black), 0.1);
37+
--theme-secondary-button-shadow-hover: hsla(var(--color-black), 0.16);
38+
3239
--theme-divider: hsla(var(--color-black), 0.11);
3340
}
3441

@@ -42,6 +49,13 @@
4249
--theme-text-lighter: hsla(var(--color-white), 0.4);
4350
--theme-accent: hsla(var(--color-green), 1);
4451

52+
--theme-primary-button-bg: var(--theme-accent);
53+
--theme-secondary-button-bg: var(--theme-code-bg);
54+
--theme-primary-button-shadow: hsla(var(--color-green), 0.3);
55+
--theme-primary-button-shadow-hover: hsla(var(--color-green), 0.5);
56+
--theme-secondary-button-shadow: hsla(var(--color-white), 0.1);
57+
--theme-secondary-button-shadow-hover: hsla(var(--color-white), 0.16);
58+
4559
--theme-divider: hsla(var(--color-white), 0.2);
4660
}
4761

0 commit comments

Comments
 (0)