Skip to content
Open
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ dist/
*.tsbuildinfo
.vercel

# Editor
.idea
.vscode

yarn.lock
2 changes: 0 additions & 2 deletions components/sections/explore/ProjectSectionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import {
Text,
Img,
GridItem,
Button,
Tooltip,
} from "@chakra-ui/react";

import NextLink from "next/link";
Expand Down
1 change: 0 additions & 1 deletion components/sections/explore/ProjectsList.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Container, Flex, useBreakpointValue } from "@chakra-ui/react";
import { Project } from "models/project";
import { totalmem } from "os";
import { FC, useMemo, useState } from "react";
import CategoryList from "./CategoryList";
import { Pagination } from "./Pagination";
Expand Down
2 changes: 1 addition & 1 deletion components/sections/explore/TitleAndSelect.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Flex, Heading, HStack, LightMode, Select } from "@chakra-ui/react";
import { Heading, HStack, LightMode, Select } from "@chakra-ui/react";
import { FC } from "react";

export type TitleAndSelectProps = {
Expand Down
6 changes: 0 additions & 6 deletions components/sections/home/RoadMapFull.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@ import {
Box,
Container,
Flex,
Grid,
Heading,
Text,
VStack,
Button,
Spacer,
} from "@chakra-ui/react";
import { useTranslation } from "next-i18next";
import Image from "next/image";
import { useEffect, useRef } from "react";
import { VerticalTimeline, VerticalTimelineElement } from "react-vertical-timeline-component";
import { CalendarIcon } from "@chakra-ui/icons";

Expand Down Expand Up @@ -290,8 +286,6 @@ function RoadmapFull({ heading }: any) {
</VStack>
<VerticalTimeline lineColor="rgba(33, 33, 33, 1)">
{roadmapList.map((item: any) => {
const percentage = getQuarterProgressInPercentage(item);
const additionaLProps = { "data-scroll-to": percentage > 0 && percentage < 100 };
return (
<VerticalTimelineElement
key={item.title}
Expand Down
5 changes: 1 addition & 4 deletions components/sections/home/Roadmap.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Show, Box, Container, Button, Flex, Grid, Heading, Text, VStack } from "@chakra-ui/react";
import { Show, Box, Container, Button, Flex, Heading, Text, VStack } from "@chakra-ui/react";
import { useTranslation } from "next-i18next";
import Image from "next/image";
import { useEffect, useRef } from "react";
import { VerticalTimeline, VerticalTimelineElement } from "react-vertical-timeline-component";
import { CalendarIcon } from "@chakra-ui/icons";
import NextLink from "next/link";
Expand Down Expand Up @@ -120,8 +119,6 @@ function Roadmap() {
</VStack>
<VerticalTimeline lineColor="rgba(33, 33, 33, 1)">
{roadmapList.map((item: any) => {
const percentage = getQuarterProgressInPercentage(item);
const additionaLProps = { "data-scroll-to": percentage > 0 && percentage < 100 };
return (
<VerticalTimelineElement
key={item.title}
Expand Down
3 changes: 1 addition & 2 deletions components/sections/home/SHMTokenomics.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Box, Container, Flex, Grid, GridItem, HStack, Text, VStack } from "@chakra-ui/react";
import { Box, Container, Grid, GridItem, HStack, Text, VStack } from "@chakra-ui/react";
import { getPercentage } from "@shm/utils";
import SectionHeading from "components/common/SectionHeading";
import { useTranslation } from "next-i18next";
import Image from "next/image";
import NewsletterInput from "../../common/NewsletterInput";

const bars = [
Expand Down
1 change: 0 additions & 1 deletion components/sections/home/ShardeumInNews.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Box, Container, Flex, SimpleGrid } from "@chakra-ui/react";
import React from "react";
import JoinNewsletter from "components/common/JoinNewsletter";
import JoinNewsletterHomePage from "components/common/JoinNewsletterHomePage";
import NewsAppearance from "components/common/NewsAppearance";
import VisitBlog from "components/common/VisitBlog";
Expand Down
10 changes: 0 additions & 10 deletions pages/404.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
import { Box, Button, Stack, Flex, Center, Text, SimpleGrid, Link } from "@chakra-ui/react";
import type { NextPage } from "next";
import Hero from "components/sections/Hero";
import Page404 from "components/sections/Page404";
import Roadmap from "../components/sections/alphanet/Roadmap";
import UseCases from "components/sections/UseCases";
import FAQs from "components/sections/FAQs";
import Image from "next/image";
import { AlphanetFeatureIcons } from "@shm/Icons";
import { NextSeo } from "next-seo";
import { CLAIM_100_SHM_LINK, DOCS_URL } from "constants/links";
import { useTranslation } from "next-i18next";
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import WhatCanYoDo from "@shm/components/sections/WhatCanYouDo";
import SlidingStats from "@shm/components/common/SlidingStats";
import { IconGlobe, IconTransaction, IconWeb3 } from "@shm/Icons";
import NextLink from "next/link";

Expand Down
5 changes: 1 addition & 4 deletions pages/ecosystem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import Head from "next/head";

import type { GetServerSidePropsContext, InferGetServerSidePropsType, NextPage } from "next";

import { Box, Button, Stack } from "@chakra-ui/react";
import { Button, Stack } from "@chakra-ui/react";
import ResponsiveHero from "@shm/components/sections/ResponsiveHero";
import JoinCommunity from "@shm/components/sections/JoinCommunity";
import ProjectsList from "@shm/components/sections/explore/ProjectsList";
import TrendingProjects from "@shm/components/sections/explore/TrendingProjects";
import NewestProjects from "@shm/components/sections/explore/NewProjects";
import { useTranslation } from "next-i18next";

Expand All @@ -16,8 +15,6 @@ import { getSHMProjects, getUserUpvotedProjects } from "utils/api";
import { upvoteProject } from "services/explore.service";
import SigninContext from "context/signin-window.context";
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import { CLAIM_100_SHM_LINK, REPORT_BUGS } from "constants/links";
import { Helmet } from "react-helmet";

import { useRouter } from "next/router";
import moment from "moment";
Expand Down