Skip to content

Commit f95ac2c

Browse files
committed
Remove learn page, remove footer
1 parent 1424f1e commit f95ac2c

4 files changed

Lines changed: 28 additions & 100 deletions

File tree

docusaurus.config.js

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const config = {
102102
items: [
103103
{
104104
label: "Learn",
105-
to: "/learn",
105+
to: "/docs",
106106
position: "right",
107107
},
108108
{
@@ -121,16 +121,9 @@ const config = {
121121
position: "right",
122122
},
123123
{
124-
type: "docSidebar",
125-
sidebarId: "docSidebar",
124+
label: "Language Reference",
126125
position: "right",
127-
label: "Documentation",
128-
},
129-
{
130-
type: "docsVersionDropdown",
131-
position: "right",
132-
dropdownActiveClassDisabled: true,
133-
to: "/docs/next/intro",
126+
to: "/docs/language",
134127
},
135128
{
136129
href: "https://github.com/onflow/cadence",
@@ -146,22 +139,6 @@ const config = {
146139
},
147140
],
148141
},
149-
footer: {
150-
style: "light",
151-
links: [
152-
{
153-
title: "Got suggestions for this site? ",
154-
items: [
155-
{
156-
label: "It's open-source!",
157-
href: "https://github.com/onflow/cadence-lang.org",
158-
},
159-
],
160-
},
161-
],
162-
copyright: `The source code of this site is licensed under the Apache License, Version 2.0.
163-
Content is licensed under the Creative Commons Attribution 4.0 International License.`,
164-
},
165142
prism: {
166143
theme: lightCodeTheme,
167144
darkTheme: darkCodeTheme,

src/css/custom.css

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,13 +423,34 @@ a {
423423
}
424424

425425
footer {
426-
font-weight: 100;
427-
color: rgba(130, 133, 138, 0.6);
426+
font-weight: 400;
427+
color: #444;
428+
background: #f8f9fa;
428429
border-top: 1px solid #e5e7eb;
430+
text-align: center;
431+
padding: 2rem 1rem 1.5rem 1rem;
432+
margin-top: 3rem;
433+
font-size: 1.05rem;
429434
}
430435

431-
.license {
436+
footer a {
437+
color: #00c271;
438+
font-weight: 500;
439+
text-decoration: underline;
440+
transition: color 0.2s;
441+
}
442+
443+
footer a:hover {
444+
color: #009e5c;
445+
text-decoration: underline;
446+
}
447+
448+
footer .license {
449+
display: block;
450+
margin: 1.5rem auto 0 auto;
432451
max-width: 52rem;
452+
color: #666;
453+
font-size: 0.98rem;
433454
}
434455

435456
.arrow {

src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default function Home() {
9292
and <strong>safety</strong> in smart contracts.
9393
</h2>
9494

95-
<Link className="cta" href="/learn">
95+
<Link className="cta" href="/docs">
9696
Get started <HiArrowRight/>
9797
</Link>
9898
</div>

src/pages/learn.js

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)