Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home page features #9

Merged
merged 8 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions blog/2019-05-28-first-blog-post.md

This file was deleted.

44 changes: 0 additions & 44 deletions blog/2019-05-29-long-blog-post.md

This file was deleted.

20 changes: 0 additions & 20 deletions blog/2021-08-01-mdx-blog-post.mdx

This file was deleted.

Binary file not shown.
25 changes: 0 additions & 25 deletions blog/2021-08-26-welcome/index.md

This file was deleted.

17 changes: 0 additions & 17 deletions blog/authors.yml

This file was deleted.

1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
slug: /
title: Introduction
sidebar_position: 1
---

Expand Down
39 changes: 23 additions & 16 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
import 'dotenv/config'
import { themes as prismThemes } from 'prism-react-renderer'
import tailwindPlugin from './plugins/tailwind-config.cjs'
import remarkMath from 'remark-math'
import rehypeKatex from 'rehype-katex'

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Syncosaurus',
tagline:
'Syncosaurus is a React-and-Javascript-based framework for building real-time, collaborative React applications backed by the Cloudflare edge network of Workers and Durable Objects.',
'An open-source framework for real-time, collaborative web applications',
favicon: 'img/favicon.ico',

// Set the production url of your site here
Expand Down Expand Up @@ -53,9 +51,7 @@ const config = {
sidebarPath: './sidebars.js',
sidebarCollapsed: false,
},
blog: {
showReadingTime: true,
},
blog: false,
theme: {
customCss: './src/css/custom.css',
},
Expand All @@ -66,21 +62,22 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'Syncosaurus',
logo: {
alt: 'Syncosaurus Logo',
src: 'img/logo.svg',
src: 'img/icons/logo_transparent.png',
},
items: [
{ to: '/case-study', label: 'Case Study', position: 'right' },
{ to: '/team', label: 'The Team', position: 'right' },
{ type: 'doc', label: 'Docs', docId: 'index', position: 'right' },
{
to: 'https://github.com/syncosaurus',
label: 'GitHub',
type: 'html',
value: `
<a className="navbar__item" style={ text-decoration: none, color: black } href=https://github.com/syncosaurus>
Github <svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg>
</a>`,
position: 'right',
},
],
Expand All @@ -101,17 +98,27 @@ const config = {
to: '/case-study',
},
{
label: 'Team',
label: 'The Team',
to: '/team',
},
{
label: 'GitHub',
to: 'https://github.com/syncosaurus',
label: 'Docs',
to: '/docs',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Syncosaurus`,
{
title: 'More',
items: [
{
html: `
<a className="navbar__item" style={ text-decoration: none, color: black } href=https://github.com/syncosaurus>
Github <svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" className="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg>
</a>`,
},
],
},
]
},
prism: {
theme: prismThemes.github,
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@babel/plugin-syntax-jsx": "^7.24.1",
"@docusaurus/core": "3.2.1",
"@docusaurus/preset-classic": "3.2.1",
"@emotion/styled": "^11.11.5",
Expand Down
20 changes: 20 additions & 0 deletions src/components/HomepageFeatures/FadeInSection.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { useRef } from 'react';
import useIsVisible from '@site/src/hooks/useIsVisible'

const FadeInSection = ({ children }) => {
const sectionRef = useRef();
const isVisible = useIsVisible(sectionRef);

return (
<div
ref={sectionRef}
className={`transition-opacity ease-in duration-700 ${
isVisible ? 'opacity-100' : 'opacity-0'
}`}
>
{children}
</div>
);
}

export default FadeInSection;
Loading