-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improve styles, mobile fixes, add new pages, update docs
- Loading branch information
Showing
24 changed files
with
1,360 additions
and
584 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,7 +99,7 @@ | |
&:hover, | ||
&:focus, | ||
&:active { | ||
@apply bg-green-500; | ||
@apply bg-green-500 text-white; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import clsx from 'clsx'; | ||
import { IoArrowForward, IoDocumentText } from 'react-icons/io5'; | ||
import Head from '@components/Head'; | ||
import Logo from '@components/Logo'; | ||
import Link from '@components/Link'; | ||
import Footer from '@components/base/Footer'; | ||
|
||
import styles from './Page.module.css'; | ||
|
||
const PageLayout = ({ meta, schema, children }) => { | ||
return ( | ||
<> | ||
<Head meta={meta} schema={schema} /> | ||
<header className={styles.header}> | ||
<div className="container-wrapper"> | ||
<Logo withText primaryColor="#FB923C" secondaryColor="#818CF8" className={styles.logo} /> | ||
</div> | ||
</header> | ||
|
||
<main id="maincontent" className={styles.main}> | ||
{children} | ||
|
||
<section className="container-fluid"> | ||
<div className="container-wrapper text-center py-16"> | ||
<h2 className="font-light text-2xl">Ready to use LambdaLog?</h2> | ||
|
||
<Link plain prefetch={false} href="/docs/latest" className={clsx(styles.btn, styles.docs)}> | ||
<IoDocumentText className="btn-icon" /> | ||
Read the Docs | ||
<IoArrowForward className="btn-arrow" /> | ||
</Link> | ||
</div> | ||
</section> | ||
</main> | ||
|
||
<Footer variant="main" /> | ||
</> | ||
); | ||
}; | ||
|
||
PageLayout.propTypes = { | ||
meta: PropTypes.object, | ||
schema: PropTypes.oneOfType([PropTypes.object, PropTypes.array]) | ||
}; | ||
|
||
export default PageLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
.header { | ||
@apply flex flex-col items-center bg-indigo-800 py-6; | ||
} | ||
|
||
.logo { | ||
@apply flex items-center; | ||
|
||
& svg { | ||
@apply w-12 md:w-16 lg:w-20 h-auto mr-2; | ||
} | ||
|
||
& :global(.logo-text) { | ||
@apply text-xl md:text-2xl lg:text-3xl font-mono text-indigo-50 tracking-tighter; | ||
} | ||
} | ||
|
||
.main { | ||
& :global(.page-hero) { | ||
@apply container-fluid bg-indigo-800 py-12; | ||
|
||
& h1 { | ||
@apply text-center !font-extrabold text-4xl text-white; | ||
@apply md:leading-[4rem] md:text-5xl lg:text-left xl:text-6xl; | ||
text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); | ||
|
||
& small { | ||
@apply text-indigo-200 font-medium tracking-tighter; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.btn { | ||
@apply inline-flex items-center rounded-full text-white py-4 px-7 font-medium text-xl md:text-2xl shadow-md select-none transition-all; | ||
|
||
& :global(.btn-icon) { | ||
@apply mr-2; | ||
} | ||
|
||
& :global(.btn-arrow) { | ||
@apply inline-block ml-2 transition-transform; | ||
} | ||
|
||
&:hover, | ||
&:active, | ||
&:focus { | ||
@apply shadow-xl; | ||
|
||
& :global(.btn-arrow) { | ||
transform: translateX(10px); | ||
} | ||
} | ||
} | ||
|
||
.docs { | ||
@apply bg-green-600; | ||
|
||
&:hover, | ||
&:focus, | ||
&:active { | ||
@apply bg-green-500 text-white; | ||
} | ||
} |
Oops, something went wrong.