Skip to content

Commit ccb2cdd

Browse files
committed
project structured
1 parent 2b34151 commit ccb2cdd

26 files changed

Lines changed: 125 additions & 128 deletions

gatsby-node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ require("dotenv").config({
99

1010
exports.createPages = ({ actions, graphql }) => {
1111
const { createPage } = actions
12-
const postTemplate = path.resolve("src/templates/cheatsheet.js")
13-
const printTemplate = path.resolve("src/templates/printsheet.js")
12+
const postTemplate = path.resolve("src/templates/CheatSheet.js")
13+
const printTemplate = path.resolve("src/templates/PrintSheet.js")
1414

1515
let contributors = {}
1616

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import React from "react"
22
import { StaticQuery, graphql } from "gatsby"
33
import styled from "@emotion/styled"
44

5-
import Items from "./items"
5+
import Items from "./Items"
66

7-
import { Card } from "./common"
7+
import { Card } from "../common"
88

9-
import { organizedData } from "../utils"
9+
import { organizedData } from "../../utils"
1010

1111
const ContentContainer = styled.div`
1212
margin-bottom: 25px;
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import React from "react"
22
import styled from "@emotion/styled"
3-
import SearchResult from "./searchresult"
4-
import { ThinContainer, Description } from "./common"
53

6-
const IntroHomeContainer = styled.div`
4+
import SearchResult from "./SearchResult"
5+
6+
import { ThinContainer, Description } from "../common"
7+
8+
const HeroHomeContainer = styled.div`
79
display: flex;
810
flex-direction: column;
911
justify-content: center;
@@ -12,19 +14,19 @@ const IntroHomeContainer = styled.div`
1214
padding-bottom: 240px;
1315
`
1416

15-
const IntroHome = () => {
17+
const HeroHome = () => {
1618
return (
1719
<ThinContainer>
18-
<IntroHomeContainer>
20+
<HeroHomeContainer>
1921
<Description
2022
title="বাংলা ডেভেলপার চিটশিট"
2123
description="ডেভেলপারদের জন্য, ডেভেলপারদের দ্বারা, মাতৃভাষা বাংলায় সবচেয়ে বড়
2224
চিটশিট ভান্ডার"
2325
/>
2426
<SearchResult />
25-
</IntroHomeContainer>
27+
</HeroHomeContainer>
2628
</ThinContainer>
2729
)
2830
}
2931

30-
export default IntroHome
32+
export default HeroHome
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react"
22
import styled from "@emotion/styled"
33

4-
import { Container } from "./common"
4+
import { Container } from "../common"
55

66
const ItemsContainer = styled.div`
77
margin-bottom: 45px;
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ import React from "react"
22
import { StaticQuery, graphql } from "gatsby"
33
import styled from "@emotion/styled"
44

5-
import Items from "./items"
5+
import Items from "./Items"
66

7-
import { Card } from "./common"
8-
import { getData } from "../utils"
7+
import { Card } from "../common"
8+
9+
import { getData } from "../../utils"
910

1011
const Content = styled.div`
1112
.items {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const SearchResult = () => {
159159
)
160160
} else {
161161
matchNums = Object.keys(edges).filter(edge => {
162-
const data = require(`../../data/${edges[edge].node.name}`)
162+
const data = require(`../../../data/${edges[edge].node.name}`)
163163
if (
164164
String(data.title)
165165
.toLowerCase()
@@ -206,7 +206,7 @@ const SearchResult = () => {
206206
}
207207
return input.length
208208
? data.map(edge => {
209-
const { id, title, description } = require(`../../data/${
209+
const { id, title, description } = require(`../../../data/${
210210
edge.node.name
211211
}.json`)
212212
return (

0 commit comments

Comments
 (0)