diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts index 96bebd7e15..553508474d 100644 --- a/docs/docusaurus.config.ts +++ b/docs/docusaurus.config.ts @@ -44,7 +44,10 @@ const config: Config = { 'https://github.com/PalisadoesFoundation/talawa-admin/tree/develop/docs/docs', }, theme: { - customCss: [require.resolve('./src/css/custom.css')], + customCss: [ + require.resolve('./src/css/custom.css'), + require.resolve('./src/css/index.css'), + ], }, }, ], @@ -59,7 +62,7 @@ const config: Config = { }, }, navbar: { - title: 'Talawa', + title: 'Talawa Admin Documentation', logo: { alt: 'Talawa Logo', src: 'img/icons/favicon_palisadoes.ico', @@ -115,6 +118,62 @@ const config: Config = { disableSwitch: false, respectPrefersColorScheme: false, }, + footer: { + style: 'dark', + links: [ + { + title: 'Community', + items: [ + { + label: ' Slack', + to: 'https://github.com/PalisadoesFoundation', + className: 'footer__icon footer__slack', + }, + { + label: ' News', + to: 'https://www.palisadoes.org/news/', + className: 'footer__icon footer__news', + }, + { + label: ' Contact Us', + to: 'https://www.palisadoes.org/contact/', + className: 'footer__icon footer__contact', + }, + ], + }, + { + title: 'Social Media', + items: [ + { + label: ' Twitter', + to: 'https://twitter.com/palisadoesorg?lang=en', + className: 'footer__icon footer__twitter', + }, + { + label: ' Facebook', + to: 'https://www.facebook.com/palisadoesproject/', + className: 'footer__icon footer__facebook', + }, + { + label: ' Instagram', + to: 'https://www.instagram.com/palisadoes/?hl=en', + className: 'footer__icon footer__instagram', + }, + ], + }, + { + title: 'Development', + items: [ + { + label: ' GitHub', + to: 'https://github.com/PalisadoesFoundation', + className: 'footer__icon footer__github', + }, + ], + }, + ], + copyright: `Copyright © ${new Date().getFullYear()} The Palisadoes Foundation, LLC. Built with Docusaurus.`, + }, prism: { theme: prismThemes.github, darkTheme: prismThemes.dracula, diff --git a/docs/src/components/HomepageFeatures/index.tsx b/docs/src/components/HomepageFeatures/index.tsx new file mode 100644 index 0000000000..7e72738d82 --- /dev/null +++ b/docs/src/components/HomepageFeatures/index.tsx @@ -0,0 +1,70 @@ +import clsx from 'clsx'; +import Heading from '@theme/Heading'; +import styles from './styles.module.css'; + +type FeatureItem = { + title: string; + Svg: React.ComponentType>; + description: JSX.Element; +}; + +const FeatureList: FeatureItem[] = [ + { + title: 'Easy to Use', + Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, + description: ( + <> + Docusaurus was designed from the ground up to be easily installed and + used to get your website up and running quickly. + + ), + }, + { + title: 'Focus on What Matters', + Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, + description: ( + <> + Docusaurus lets you focus on your docs, and we'll do the chores. Go + ahead and move your docs into the docs directory. + + ), + }, + { + title: 'Powered by React', + Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, + description: ( + <> + Extend or customize your website layout by reusing React. Docusaurus can + be extended while reusing the same header and footer. + + ), + }, +]; + +function Feature({ title, Svg, description }: FeatureItem) { + return ( +
+
+ +
+
+ {title} +

{description}

+
+
+ ); +} + +export default function HomepageFeatures(): JSX.Element { + return ( +
+
+
+ {FeatureList.map((props, idx) => ( + + ))} +
+
+
+ ); +} diff --git a/docs/src/components/HomepageFeatures/styles.module.css b/docs/src/components/HomepageFeatures/styles.module.css new file mode 100644 index 0000000000..b248eb2e5d --- /dev/null +++ b/docs/src/components/HomepageFeatures/styles.module.css @@ -0,0 +1,11 @@ +.features { + display: flex; + align-items: center; + padding: 2rem 0; + width: 100%; +} + +.featureSvg { + height: 200px; + width: 200px; +} diff --git a/docs/src/css/custom.css b/docs/src/css/custom.css index 294a9c7c63..681c0404f3 100644 --- a/docs/src/css/custom.css +++ b/docs/src/css/custom.css @@ -1,11 +1,10 @@ /** -* Any CSS included here will be global. The classic template -* bundles Infima by default. Infima is a CSS framework designed to + * Any CSS included here will be global. The classic template + * bundles Infima by default. Infima is a CSS framework designed to * work well for content-centric websites. + * You can override the default Infima variables here. */ -/* You can override the default Infima variables here. */ - :root { --h1-markdown: #021526; --h2-markdown: #3a6d8c; @@ -14,55 +13,39 @@ --h5-markdown: #6a9ab0; --h6-markdown: #888888; --hx-markdown-underline: #eeeeee; + --secondary-blue-900: #001c63; + --sidebar-bg-color: #f3f4f6; + --secondary-blue-500: #3970fd; + --primary-blue-600: #1e56e3; + --base-neutral-0: #ffffff; + --primary-neutral-800: #1f2a37; + --ifm-menu-color-active: #1e56e3; + --primary-neutral-600: #4d5761; + --ifm-breadcrumb-color-active: var(--primary-neutral-600); + --ifm-link-color: #1e56e3; + --ifm-button-background-color: #2e8555; + --ifm-button-background-color-dark: #205d3b; + --ifm-hover-overlay: rgba(0, 0, 0, 0.05); + --brand-color: black; + --next-prev-border-color: #e5e7eb; + --ifm-color-emphasis-100: #f4f8fb; + --ifm-color-emphasis-0: #fff; --ifm-color-primary: #1e56e3; - --ifm-color-primary-light: #33925d; - --ifm-color-primary-lighter: #359962; - --ifm-color-primary-lightest: #3cad6e; - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.29); - --ifm-color-gray-100: #e3e3e6; - --ifm-color-gray-200: #c9c9cc; - --ifm-color-gray-300: #b0b0b3; - --ifm-color-gray-400: #979799; - --ifm-color-gray-500: #7e7e80; - --ifm-color-gray-600: #656566; - --ifm-color-gray-700: #4c4c4d; - --ifm-color-gray-800: #323233; - --ifm-color-gray-900: #19191a; --ifm-background-surface-color: var(--ifm-color-white); - --ifm-breadcrumb-color-active: var(--primary-neutral-600); - --ifm-menu-color: var(--neutral-mid-500); - --ifm-menu-color-active: #1e56e3; + --ifm-menu-color: var(--ifm-color-gray-600); --ifm-toc-link-color: var(--ifm-color-gray-600); - /* --ifm-code-font-size: 95%; */ + --ifm-code-font-size: 95%; + --ifm-toc-border-color: transparent; --ifm-code-background: #e5ecff; --ifm-code-color: #0087ff; --ifm-color-content: #000e33; --ifm-heading-line-height: 1.5; - --ifm-heading-color: #353232; - --ifm-h1-font-size: 1.75rem; - --ifm-h2-font-size: 1.5rem; + --ifm-h1-font-size: 2.25rem; + --ifm-h2-font-size: 1.875rem; --ifm-navbar-shadow: 0 1px 2px 0 #0000001a; --ifm-navbar-search-input-background-color: var(--ifm-color-gray-100); --ifm-navbar-search-input-color: var(--ifm-color-content); - --ifm-link-color: #1e56e3; - --ifm-button-background-color: #2e8555; - --ifm-button-background-color-dark: #205d3b; - --ifm-hover-overlay: rgba(0, 0, 0, 0.05); - --brand-color: black; - --base-neutral-0: #ffffff; - --sidebar-bg-color: #f3f4f6; - --neutral-mid-0: #1f2a37; - --neutral-mid-400: #1f2a37; - --neutral-mid-500: #6c737f; - --primary-neutral-800: #1f2a37; - --primary-neutral-600: #4d5761; - --primary-blue-600: #1e56e3; - --secondary-blue-400: #80a3ff; - --secondary-blue-500: #3970fd; - --secondary-blue-900: #001c63; - --next-prev-border-color: #e5e7eb; - --ifm-color-emphasis-100: #f4f8fb; - --ifm-color-emphasis-0: #fff; + --ifm-table-stripe-background: #efeff2; --ifm-font-family-base: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; @@ -70,64 +53,35 @@ Consolas, 'Liberation Mono', 'Courier New', monospace; } -/* For readability concerns, you should choose a lighter palette in dark mode. */ - -[data-theme='dark'] { - --ifm-color-primary: #1e56e3; - --ifm-color-primary-light: #29d5b0; - --ifm-color-primary-lighter: #32d8b4; - --ifm-color-primary-lightest: #4fddbf; - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); -} - -[data-theme='dark'] .themedComponent--light_NVdE { - display: initial; -} - -[data-theme='dark'] .navbar { - border-bottom: 1px solid #2d3956; -} - -/* Dark mode css */ +/* Dak mode css */ html[data-theme='dark'] { --ifm-background-color: #111927; --ifm-background-surface-color: var(--ifm-background-color); - --ifm-menu-color: var(--neutral-mid-400); - --ifm-menu-color-active: var(--secondary-blue-900); + --ifm-menu-color: var(--ifm-color-gray-200); --ifm-toc-link-color: var(--ifm-color-gray-200); - --ifm-heading-color: #c6d6ff; - --ifm-color-primary: #1e56e3; + --ifm-code-background: #001b66; --ifm-color-content: var(--ifm-color-white); --ifm-navbar-search-input-background-color: #001b66; + --ifm-table-stripe-background: #001242; --ifm-navbar-search-input-placeholder-color: var(--ifm-color-gray-200); --ifm-navbar-search-input-icon: url('data:image/svg+xml;utf8,'); + --ifm-hover-overlay: rgba(0, 0, 0, 0); + --ifm-color-primary: #1e56e3; + --secondary-blue-900: #c6d6ff; + --sidebar-bg-color: #161f36; + --primary-neutral-800: #c9c9cc; --ifm-button-background-color: #25c2a0; --ifm-button-background-color-dark: #2e8555; - --ifm-navbar-link-color: var(--neutral-mid-400); + --ifm-navbar-link-color: #9da4ae; --brand-color: white; - --sidebar-bg-color: #161f36; - --neutral-mid-0: #ffffff; - --neutral-mid-400: #9da4ae; --primary-neutral-600: #c4c4c4; - --primary-neutral-800: #9da4ae; - --primary-blue-600: var(--secondary-blue-900); - --secondary-blue-900: #c6d6ff; --next-prev-border-color: #293441; --ifm-color-emphasis-100: #1d1e30; --ifm-color-emphasis-0: #111f3b; } -/* stylelint-disable docusaurus/copyright-header */ - -@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap'); -@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap'); - -.container > div > div:first-child { - padding: 1rem 5rem; -} - .docusaurus-highlight-code-line { background-color: rgb(72, 77, 91); display: block; @@ -135,66 +89,15 @@ html[data-theme='dark'] { padding: 0 var(--ifm-pre-padding); } -.breadcrumbs { - margin-bottom: 2rem; -} - .table-of-contents { - padding: var(--ifm-toc-padding-vertical) 0; -} - -.table-of-contents li .table-of-contents__link { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.table-of-contents ul { - padding-left: 1.25rem; -} - -.table-of-contents li { - margin: var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal); - margin-left: 0; + font-size: 0.75rem; } -.table-of-contents__link { - border-left: 0.125rem solid #0000; - font-size: 0.875rem; - padding-left: 1.25rem; - font-weight: 500; - color: var(--neutral-mid-400); -} - -.table-of-contents__link--active { - border-left: 0.125rem solid var(--secondary-blue-400); - font-weight: 600; - margin-left: 0; -} - -.table-of-contents__link:hover, -.table-of-contents__link:hover code, -.table-of-contents__link--active, -.table-of-contents__link--active code { - color: var(--neutral-mid-0); -} - -h1 { +h1.docTitle_node_modules-\@docusaurus-theme-classic-src-theme-DocItem- { font-size: var(--ifm-h1-font-size); margin-bottom: 1.5rem; } -.theme-doc-sidebar-item-link-level-1 .menu__link, -.menu__link--sublist { - text-transform: uppercase; -} - -.navbar__brand img { - max-height: 50px; - width: auto; - padding: 5px; -} - .menu { background-color: var(--sidebar-bg-color); } @@ -203,62 +106,20 @@ h1 { .menu * { line-height: 1.5; font-size: 0.7rem; + padding-left: 0.5rem; padding-bottom: 0; - font-weight: 800; + text-transform: uppercase; + font-weight: 700; background: transparent !important; } -.menu__link:hover { - color: var(--primary-blue-600); -} - .menu__list { border-bottom: 1px solid var(--next-prev-border-color); } -.menu__list-item { - padding: 0.5rem 0; -} - -/* new */ -/* .menu__list ul { - margin-left: 5px; +.menu__list ul { + margin-left: 15px; margin-right: 15px; -} */ - -/* Target specifically the link text */ -.menu__link { - white-space: normal !important; - word-break: break-word !important; - overflow-wrap: break-word !important; - width: 100% !important; - max-width: 100% !important; - line-height: 1.2 !important; - padding-right: 1rem !important; -} - -/* Target the container of menu items */ -.menu__list-item { - width: 100% !important; - padding-right: 0 !important; -} - -/* Ensure the menu itself has proper width */ -.menu__list { - width: 100% !important; -} - -/* Target the entire menu container */ -.theme-doc-sidebar-menu { - width: 100% !important; - max-width: 100% !important; -} - -@media (min-width: 997px) { - .menu_SIkG { - flex-grow: 1; - padding: 1rem !important; - } } .markdown > h2 { @@ -300,13 +161,12 @@ h1 { height: auto; } -.navbar__item { - font-size: 0.99rem; - font-weight: 600; +.navbar__title { + font-size: 1.155rem; } -.navbar__brand { - font-size: 20px; +.navbar__item { + font-size: 1rem; } .navbar__link:hover, @@ -331,14 +191,6 @@ h1 { color: var(--ifm-navbar-link-color); } -.markdown { - --ifm-h1-vertical-rhythm-top: 3; - --ifm-h2-vertical-rhythm-top: 4.5; - --ifm-h3-vertical-rhythm-top: 2.5; - --ifm-heading-vertical-rhythm-top: 1.25; - --ifm-h1-vertical-rhythm-bottom: 1.25; -} - .header-github-link:hover { opacity: 0.7; } @@ -429,6 +281,7 @@ h1 { margin: 0; padding: 2px; color: #fff; + font-size: 1rem; } .footer__icon:before { @@ -491,46 +344,25 @@ h1 { html[data-theme='dark'] .header-github-link:before { background: url(/img/icons/github.svg) no-repeat; } - html[data-theme='dark'] .header-youtube-link:before { background: url(/img/icons/youtube-white.svg) no-repeat; } -.markdown > button { - background: linear-gradient(90deg, #ff3600 0%, #ff8100 100%); - border: none; - border-radius: 5px; - padding: 16.8px 32px; - color: #fff; - font-weight: bold; - cursor: pointer; - transition: 0.8s; - font-size: 16px; -} - -.markdown > button:hover { - background: linear-gradient(90deg, #ff3600 30%, #ff8100 78%); -} - @media (max-width: 996px) { .navbar__item.github-button { display: none; } - .github-button { margin: var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal); } - .navbar__item.youtube-button { display: none; } - .youtube-button { margin: var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal); } - .center { text-align: center; } @@ -540,15 +372,12 @@ html[data-theme='dark'] .header-youtube-link:before { .navbar__items--right > .navbar__item:not(:first-of-type) { margin-left: 0.25rem; } - .github-button { margin-right: 0.5rem; } - .youtube-button { margin-right: 0.5rem; } - .hero__title { font-size: 2rem; } @@ -558,11 +387,9 @@ html[data-theme='dark'] .header-youtube-link:before { .navbar__items--right > .navbar__item:not(:first-of-type) { margin-left: 1.5rem; } - .github-button { margin-right: 0.5rem; } - .youtube-button { margin-right: 0.5rem; } @@ -572,41 +399,22 @@ html[data-theme='dark'] .header-youtube-link:before { .navbar__items--right > .navbar__item:not(:first-of-type) { margin-left: 0.5rem; } - .github-button { margin-right: 0.5rem; } - .youtube-button { margin-right: 0.5rem; } } -@media (max-width: 768px) { - .container > div > div:first-child { - padding: 1rem !important; - } - - .breadcrumbs__link { - padding: 0.25rem; - } -} - -@media (min-width: 997px) and (max-width: 1327px) { - .container > div > div:first-child { - padding-left: 4rem !important; - padding-right: 4rem !important; - } -} - -.Section { - margin-bottom: 0 !important; +h1 { + font-size: 1.75rem; + font-weight: 700; } - .Heading { font-size: 1.5rem; font-weight: 700; - text-align: left !important; + text-align: center !important; } h1, @@ -621,12 +429,12 @@ h6 { p, textarea, +li, .Heading div { margin-bottom: 1.25rem; color: var(--primary-neutral-800); font-size: 0.9375rem; line-height: 1.625rem; - text-align: left; } a { @@ -635,115 +443,10 @@ a { } a:hover { - color: var(--secondary-blue-400); -} - -.custom-image { - width: 140%; - padding: 10px; - opacity: 2; -} - -.my-svg-icon path { - fill: var(--secondary-blue-900); + color: #86a7ef; } /* Hide external link svg on Navbar */ - .iconExternalLink_nPIU { display: none !important; } - -.card__container { - display: flex; - align-items: center; - flex-direction: column; - margin: auto; - gap: 2rem; -} - -.card__description { - font-size: 0.8rem; - margin: 0; - padding-bottom: 1rem; -} - -.card__general { - align-items: center; - background-color: var(--ifm-color-emphasis-100); - border-radius: 15px; - box-shadow: var(--ifm-navbar-shadow); - justify-content: center; - padding: 1rem; - text-align: center; -} - -.card__general p { - padding-left: 1rem; -} - -.card__wide { - display: flex; - gap: calc(2rem + 2px); - padding: 1.5rem 0; - margin: auto; -} - -.card__wide ul { - list-style: none; - padding: 0; - margin: 0; -} - -.card__wide ul > li { - margin: 10px 0; - position: relative; - text-align: left; - padding-left: 25px; -} - -.card__wide ul > li::before { - content: '✦'; - font-size: 1 rem; - background: linear-gradient(45deg, #97aaff, #8dbaff, #004c8c, #00bfff); - background-size: 400% 400%; - color: transparent; - -webkit-background-clip: text; - background-clip: text; - animation: moveGradient 5s ease infinite; - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); -} - -@keyframes moveGradient { - 0% { - background-position: 0% 50%; - } - - 50% { - background-position: 100% 50%; - } - - 100% { - background-position: 0% 50%; - } -} - -@media (max-width: 996px) { - .fourth-panel > .card__wide { - height: auto; - } -} - -@media only screen and (max-width: 960px) { - .card__container, - .card__wide { - margin: 0 2rem !important; - } - - .card__description { - padding-bottom: 1rem; - } -} diff --git a/docs/src/css/index.css b/docs/src/css/index.css new file mode 100644 index 0000000000..e58696a6ad --- /dev/null +++ b/docs/src/css/index.css @@ -0,0 +1,593 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +:root { + /* Brand colors */ + --brand: #febc59; + + /* Dark theme */ + --dark: #282c34; + --deepdark: #20232a; + + /* Text and subtle colors */ + --text: #1a1a1a; + --subtle: #767676; + --divider: #ececec; + + /* UI and components */ + --tintColor: #f7f7f7; + --rn-note-background: rgba(255, 229, 100, 0.25); + --ifm-font-family-base: 'Optimistic Display', system-ui, -apple-system, + sans-serif; + --ifm-font-size-base: 17px; + --ifm-spacing-horizontal: 16px; + --ifm-menu-link-padding-horizontal: 0; + --ifm-toc-padding-vertical: 6px; + --ifm-toc-link-color: var(--ifm-color-emphasis-700); + --ifm-code-font-size: 90%; + --ifm-code-border-radius: 3px; + --ifm-blockquote-color: var(--ifm-font-color-base); + --ifm-blockquote-font-size: 16px; + --ifm-table-head-color: var(--subtle); + --ifm-link-hover-decoration: none; +} + +.navbar__brand { + color: var(--brand-color); + font-size: 20px; +} + +/* Custom button */ +.custom-button { + margin-right: 10px; +} + +/* Homepage */ +.homepage { + width: 100%; + max-width: 100%; +} + +/* Header Hero */ + +.HeaderHero { + padding-top: 20px; + margin-top: 4rem; + margin-bottom: 0; +} + +.HeaderHero .TwoColumns .column { + max-width: initial; +} + +.HeaderHero .TwoColumns .column.right { + text-align: end; +} + +.HeaderHero .socialLinks { + display: flex; + justify-content: flex-end; + max-width: 1200px; + margin: -10px auto 0; +} + +.HeaderHero .socialLinks .twitter-follow-button, +.HeaderHero .socialLinks .github-button .slack-button { + margin-right: 1rem; +} + +.HeaderHero .TwoColumns { + align-items: center; +} + +.HeaderHero .title { + font-size: 3rem; + line-height: 1; + margin-top: 0; + margin-bottom: 20px; + font-weight: 500; + left: -250px; + opacity: 1.3; +} + +.HeaderHero .tagline { + font-size: 1.5rem; + line-height: 1.3; + font-weight: 500; + margin-top: -7px; + opacity: 1.1; + left: -250px; +} + +.HeaderHero .description { + font-size: 1.2rem; + line-height: 1.3; + color: var(--primary-neutral-800); + opacity: 1.1; + left: -250px; +} + +.HeaderHero .buttons { + margin-top: 40px; +} + +.HeaderHero .image { + display: flex; + align-items: center; + justify-content: center; +} + +@media only screen and (min-width: 961px) { + .HeaderHero .TwoColumns { + grid-template-columns: 3fr 2fr; + } + + .HeaderHero .TwoColumns .column.left { + padding-right: 0; + width: fit-content; + } +} + +@media only screen and (max-width: 760px) { + .HeaderHero .title { + font-size: 60px; + } + + .HeaderHero .tagline { + font-size: 30px; + } + + .HeaderHero .socialLinks { + margin-top: -2rem; + } + .HeaderHero { + margin-top: 0.5rem; + } +} + +@keyframes bounce { + 0%, + 20%, + 50%, + 80%, + 100% { + transform: translateY(0); + } + + 40% { + transform: translateY(-30px); + } + + 60% { + transform: translateY(-15px); + } +} + +.bounce-animation { + animation: bounce 2s; +} + +/* Second Panel */ + +.SecondPanel { + overflow: hidden; +} + +@media only screen and (max-width: 960px) { + .SecondPanel .column.last { + max-height: 300px; + } +} + +@media only screen and (min-width: 481px) and (max-width: 960px) { + .SecondPanel .column.last { + width: 66.7%; + margin: 0 auto; + } +} + +@media only screen and (min-width: 961px) { + .SecondPanel { + max-height: 600px; + } + + /* Correct for whitespace in the image of phones */ + .SecondPanel .column.left { + margin-top: -25px; + } +} + +.second-panel-image { + width: 140%; + height: auto; + position: relative; + top: -50px; + left: -65px; + opacity: 2; +} + +/* Third Panel */ + +.third-panel-image { + width: 80%; + height: auto; + position: relative; + top: 30px; + right: -130px; + opacity: 2; +} + +/* Fourth Panel */ + +.NativeDevelopment { + overflow-y: hidden; +} +.NativeDevelopment .left { + margin: auto; +} + +.NativeDevelopment .dissection { + position: relative; +} + +.NativeDevelopment .dissection img { + left: 0; + top: 0; +} + +@media only screen and (max-width: 960px) { + .NativeDevelopment .TwoColumns { + grid-gap: 2rem; + } + .NativeDevelopment .dissection { + display: none; + } +} + +@media only screen and (max-width: 480px) { + .NativeDevelopment .dissection { + height: 350px; + } +} + +@media only screen and (min-width: 481px) and (max-width: 960px) { + .NativeDevelopment .dissection { + height: 450px; + } +} + +@media only screen and (min-width: 961px) { + .NativeDevelopment .dissection { + height: auto; + } +} + +.fourth-panel-image { + width: 75%; + height: auto; + position: relative; + top: -50px; + left: -120px; + opacity: 2; +} + +/* Fifth Panel */ + +.fifth-panel { + min-height: 550px; +} + +.fifth-panel-image { + width: 75%; + height: auto; + position: relative; + opacity: 2; + right: -70px; + margin-top: 20px; +} + +.panel-height { + height: 50px; +} + +.text-column-offset { + padding-top: 95px; +} + +/* Correction for the bottom space in section six*/ +#docusaurus_skipToContent_fallback + > section.Section.SixthPanel.tint + > div + > div.column.last.right + > div { + margin-bottom: 0; +} + +.SixthPanel { + min-height: 430px; + display: flex; + flex-direction: column; + justify-content: center; +} + +.SixthPanel .column.last { + margin-bottom: -49px; +} + +.SixthPanel pre { + margin: 0; +} + +.SixthPanel .prism-code { + border-radius: 0; + font-size: 80%; + height: 450px; + width: 100%; +} + +@media only screen and (max-width: 480px) { + .SixthPanel .column.last { + width: 100%; + padding: 0; + overflow-x: auto; + } + + .SixthPanel .prism-code { + font-size: 10px; + padding: 1.25rem 1.25rem; + } +} + +@media screen and (min-width: 481px) and (max-width: 960px) { + .SixthPanel .TwoColumns { + grid-gap: 2rem; + } + + .SixthPanel .column.last { + width: 100%; + padding: 0; + height: 28rem; + overflow-y: scroll; + } + + .SixthPanel .prism-code { + border-radius: 0; + font-size: 80%; + background-color: #fff; + color: #f8f8f2; + } +} + +@media only screen and (min-width: 961px) { + .SixthPanel .TwoColumns .column.right { + max-width: 100%; + padding-left: 0; + } + + .SixthPanel .TwoColumns { + justify-content: space-between; + } + + .SixthPanel .column.right .prism-code { + /* Bleed background into the right */ + margin-right: -9999px; + padding: 16px 1.5rem; + height: 460px; + } + .SixthPanel .column.left h2 { + text-align: left; + } + .SixthPanel .column.right .prism-code { + background-color: var(--ifm-color-emphasis-100) !important; + box-shadow: var(--ifm-navbar-shadow); + } +} + +/* Seventh Panel */ + +.SeventhPanel { + min-height: 550px; +} + +.seventh-panel-image { + width: 500%; + height: auto; + position: relative; + opacity: 2; +} + +.seventh-panel .content { + max-width: 900px; + margin: 0 auto; + display: flex; + flex-direction: column; +} + +@media only screen and (max-width: 480px) { + .seventh-panel .Heading { + width: 100%; + padding: 0 1rem; + margin-bottom: 1.5rem; + } +} + +@media only screen and (min-width: 481px) and (max-width: 960px) { + .seventh-panel .Heading { + width: 100%; + padding: 0 4rem; + margin-bottom: 1.5rem; + } + + .seventh-panel .AppList { + width: 100%; + max-width: 500px; + margin: 2rem auto; + } +} + +@media only screen and (min-width: 961px) { + .seventh-panel .column.first { + border-right: 1px solid var(--ifm-table-border-color); + } +} + +.eigth-panel-image { + width: 1000%; + height: auto; + position: relative; + opacity: 2; +} + +/* ActionButton */ + +.ActionButton { + padding: 0.75rem 1.25rem; + text-align: center; + font-size: 1.2rem; + font-weight: var(--ifm-button-font-weight); + text-decoration: none !important; + border-bottom: none; + transition: all 0.2s ease-out; + max-width: 50%; + border-radius: 0.375rem; + margin-right: 10px; +} + +.ActionButton.primary { + color: var(--base-neutral-0); + background-color: var(--ifm-button-background-color); + border: var(--ifm-button-border-width) solid var(--ifm-button-border-color); + text-wrap: nowrap; +} + +.ActionButton.primary:hover { + background-color: #1cbb99; +} + +.ActionButton.secondary { + color: #1c1e21; + background-color: #ebedf0; +} + +.ActionButton.secondary:hover { + background-color: #c7c7c7; +} + +.ActionButton.secondary::after { + content: '›'; + font-size: 24px; + margin-left: 5px; +} + +@media only screen and (max-width: 480px) { + .ActionButton { + max-width: 100%; + width: 100%; + display: block; + white-space: nowrap; + } + + .ActionButton.secondary { + margin-top: 1rem; + margin-left: auto; + } + + .custom-image { + width: 80%; + padding-top: 60px; + } +} + +.HomePage { + width: 100%; + overflow-x: hidden; +} + +/* Section */ + +.Section { + width: 100%; + padding-top: 50px; + padding-bottom: 50px; + overflow-x: hidden; + margin-bottom: 5rem; +} + +@media only screen and (max-width: 960px) { + .Section { + margin-bottom: 2rem; + padding-top: 1rem; + } +} + +.Section.tint { + background-color: var(--ifm-hover-overlay); +} + +.Section.dark { + background-color: var(--dark); +} + +/* Two columns */ + +.TwoColumns { + display: grid; +} + +.TwoColumns .column { + width: 100%; +} + +.TwoColumns .column.first { + grid-area: first; +} + +.TwoColumns .column.last { + grid-area: last; +} + +@media only screen and (min-width: 961px) { + .TwoColumns { + margin: 0 auto; + grid-template-columns: repeat(2, 1fr); + grid-template-areas: 'first last'; + } + + .TwoColumns.reverse { + grid-template-areas: 'last first'; + } + + .TwoColumns .column { + max-width: 450px; + } + + .TwoColumns .column.left { + padding-right: 50px; + } + + .TwoColumns .column.right { + padding-left: 50px; + } +} + +@media only screen and (max-width: 960px) { + .TwoColumns, + .TwoColumns.reverse { + grid-template-columns: 1fr; + grid-template-areas: 'first' 'last'; + } + + .TwoColumns .column { + padding: 0 4rem; + } +} + +@media only screen and (max-width: 480px) { + .TwoColumns .column { + padding: 0 1.25rem; + } +} diff --git a/docs/src/pages/index.module.css b/docs/src/pages/index.module.css new file mode 100644 index 0000000000..9f71a5da77 --- /dev/null +++ b/docs/src/pages/index.module.css @@ -0,0 +1,23 @@ +/** + * CSS files with the .module.css suffix will be treated as CSS modules + * and scoped locally. + */ + +.heroBanner { + padding: 4rem 0; + text-align: center; + position: relative; + overflow: hidden; +} + +@media screen and (max-width: 996px) { + .heroBanner { + padding: 2rem; + } +} + +.buttons { + display: flex; + align-items: center; + justify-content: center; +} diff --git a/docs/src/pages/index.tsx b/docs/src/pages/index.tsx index 26842c287f..300781adf2 100644 --- a/docs/src/pages/index.tsx +++ b/docs/src/pages/index.tsx @@ -1,17 +1,37 @@ +import clsx from 'clsx'; +import Link from '@docusaurus/Link'; +import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import Layout from '@theme/Layout'; -import Head from '@docusaurus/Head'; +import HomepageFeatures from '@site/src/components/HomepageFeatures'; +import Heading from '@theme/Heading'; -export default function Home(): JSX.Element { - const pageTitle = 'Talawa-Docs: Powered by The Palisadoes'; +import styles from './index.module.css'; + +function HomepageHeader() { + const { siteConfig } = useDocusaurusContext(); + return ( +
+
+ + {siteConfig.title} + +

{siteConfig.tagline}

+
+
+ ); +} +export default function Home(): JSX.Element { + const { siteConfig } = useDocusaurusContext(); return ( - - - + +
+ +
); } diff --git a/docs/src/pages/markdown-page.md b/docs/src/pages/markdown-page.md new file mode 100644 index 0000000000..9756c5b668 --- /dev/null +++ b/docs/src/pages/markdown-page.md @@ -0,0 +1,7 @@ +--- +title: Markdown page example +--- + +# Markdown page example + +You don't need React to write simple standalone pages. diff --git a/docs/static/img/docusaurus-social-card.jpg b/docs/static/img/docusaurus-social-card.jpg new file mode 100644 index 0000000000..ffcb448210 Binary files /dev/null and b/docs/static/img/docusaurus-social-card.jpg differ diff --git a/docs/static/img/docusaurus.png b/docs/static/img/docusaurus.png new file mode 100644 index 0000000000..f458149e3c Binary files /dev/null and b/docs/static/img/docusaurus.png differ diff --git a/docs/static/img/favicon.ico b/docs/static/img/favicon.ico new file mode 100644 index 0000000000..c01d54bcd3 Binary files /dev/null and b/docs/static/img/favicon.ico differ diff --git a/docs/static/img/logo.svg b/docs/static/img/logo.svg new file mode 100644 index 0000000000..9db6d0d066 --- /dev/null +++ b/docs/static/img/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/static/img/undraw_docusaurus_mountain.svg b/docs/static/img/undraw_docusaurus_mountain.svg new file mode 100644 index 0000000000..af961c49a8 --- /dev/null +++ b/docs/static/img/undraw_docusaurus_mountain.svg @@ -0,0 +1,171 @@ + + Easy to Use + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/static/img/undraw_docusaurus_react.svg b/docs/static/img/undraw_docusaurus_react.svg new file mode 100644 index 0000000000..94b5cf08f8 --- /dev/null +++ b/docs/static/img/undraw_docusaurus_react.svg @@ -0,0 +1,170 @@ + + Powered by React + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/static/img/undraw_docusaurus_tree.svg b/docs/static/img/undraw_docusaurus_tree.svg new file mode 100644 index 0000000000..d9161d3392 --- /dev/null +++ b/docs/static/img/undraw_docusaurus_tree.svg @@ -0,0 +1,40 @@ + + Focus on What Matters + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +