├── .changeset ├── README.md ├── config.json └── thick-dots-dress.md ├── .editorconfig ├── .eslintrc.cjs ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ ├── chromatic.yml │ ├── commitlint.yml │ ├── release.yml │ └── test.yml ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .prettierignore ├── .prettierrc ├── .storybook ├── main.ts ├── manager.ts ├── preview.tsx └── theme.ts ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── commitlint.config.cjs ├── index.html ├── package.json ├── public ├── _redirects ├── favicon.ico ├── firebase-messaging-sw.js ├── get-started.png ├── grid-3d.jpg ├── grid.jpg ├── landing-frame.jpg ├── landing-frame.png ├── logo-no-background.png ├── me.jpg ├── mocks │ ├── AuctionCreators.json │ ├── BiddingTopSellers.json │ ├── BiddingTransactions.json │ ├── CampaignAds.json │ ├── Campaigns.json │ ├── ChannelUsers.json │ ├── Clients.json │ ├── CommunityGroups.json │ ├── CompanyUsers.json │ ├── CountryOrders.json │ ├── Courses.json │ ├── DeliveryAnalytics.json │ ├── Employees.json │ ├── Exams.json │ ├── Faqs.json │ ├── License.json │ ├── LiveAuction.json │ ├── Notifications.json │ ├── Pricing.json │ ├── Projects.json │ ├── RecentOrders.json │ ├── RecommendedCourses.json │ ├── ScheduledPosts.json │ ├── SessionActivity.json │ ├── SocialComments.json │ ├── SocialMedia.json │ ├── StudyStatistics.json │ ├── TasksList.json │ ├── TimelineActivity.json │ ├── TopCategories.json │ ├── TopProducts.json │ ├── TopSeller.json │ ├── TruckDeliveries.json │ ├── TruckDeliveryRequest.json │ └── Trucks.json ├── showcase │ ├── auth │ │ ├── login.png │ │ ├── password-reset.png │ │ ├── register.png │ │ └── welcome.png │ ├── corporate │ │ ├── pricing.png │ │ └── team.png │ ├── dashboard │ │ ├── bidding.png │ │ ├── default.png │ │ ├── ecommerce.png │ │ ├── learning.png │ │ ├── logistics.png │ │ ├── marketing.png │ │ ├── projects.png │ │ └── social.png │ ├── errors │ │ └── 400.png │ └── profile │ │ └── details.png └── vite.svg ├── src ├── App.css ├── App.tsx ├── assets │ └── react.svg ├── components │ ├── BackBtn │ │ ├── BackBtn.stories.tsx │ │ └── BackBtn.tsx │ ├── Card │ │ ├── Card.stories.tsx │ │ ├── Card.tsx │ │ └── styles.css │ ├── ContactForm │ │ ├── ContactForm.stories.tsx │ │ └── ContactForm.tsx │ ├── Container │ │ ├── Container.tsx │ │ └── index.ts │ ├── EmployeeCard │ │ ├── EmployeeCard.stories.tsx │ │ └── EmployeeCard.tsx │ ├── FaqCollapse │ │ └── FaqCollapse.tsx │ ├── Flex │ │ └── Flex.tsx │ ├── Loader │ │ ├── Loader.stories.tsx │ │ ├── Loader.tsx │ │ └── styles.css │ ├── Logo │ │ ├── Logo.stories.tsx │ │ ├── Logo.tsx │ │ └── styles.css │ ├── MoreMenu │ │ ├── MoreMenu.stories.tsx │ │ └── MoreMenu.tsx │ ├── NotificationsCard │ │ ├── Notifications.stories.tsx │ │ ├── NotificationsCard.tsx │ │ └── styles.css │ ├── NotificationsItem │ │ ├── NotificationsItem.stories.tsx │ │ └── NotificationsItem.tsx │ ├── Nprogress │ │ ├── Bar.tsx │ │ ├── Container.tsx │ │ ├── Progress.tsx │ │ ├── Spinner.tsx │ │ ├── index.ts │ │ └── spinner.css │ ├── PageHeader │ │ ├── PageHeader.stories.tsx │ │ ├── PageHeader.tsx │ │ └── styles.css │ ├── PricingTable │ │ ├── PricingTable.stories.tsx │ │ └── PricingTable.tsx │ ├── RefreshBtn │ │ ├── RefreshBtn.stories.tsx │ │ └── RefreshBtn.tsx │ ├── SitemapCard │ │ ├── SitemapCard.stories.tsx │ │ ├── SitemapCard.tsx │ │ └── styles.css │ ├── SocialMediaCard │ │ ├── SocialMediaCard.stories.tsx │ │ └── SocialMediaCard.tsx │ ├── TimelineCard │ │ ├── TimelineCard.stories.tsx │ │ └── TimelineCard.tsx │ ├── UserAvatar │ │ ├── UserAvatar.stories.tsx │ │ └── UserAvatar.tsx │ ├── corporate │ │ └── BlogsListCard │ │ │ ├── BlogListCard.stories.tsx │ │ │ ├── BlogsListCard.tsx │ │ │ └── styles.css │ ├── dashboard │ │ ├── bidding │ │ │ ├── AuctionCarousel │ │ │ │ ├── AuctionCarousel.stories.tsx │ │ │ │ ├── AuctionCarousel.tsx │ │ │ │ └── styles.css │ │ │ ├── CategoriesCard │ │ │ │ ├── Categories.stories.tsx │ │ │ │ ├── CategoriesCard.tsx │ │ │ │ └── styles.css │ │ │ ├── CreatorsCard │ │ │ │ ├── CreatorsCard.stories.tsx │ │ │ │ ├── CreatorsCard.tsx │ │ │ │ └── styles.css │ │ │ ├── TopItemsCard │ │ │ │ ├── TopItems.stories.tsx │ │ │ │ └── TopItems.tsx │ │ │ ├── TransactionsCard │ │ │ │ ├── TransactionsCard.stories.tsx │ │ │ │ └── TransactionsCard.tsx │ │ │ └── index.ts │ │ ├── default │ │ │ ├── CampaignsCard │ │ │ │ ├── CampaignsCard.stories.tsx │ │ │ │ └── CampaignsCard.tsx │ │ │ ├── EarningsCard │ │ │ │ ├── EarningsCard.stories.tsx │ │ │ │ └── EarningsCard.tsx │ │ │ ├── GetStartedCard │ │ │ │ ├── GetStartedCard.stories.tsx │ │ │ │ └── GetStartedCard.tsx │ │ │ ├── LatestOrdersCard │ │ │ │ ├── LatestOrdersCard.stories.tsx │ │ │ │ └── LatestOrdersCard.tsx │ │ │ ├── OrdersChart │ │ │ │ ├── OrdersChart.stories.tsx │ │ │ │ └── OrdersChart.tsx │ │ │ ├── RecentUsersCard │ │ │ │ ├── RecentUsersCard.stories.tsx │ │ │ │ └── RecentUsersCard.tsx │ │ │ ├── SubscribersChart │ │ │ │ ├── SubscribersChart.stories.tsx │ │ │ │ └── SubscribersChart.tsx │ │ │ ├── TasksChartCard │ │ │ │ ├── TasksChart.stories.tsx │ │ │ │ └── TasksChartCard.tsx │ │ │ ├── TasksListCard │ │ │ │ ├── TasksList.stories.tsx │ │ │ │ ├── TasksListCard.tsx │ │ │ │ └── styles.css │ │ │ ├── WeeklyActivityCard │ │ │ │ ├── WeeklyActivityCard.stories.tsx │ │ │ │ └── WeeklyActivityCard.tsx │ │ │ └── index.ts │ │ ├── ecommerce │ │ │ ├── CustomerReviewsCard │ │ │ │ ├── CustomerReviewsCard.stories.tsx │ │ │ │ └── CustomerReviewsCard.tsx │ │ │ └── index.ts │ │ ├── index.ts │ │ ├── learning │ │ │ ├── CommunityGroupsCard │ │ │ │ ├── CommunityGroupCard.tsx │ │ │ │ ├── CommunityGroupsCard.stories.tsx │ │ │ │ └── styles.css │ │ │ ├── CoursesCard │ │ │ │ ├── CoursesCard.stories.tsx │ │ │ │ └── CoursesCard.tsx │ │ │ ├── CoursesCarousel │ │ │ │ ├── CoursesCaroursel.stories.tsx │ │ │ │ ├── CoursesCarousel.tsx │ │ │ │ └── styles.css │ │ │ ├── ExamsCard │ │ │ │ ├── ExamsCard.stories.tsx │ │ │ │ ├── ExamsCard.tsx │ │ │ │ └── styles.css │ │ │ ├── ProgressCard │ │ │ │ ├── ProgressCard.stories.tsx │ │ │ │ └── ProgressCard.tsx │ │ │ ├── StatsCard │ │ │ │ ├── StatsCard.stories.tsx │ │ │ │ └── StatsCard.tsx │ │ │ ├── StudyStatisticsCard │ │ │ │ ├── StudyStatisticsCard.tsx │ │ │ │ └── StudyStatisticssCard.stories.tsx │ │ │ └── index.ts │ │ ├── logistics │ │ │ ├── DailyPlanCard │ │ │ │ ├── DailyPlanCard.stories.tsx │ │ │ │ └── DailyPlanCard.tsx │ │ │ ├── DeliveryAnalyticsCard │ │ │ │ ├── DeliveryAnalyticsCard.stories.tsx │ │ │ │ └── DeliveryAnalyticsCard.tsx │ │ │ ├── DeliveryRequestCard │ │ │ │ ├── DeliveryRequestCard.stories.tsx │ │ │ │ ├── DeliveryRequestCard.tsx │ │ │ │ └── styles.css │ │ │ ├── DeliveryTableCard │ │ │ │ ├── DeliveryTableCard.stories.tsx │ │ │ │ └── DeliveryTableCard.tsx │ │ │ ├── StatsCard │ │ │ │ ├── StatsCard.stories.tsx │ │ │ │ └── StatsCard.tsx │ │ │ ├── TrucksListCard │ │ │ │ ├── TruckListCard.stories.tsx │ │ │ │ ├── TruckListCard.tsx │ │ │ │ └── styles.css │ │ │ └── index.ts │ │ ├── marketing │ │ │ ├── AudienceLocationChart │ │ │ │ ├── AudienceLocationChart.stories.tsx │ │ │ │ └── AudienceLocationChart.tsx │ │ │ ├── CampaignsActivity │ │ │ │ ├── CampaignsActivity.stories.tsx │ │ │ │ └── CampaignsActivity.tsx │ │ │ ├── CampaignsAdsCard │ │ │ │ ├── CampaignAdsCard.stories.tsx │ │ │ │ └── CampaignsAdsCard.tsx │ │ │ ├── SocialStatsCard │ │ │ │ ├── SocialStatsCard.stories.tsx │ │ │ │ └── SocialStatsCard.tsx │ │ │ ├── StatsCard │ │ │ │ ├── StatsCard.stories.tsx │ │ │ │ └── StatsCard.tsx │ │ │ ├── VisitorsChartCard │ │ │ │ ├── VisitorsChartCard.stories.tsx │ │ │ │ └── VisitorsChartCard.tsx │ │ │ └── index.ts │ │ ├── projects │ │ │ ├── ClientsTable │ │ │ │ ├── ClientsTable.stories.tsx │ │ │ │ └── ClientsTable.tsx │ │ │ ├── ProjectsCountCard │ │ │ │ ├── ProjectsCountCard.stories.tsx │ │ │ │ ├── ProjectsCountCard.tsx │ │ │ │ └── styles.scss │ │ │ ├── ProjectsTables │ │ │ │ ├── ProjectsTable.stories.tsx │ │ │ │ └── ProjectsTable.tsx │ │ │ └── index.ts │ │ ├── shared │ │ │ ├── PostsCard │ │ │ │ ├── PostsCard.stories.tsx │ │ │ │ ├── PostsCard.tsx │ │ │ │ └── styles.css │ │ │ ├── ProjectsCard │ │ │ │ ├── ProjectsCard.stories.tsx │ │ │ │ ├── ProjectsCard.tsx │ │ │ │ └── styles.css │ │ │ ├── RevenueCard │ │ │ │ ├── RevenueCard.stories.tsx │ │ │ │ └── RevenueCard.tsx │ │ │ └── index.ts │ │ └── social │ │ │ ├── CommentsCard │ │ │ ├── CommentsCard.stories.tsx │ │ │ ├── CommentsCard.tsx │ │ │ └── styles.css │ │ │ ├── DevicesCardChart │ │ │ ├── DevicesCardChart.stories.tsx │ │ │ └── DevicesCardChart.tsx │ │ │ ├── FollowersChart │ │ │ ├── FollowersChart.stories.tsx │ │ │ └── FollowersChart.tsx │ │ │ ├── LikesChart │ │ │ ├── LikesChart.stories.tsx │ │ │ └── LikesChart.tsx │ │ │ ├── MilestonesCard │ │ │ ├── MilestonesCard.stories.tsx │ │ │ ├── MilestonesCard.tsx │ │ │ └── styles.css │ │ │ ├── SocialStatsCard │ │ │ ├── SocialStatsCard.stories.tsx │ │ │ └── SocialStatsCard.tsx │ │ │ └── index.ts │ └── index.ts ├── constants │ ├── index.ts │ └── routes.ts ├── context │ ├── index.ts │ └── styles.tsx ├── firebase │ └── firebaseConfig.ts ├── hooks │ ├── index.ts │ ├── useFetchData.tsx │ └── usePageContext.tsx ├── index.css ├── layouts │ ├── app │ │ ├── App.tsx │ │ ├── FooterNav.tsx │ │ ├── HeaderNav.tsx │ │ ├── SideNav.tsx │ │ └── index.ts │ ├── corporate │ │ └── index.tsx │ ├── dashboards │ │ └── index.tsx │ ├── guest │ │ └── Guest.tsx │ ├── index.ts │ └── userAccount │ │ ├── index.tsx │ │ └── styles.css ├── main.tsx ├── pages │ ├── About.tsx │ ├── Home.tsx │ ├── Sitemap.tsx │ ├── authentication │ │ ├── AccountDeactivate.tsx │ │ ├── PasswordReset.tsx │ │ ├── SignIn.tsx │ │ ├── SignUp.tsx │ │ ├── VerifyEmail.tsx │ │ ├── Welcome.tsx │ │ └── index.ts │ ├── corporate │ │ ├── About.tsx │ │ ├── Contact.tsx │ │ ├── Faqs.tsx │ │ ├── Licence.tsx │ │ ├── Pricing.tsx │ │ ├── Team.tsx │ │ └── index.ts │ ├── dashboards │ │ ├── Bidding.tsx │ │ ├── Default.tsx │ │ ├── Ecommerce.tsx │ │ ├── Learning.tsx │ │ ├── Logistics.tsx │ │ ├── Marketing.tsx │ │ ├── Projects.tsx │ │ ├── Social.tsx │ │ └── index.ts │ ├── errors │ │ ├── Error.tsx │ │ ├── Error400.tsx │ │ ├── Error403.tsx │ │ ├── Error404.tsx │ │ ├── Error500.tsx │ │ ├── Error503.tsx │ │ └── index.ts │ ├── index.ts │ └── userAccount │ │ ├── Actions.tsx │ │ ├── Activity.tsx │ │ ├── Details.tsx │ │ ├── Feedback.tsx │ │ ├── Help.tsx │ │ ├── Information.tsx │ │ ├── Preferences.tsx │ │ ├── Security.tsx │ │ └── index.ts ├── redux │ ├── store.ts │ └── theme │ │ └── themeSlice.ts ├── routes │ └── routes.tsx ├── stories │ ├── Configure.mdx │ └── assets │ │ ├── accessibility.png │ │ ├── accessibility.svg │ │ ├── addon-library.png │ │ ├── assets.png │ │ ├── context.png │ │ ├── discord.svg │ │ ├── docs.png │ │ ├── figma-plugin.png │ │ ├── github.svg │ │ ├── share.png │ │ ├── styling.png │ │ ├── testing.png │ │ ├── theming.png │ │ ├── tutorials.svg │ │ └── youtube.svg ├── types │ ├── bidding.ts │ ├── campaigns.ts │ ├── clients.ts │ ├── comments.ts │ ├── dashboard.ts │ ├── employee.ts │ ├── faq.ts │ ├── index.ts │ ├── learnings.ts │ ├── logistics.ts │ ├── notifications.ts │ ├── posts.ts │ ├── pricing.ts │ ├── projects.ts │ ├── session.ts │ └── timeline.ts ├── utils │ └── index.ts └── vite-env.d.ts ├── tsconfig.json ├── tsconfig.node.json ├── vite.config.ts └── yarn.lock /.changeset/README.md: -------------------------------------------------------------------------------- 1 | # Changesets 2 | 3 | Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works 4 | with multi-package repos, or single-package repos to help you version and publish your code. You can 5 | find the full documentation for it [in our repository](https://github.com/changesets/changesets) 6 | 7 | We have a quick list of common questions to get you started engaging with this project in 8 | [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) 9 | -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json", 3 | "changelog": "@changesets/cli/changelog", 4 | "commit": false, 5 | "fixed": [], 6 | "linked": [], 7 | "access": "restricted", 8 | "baseBranch": "main", 9 | "updateInternalDependencies": "patch", 10 | "ignore": [] 11 | } 12 | -------------------------------------------------------------------------------- /.changeset/thick-dots-dress.md: -------------------------------------------------------------------------------- 1 | --- 2 | "antd-multi-dashboard": patch 3 | --- 4 | 5 | ### Added 6 | - feat(ui): added support for dark mode. 7 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root=true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 2 6 | charset = utf-8 7 | trim_trailing_whitespace = false 8 | insert_final_newline = true 9 | end_of_line = lf 10 | tab_width = 2 -------------------------------------------------------------------------------- /.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { browser: true, es2020: true }, 4 | extends: [ 5 | 'eslint:recommended', 6 | 'plugin:@typescript-eslint/recommended', 7 | 'plugin:react-hooks/recommended', 8 | 'plugin:storybook/recommended', 9 | ], 10 | ignorePatterns: ['dist', '.eslintrc.cjs'], 11 | parser: '@typescript-eslint/parser', 12 | plugins: ['react-refresh'], 13 | rules: { 14 | 'react-refresh/only-export-components': [ 15 | 'warn', 16 | { allowConstantExport: true }, 17 | ], 18 | }, 19 | }; 20 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | --- 8 | 9 | **Describe the bug** 10 | A clear and concise description of what the bug is. 11 | 12 | **To Reproduce** 13 | Steps to reproduce the behavior: 14 | 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | 28 | - OS: [e.g. iOS] 29 | - Browser [e.g. chrome, safari] 30 | - Version [e.g. 22] 31 | 32 | **Smartphone (please complete the following information):** 33 | 34 | - Device: [e.g. iPhone6] 35 | - OS: [e.g. iOS8.1] 36 | - Browser [e.g. stock browser, safari] 37 | - Version [e.g. 22] 38 | 39 | **Additional context** 40 | Add any other context about the problem here. 41 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | --- 8 | 9 | **Is your feature request related to a problem? Please describe.** 10 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 11 | 12 | **Describe the solution you'd like** 13 | A clear and concise description of what you want to happen. 14 | 15 | **Describe alternatives you've considered** 16 | A clear and concise description of any alternative solutions or features you've considered. 17 | 18 | **Additional context** 19 | Add any other context or screenshots about the feature request here. 20 | -------------------------------------------------------------------------------- /.github/workflows/chromatic.yml: -------------------------------------------------------------------------------- 1 | # Workflow name 2 | name: 'Chromatic Deployment' 3 | 4 | # Event for the workflow 5 | on: 6 | push: 7 | branches: [main] 8 | pull_request: 9 | branches: [main] 10 | 11 | # List of jobs 12 | jobs: 13 | chromatic-deployment: 14 | # Operating System 15 | runs-on: ubuntu-latest 16 | # Job steps 17 | steps: 18 | - uses: actions/checkout@v1 19 | - run: yarn 20 | #👇 Adds Chromatic as a step in the workflow 21 | - name: Publish to Chromatic 22 | uses: chromaui/action@v1 23 | # Options required for Chromatic's GitHub Action 24 | with: 25 | #👇 Chromatic projectToken, see https://storybook.js.org/tutorials/intro-to-storybook/react/en/deploy/ to obtain it 26 | projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} 27 | -------------------------------------------------------------------------------- /.github/workflows/commitlint.yml: -------------------------------------------------------------------------------- 1 | name: Lint Commit Messages 2 | on: [pull_request, push] 3 | 4 | jobs: 5 | commitlint: 6 | runs-on: ubuntu-latest 7 | steps: 8 | - uses: actions/checkout@v2 9 | with: 10 | fetch-depth: 0 11 | - uses: wagoid/commitlint-github-action@v4 12 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: 'Changeset Release' 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | 8 | concurrency: ${{ github.workflow }}-${{ github.ref }} 9 | 10 | jobs: 11 | release: 12 | name: Release 13 | runs-on: ubuntu-latest 14 | steps: 15 | - name: Checkout Repo 16 | uses: actions/checkout@v3 17 | 18 | - name: Setup Node.js 18 19 | uses: actions/setup-node@v3 20 | with: 21 | node-version: 18 22 | 23 | - name: Install Dependencies 24 | run: yarn 25 | 26 | - name: Create Release Pull Request 27 | uses: changesets/action@v1 28 | env: 29 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 30 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | # This workflow will do a clean install of dependencies, optionally build, and run tests 2 | # across different versions of node. 3 | name: Test 4 | on: 5 | push: 6 | branches: 7 | - '**' # make it run on any branch 8 | - '!main' # but exclude the 'main' and 'master' branches 9 | - '!master' 10 | pull_request: 11 | branches: 12 | - '**' 13 | - '!main' 14 | - '!master' 15 | jobs: 16 | build: 17 | runs-on: ubuntu-latest 18 | strategy: 19 | matrix: 20 | node-version: 21 | - '16.x' 22 | - '18.x' # whichever node versions you support 23 | steps: 24 | - uses: actions/checkout@v3 25 | 26 | - name: Use Node.js ${{ matrix.node-version }} 27 | uses: actions/setup-node@v3 28 | with: 29 | node-version: ${{ matrix.node-version }} 30 | 31 | - name: Clean install dependencies 32 | run: yarn install --frozen-lockfile 33 | 34 | - name: Build application 35 | run: yarn run build 36 | 37 | - name: Test 38 | run: yarn test 39 | -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | pnpm exec commitlint --edit $1 5 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | # Ignore artifacts: 2 | build 3 | coverage 4 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": true, 3 | "trailingComma": "es5", 4 | "singleQuote": true 5 | } 6 | -------------------------------------------------------------------------------- /.storybook/main.ts: -------------------------------------------------------------------------------- 1 | import type { StorybookConfig } from '@storybook/react-vite'; 2 | 3 | const config: StorybookConfig = { 4 | stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], 5 | addons: [ 6 | '@storybook/addon-links', 7 | '@storybook/addon-essentials', 8 | '@storybook/addon-onboarding', 9 | '@storybook/addon-interactions', 10 | 'storybook-addon-react-router-v6', 11 | ], 12 | framework: { 13 | name: '@storybook/react-vite', 14 | options: {}, 15 | }, 16 | docs: { 17 | autodocs: 'tag', 18 | }, 19 | }; 20 | export default config; 21 | -------------------------------------------------------------------------------- /.storybook/manager.ts: -------------------------------------------------------------------------------- 1 | // .storybook/manager.js 2 | 3 | import { addons } from '@storybook/manager-api'; 4 | import yourTheme from './theme'; 5 | 6 | addons.setConfig({ 7 | theme: yourTheme, 8 | }); 9 | -------------------------------------------------------------------------------- /.storybook/preview.tsx: -------------------------------------------------------------------------------- 1 | import type { Preview } from '@storybook/react'; 2 | import { themes } from '@storybook/theming'; 3 | import { StylesContext } from '../src/context'; 4 | import '../src/App.css'; 5 | 6 | export const withStylesProvider = (Story: any) => { 7 | return ( 8 | 9 | {/* 👇 Decorators in Storybook also accept a function. Replace with Story() to enable it */} 10 | 11 | 12 | ); 13 | }; 14 | 15 | const preview: Preview = { 16 | parameters: { 17 | actions: { argTypesRegex: '^on[A-Z].*' }, 18 | controls: { 19 | matchers: { 20 | color: /(background|color)$/i, 21 | date: /Date$/i, 22 | }, 23 | }, 24 | docs: { 25 | theme: themes.normal, 26 | }, 27 | decorators: [], 28 | }, 29 | }; 30 | 31 | export default preview; 32 | -------------------------------------------------------------------------------- /.storybook/theme.ts: -------------------------------------------------------------------------------- 1 | // .storybook/YourTheme.js 2 | 3 | import { create } from '@storybook/theming/create'; 4 | 5 | export default create({ 6 | base: 'light', 7 | brandTitle: 'Antd Dashboard', 8 | brandUrl: 'https://antd-multipurpose-dashboard.netlify.app/', 9 | brandTarget: '_blank', 10 | 11 | // 12 | colorPrimary: '#2378c3', 13 | }); 14 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Kelvin Kiprop 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | Use this section to tell people about which versions of your project are 6 | currently being supported with security updates. 7 | 8 | | Version | Supported | 9 | | ------- | ------------------ | 10 | | 5.1.x | :white_check_mark: | 11 | | 5.0.x | :x: | 12 | | 4.0.x | :white_check_mark: | 13 | | < 4.0 | :x: | 14 | 15 | ## Reporting a Vulnerability 16 | 17 | Use this section to tell people how to report a vulnerability. 18 | 19 | Tell them where to go, how often they can expect to get an update on a 20 | reported vulnerability, what to expect if the vulnerability is accepted or 21 | declined, etc. 22 | -------------------------------------------------------------------------------- /commitlint.config.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ['@commitlint/config-conventional'], 3 | }; 4 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Multi dashboard template with React and Ant Design v5 - AntD Dashboard by 9 | Design Sparx 10 | 11 | 15 | 19 | 20 | 21 | 25 | 29 | 30 | 34 | 35 | 36 | 37 | 38 | 39 | 43 | 44 | 45 |
46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /public/_redirects: -------------------------------------------------------------------------------- 1 | /* /index.html 200 -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/favicon.ico -------------------------------------------------------------------------------- /public/firebase-messaging-sw.js: -------------------------------------------------------------------------------- 1 | // Scripts for firebase and firebase messaging 2 | importScripts('https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js'); 3 | importScripts( 4 | 'https://www.gstatic.com/firebasejs/8.10.0/firebase-messaging.js' 5 | ); 6 | 7 | const { 8 | VITE_APP_API_KEY, 9 | VITE_APP_AUTH_DOMAIN, 10 | VITE_APP_PROJECT_ID, 11 | VITE_APP_STORAGE_BUCKET, 12 | VITE_APP_MESSENGER_SENDER_ID, 13 | VITE_APP_APP_ID, 14 | VITE_APP_MEASUREMENT_ID, 15 | } = import.meta.env; 16 | 17 | // Initialize the Firebase app in the service worker 18 | // "Default" Firebase configuration (prevents errors) 19 | const firebaseConfig = { 20 | apiKey: VITE_APP_API_KEY, 21 | authDomain: VITE_APP_AUTH_DOMAIN, 22 | projectId: VITE_APP_PROJECT_ID, 23 | storageBucket: VITE_APP_STORAGE_BUCKET, 24 | messagingSenderId: VITE_APP_MESSENGER_SENDER_ID, 25 | appId: VITE_APP_APP_ID, 26 | measurementId: VITE_APP_MEASUREMENT_ID, 27 | }; 28 | 29 | firebase.initializeApp(firebaseConfig); 30 | 31 | // Retrieve firebase messaging 32 | const messaging = firebase.messaging(); 33 | 34 | messaging.onBackgroundMessage((payload) => { 35 | const notificationTitle = payload.notification.title; 36 | const notificationOptions = { 37 | body: payload.notification.body, 38 | icon: payload.notification.image, 39 | }; 40 | 41 | self.registration.showNotification(notificationTitle, notificationOptions); 42 | }); 43 | -------------------------------------------------------------------------------- /public/get-started.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/get-started.png -------------------------------------------------------------------------------- /public/grid-3d.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/grid-3d.jpg -------------------------------------------------------------------------------- /public/grid.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/grid.jpg -------------------------------------------------------------------------------- /public/landing-frame.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/landing-frame.jpg -------------------------------------------------------------------------------- /public/landing-frame.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/landing-frame.png -------------------------------------------------------------------------------- /public/logo-no-background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/logo-no-background.png -------------------------------------------------------------------------------- /public/me.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/me.jpg -------------------------------------------------------------------------------- /public/mocks/CompanyUsers.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": "b0f2aedf-1b50-43f0-8483-4be8081ac8fe", 4 | "company": "Thoughtmix", 5 | "users": 3882, 6 | "percentage": 76 7 | }, 8 | { 9 | "id": "78608897-fd0c-468f-839a-8ecf1c41738f", 10 | "company": "Realcube", 11 | "users": 5794, 12 | "percentage": 1 13 | }, 14 | { 15 | "id": "c3cb9000-bd85-432e-953d-eeae66824ff6", 16 | "company": "Eamia", 17 | "users": 9308, 18 | "percentage": 74 19 | }, 20 | { 21 | "id": "35233364-55f8-44fc-a814-d21f653858e3", 22 | "company": "Talane", 23 | "users": 6889, 24 | "percentage": 75 25 | }, 26 | { 27 | "id": "0d4d8e60-0a4a-4581-93ed-8b3de4e4e5b5", 28 | "company": "Browseblab", 29 | "users": 5832, 30 | "percentage": 74 31 | } 32 | ] 33 | -------------------------------------------------------------------------------- /public/mocks/License.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "title": "free", 4 | "description": "The Free Plan grants the user a non-exclusive, non-transferable license to use the dashboard template for personal or non-commercial purposes. Users are allowed to modify the template to suit their needs. However, this license does not permit the user to sublicense, sell, or distribute the template or any derivative works. The Free Plan also includes basic support via email. The license is valid as long as the user adheres to the terms of service." 5 | }, 6 | { 7 | "title": "pro", 8 | "description": "The Pro Plan includes a non-exclusive, non-transferable license that allows the user to use the dashboard template for commercial purposes. Users can modify, customize, and create derivative works based on the template. The license permits the user to sublicense the template to clients or end-users. It also includes priority email support and grants access to premium features such as data export/import and the premium templates library. The license is valid for the subscribed period (monthly or annually) and automatically renews unless canceled." 9 | }, 10 | { 11 | "title": "enterprise", 12 | "description": "The Enterprise Plan provides a comprehensive, non-exclusive, non-transferable license for large-scale commercial use. This license grants the user unlimited flexibility to modify, customize, and create derivative works from the dashboard template. Users can sublicense the template, access premium support with a dedicated account manager, and utilize advanced features like API access and integration support. The license includes 24/7 priority support and ensures the highest level of data security and compliance. The license is valid for the subscribed period (monthly or annually) and automatically renews unless canceled." 13 | } 14 | ] 15 | -------------------------------------------------------------------------------- /public/mocks/Pricing.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "plan": "free", 4 | "monthly": 0, 5 | "annually": 0, 6 | "savings_caption": "Save 0%", 7 | "features": [ 8 | "Basic Dashboard Templates", 9 | "Limited Widgets and Customization Options", 10 | "Email Support" 11 | ], 12 | "color": "purple" 13 | }, 14 | { 15 | "plan": "pro", 16 | "monthly": 9.99, 17 | "annually": 99.99, 18 | "savings_caption": "Save 17%", 19 | "features": [ 20 | "Advanced Dashboard Templates", 21 | "Rich Widgets and Customization Options", 22 | "Priority Email Support", 23 | "Data Export and Import", 24 | "Access to Premium Templates Library" 25 | ], 26 | "color": "maroon", 27 | "preferred": true 28 | }, 29 | { 30 | "plan": "enterprise", 31 | "monthly": 29.99, 32 | "annually": 299.99, 33 | "savings_caption": "Save 17%", 34 | "features": [ 35 | "Enterprise-grade Dashboard Templates", 36 | "Unlimited Widgets and Customization Options", 37 | "24/7 Priority Support", 38 | "Dedicated Account Manager", 39 | "Advanced Data Security and Compliance", 40 | "API Access and Integration Support" 41 | ], 42 | "color": "cyan" 43 | } 44 | ] 45 | -------------------------------------------------------------------------------- /public/mocks/SocialMedia.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": "b1f76a05-31fb-4a57-8a21-068a3d991f07", 4 | "followers": 11374, 5 | "following": 53756, 6 | "posts": 98954, 7 | "likes": 98992, 8 | "comments": 41318, 9 | "engagement_rate": 3413.93, 10 | "title": "facebook" 11 | }, 12 | { 13 | "id": "72a2e948-e2e1-45e4-a628-c437c821b9d1", 14 | "followers": 45020, 15 | "following": 79850, 16 | "posts": 90705, 17 | "likes": 40821, 18 | "comments": 14429, 19 | "engagement_rate": 7672.22, 20 | "title": "twitter" 21 | }, 22 | { 23 | "id": "f81fec68-7563-49f0-91e8-fb6d6abcb55a", 24 | "followers": 63178, 25 | "following": 17828, 26 | "posts": 10536, 27 | "likes": 6096, 28 | "comments": 43156, 29 | "engagement_rate": 4048.96, 30 | "title": "instagram" 31 | }, 32 | { 33 | "id": "81a2f401-532c-40d4-aea0-bcd8785b9565", 34 | "followers": 39246, 35 | "following": 81326, 36 | "posts": 76684, 37 | "likes": 42046, 38 | "comments": 89698, 39 | "engagement_rate": 3957.44, 40 | "title": "linkedin" 41 | }, 42 | { 43 | "id": "90c309ee-bb8e-480e-a62e-4dd266d720b4", 44 | "followers": 40597, 45 | "following": 83724, 46 | "posts": 67809, 47 | "likes": 40509, 48 | "comments": 93344, 49 | "engagement_rate": 9625.38, 50 | "title": "youtube" 51 | } 52 | ] 53 | -------------------------------------------------------------------------------- /public/showcase/auth/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/auth/login.png -------------------------------------------------------------------------------- /public/showcase/auth/password-reset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/auth/password-reset.png -------------------------------------------------------------------------------- /public/showcase/auth/register.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/auth/register.png -------------------------------------------------------------------------------- /public/showcase/auth/welcome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/auth/welcome.png -------------------------------------------------------------------------------- /public/showcase/corporate/pricing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/corporate/pricing.png -------------------------------------------------------------------------------- /public/showcase/corporate/team.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/corporate/team.png -------------------------------------------------------------------------------- /public/showcase/dashboard/bidding.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/dashboard/bidding.png -------------------------------------------------------------------------------- /public/showcase/dashboard/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/dashboard/default.png -------------------------------------------------------------------------------- /public/showcase/dashboard/ecommerce.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/dashboard/ecommerce.png -------------------------------------------------------------------------------- /public/showcase/dashboard/learning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/dashboard/learning.png -------------------------------------------------------------------------------- /public/showcase/dashboard/logistics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/dashboard/logistics.png -------------------------------------------------------------------------------- /public/showcase/dashboard/marketing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/dashboard/marketing.png -------------------------------------------------------------------------------- /public/showcase/dashboard/projects.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/dashboard/projects.png -------------------------------------------------------------------------------- /public/showcase/dashboard/social.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/dashboard/social.png -------------------------------------------------------------------------------- /public/showcase/errors/400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/errors/400.png -------------------------------------------------------------------------------- /public/showcase/profile/details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/design-sparx/antd-multipurpose-dashboard/005fdbcf2d946b0f74e488e2673fc7c7589e5de3/public/showcase/profile/details.png -------------------------------------------------------------------------------- /public/vite.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/BackBtn/BackBtn.stories.tsx: -------------------------------------------------------------------------------- 1 | import type { Meta, StoryObj } from '@storybook/react'; 2 | import { withRouter } from 'storybook-addon-react-router-v6'; 3 | 4 | import { BackBtn } from './BackBtn.tsx'; 5 | 6 | // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export 7 | const meta = { 8 | title: 'Components/Back button', 9 | component: BackBtn, 10 | parameters: { 11 | // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout 12 | layout: 'centered', 13 | }, 14 | // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs 15 | tags: ['autodocs'], 16 | // More on argTypes: https://storybook.js.org/docs/react/api/argtypes 17 | decorators: [withRouter], 18 | } satisfies Meta; 19 | 20 | export default meta; 21 | type Story = StoryObj; 22 | 23 | // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args 24 | export const Default: Story = { 25 | args: { 26 | type: 'default', 27 | }, 28 | }; 29 | 30 | export const WithIcon: Story = { 31 | args: { 32 | wIcon: true, 33 | }, 34 | }; 35 | 36 | export const IconOnly: Story = { 37 | args: { 38 | iconOnly: true, 39 | }, 40 | }; 41 | -------------------------------------------------------------------------------- /src/components/BackBtn/BackBtn.tsx: -------------------------------------------------------------------------------- 1 | import { useNavigate } from 'react-router-dom'; 2 | import { Button, ButtonProps, Tooltip } from 'antd'; 3 | import { LeftOutlined } from '@ant-design/icons'; 4 | 5 | type Props = { 6 | wIcon?: boolean; 7 | iconOnly?: boolean; 8 | } & ButtonProps; 9 | 10 | export const BackBtn = ({ wIcon, iconOnly, ...others }: Props) => { 11 | const navigate = useNavigate(); 12 | 13 | return ( 14 | 15 | 22 | 23 | ); 24 | }; 25 | -------------------------------------------------------------------------------- /src/components/Card/Card.stories.tsx: -------------------------------------------------------------------------------- 1 | import type { Meta, StoryObj } from '@storybook/react'; 2 | 3 | import { Card } from './Card'; 4 | 5 | // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export 6 | const meta = { 7 | title: 'Components/Card', 8 | component: Card, 9 | parameters: { 10 | // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout 11 | layout: 'centered', 12 | }, 13 | // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs 14 | tags: ['autodocs'], 15 | // More on argTypes: https://storybook.js.org/docs/react/api/argtypes 16 | } satisfies Meta; 17 | 18 | export default meta; 19 | type Story = StoryObj; 20 | 21 | // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args 22 | export const Default: Story = { 23 | args: { 24 | children: 'This is a card', 25 | }, 26 | }; 27 | -------------------------------------------------------------------------------- /src/components/Card/Card.tsx: -------------------------------------------------------------------------------- 1 | import { Card as AntdCard, CardProps } from 'antd'; 2 | import { ReactNode } from 'react'; 3 | 4 | import './styles.css'; 5 | 6 | type Props = { children: ReactNode } & CardProps; 7 | 8 | export const Card = ({ children, ...others }: Props) => { 9 | return ( 10 | 11 | {children} 12 | 13 | ); 14 | }; 15 | -------------------------------------------------------------------------------- /src/components/Card/styles.css: -------------------------------------------------------------------------------- 1 | /* Glassmorphism card effect */ 2 | .card { 3 | /*backdrop-filter: blur(16px) saturate(180%);*/ 4 | /*-webkit-backdrop-filter: blur(16px) saturate(180%);*/ 5 | /* background-color: rgba(255, 255, 255, 1); */ 6 | /*border: 1px solid rgba(209, 213, 219, 0.3);*/ 7 | -webkit-box-shadow: rgba(140, 152, 164, 0.075) 0 6px 12px 0; 8 | -moz-box-shadow: rgba(140, 152, 164, 0.075) 0 6px 12px 0; 9 | box-shadow: rgba(140, 152, 164, 0.075) 0 6px 12px 0; 10 | border: 1px solid rgba(231, 234, 243, 0.7); 11 | } 12 | 13 | .card .ant-card-head-title { 14 | text-transform: capitalize; 15 | } 16 | -------------------------------------------------------------------------------- /src/components/ContactForm/ContactForm.stories.tsx: -------------------------------------------------------------------------------- 1 | import type { Meta, StoryObj } from '@storybook/react'; 2 | 3 | import { ContactForm } from './ContactForm.tsx'; 4 | 5 | // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export 6 | const meta = { 7 | title: 'Components/Contact form', 8 | component: ContactForm, 9 | parameters: { 10 | // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout 11 | layout: 'centered', 12 | }, 13 | // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs 14 | // tags: ['autodocs'], 15 | // More on argTypes: https://storybook.js.org/docs/react/api/argtypes 16 | } satisfies Meta; 17 | 18 | export default meta; 19 | type Story = StoryObj; 20 | 21 | // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args 22 | export const Default: Story = { 23 | args: {}, 24 | }; 25 | -------------------------------------------------------------------------------- /src/components/ContactForm/ContactForm.tsx: -------------------------------------------------------------------------------- 1 | import { Button, Col, Form, FormProps, Input, Row } from 'antd'; 2 | import { SendOutlined } from '@ant-design/icons'; 3 | import { useStylesContext } from '../../context'; 4 | 5 | const { TextArea } = Input; 6 | 7 | type Props = FormProps; 8 | 9 | export const ContactForm = ({ ...others }: Props) => { 10 | const stylesContext = useStylesContext(); 11 | 12 | return ( 13 |
14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |