diff --git a/README.md b/README.md index ce1f680b93e..b41c346cc9a 100644 --- a/README.md +++ b/README.md @@ -80,3 +80,13 @@ You can: [project-url]: https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub [project-badge]: http://jb.gg/badges/official.svg [slack-url]: http://slack.kotlinlang.org + +## Pages on Next.js + +You can find all pages in the "pages" directory. + +Projects Structure: +- **Components**. The building blocks. +- **Blocks**. Blocks are groups of components joined together to form a relatively complex, distinct section of an interface. +- **Layouts**. Layouts consist mostly of groups of Blocks and Components stitched together to form pages. +- **Pages**. Each page is associated with a route based on its file name. diff --git a/components/community-banner/community-banner.module.css b/blocks/community/community-banner/community-banner.module.css similarity index 97% rename from components/community-banner/community-banner.module.css rename to blocks/community/community-banner/community-banner.module.css index 5b83ac3a33d..8a44ce5c247 100644 --- a/components/community-banner/community-banner.module.css +++ b/blocks/community/community-banner/community-banner.module.css @@ -1,6 +1,3 @@ -.banner { -} - .content { margin: 24px 0 var(--ktl-grid-gutter); max-width: 720px; diff --git a/components/community-banner/community-banner.tsx b/blocks/community/community-banner/community-banner.tsx similarity index 91% rename from components/community-banner/community-banner.tsx rename to blocks/community/community-banner/community-banner.tsx index a62960bac69..7dc8ed58e01 100644 --- a/components/community-banner/community-banner.tsx +++ b/blocks/community/community-banner/community-banner.tsx @@ -3,7 +3,7 @@ import classNames from 'classnames'; import Image from 'next/image'; import styles from './community-banner.module.css'; -import communityBanner from '../../public/images/community-banner.png'; +import communityBanner from '../../../public/images/community-banner.png'; interface CommunityBannerProps { title: string; diff --git a/components/kugs-banner/kugs-banner.module.css b/blocks/community/kugs-banner/kugs-banner.module.css similarity index 100% rename from components/kugs-banner/kugs-banner.module.css rename to blocks/community/kugs-banner/kugs-banner.module.css diff --git a/components/kugs-banner/kugs-banner.tsx b/blocks/community/kugs-banner/kugs-banner.tsx similarity index 100% rename from components/kugs-banner/kugs-banner.tsx rename to blocks/community/kugs-banner/kugs-banner.tsx diff --git a/components/layout/community-layout.tsx b/layouts/community-layout.tsx similarity index 100% rename from components/layout/community-layout.tsx rename to layouts/community-layout.tsx diff --git a/pages/community/events.tsx b/pages/community/events.tsx index 79993fa9007..cce33af9dd4 100644 --- a/pages/community/events.tsx +++ b/pages/community/events.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {CommunityLayout} from "../../components/layout/community-layout"; +import {CommunityLayout} from "../../layouts/community-layout"; function UserGroups() { return ( diff --git a/pages/community/index.tsx b/pages/community/index.tsx index 8f8aa3795fb..2f814117a10 100644 --- a/pages/community/index.tsx +++ b/pages/community/index.tsx @@ -1,7 +1,7 @@ import React from "react"; -import {CommunityBanner} from '../../components/community-banner/community-banner'; -import {CommunityLayout} from "../../components/layout/community-layout"; +import {CommunityBanner} from '../../blocks/community/community-banner/community-banner'; +import {CommunityLayout} from "../../layouts/community-layout"; function Index() { return ( diff --git a/pages/community/user-groups.tsx b/pages/community/user-groups.tsx index 2e1a83f6269..f87f4e7a101 100644 --- a/pages/community/user-groups.tsx +++ b/pages/community/user-groups.tsx @@ -1,6 +1,6 @@ import React from "react"; -import {CommunityLayout} from "../../components/layout/community-layout"; -import {KugsBanner} from "../../components/kugs-banner/kugs-banner"; +import {CommunityLayout} from "../../layouts/community-layout"; +import {KugsBanner} from "../../blocks/community/kugs-banner/kugs-banner"; function UserGroups() { return (