Skip to content

Commit

Permalink
feature/search_result
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Mar 30, 2023
1 parent 7b65acc commit 153ccb2
Show file tree
Hide file tree
Showing 20 changed files with 775 additions and 287 deletions.
23 changes: 21 additions & 2 deletions src/GlobalStyle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ const GlobalStyle = createGlobalStyle`
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
html {
font-size: 62.5%; // 1rem = 10px 로 변경
color : hsl(240, 3.8461538461538463%, 10.196078431372548%);
width: 100%;
max-height: calc(var(--var,1vh) * 100);
}
body {
background-color: #f9f9f9;
font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI',
'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
Expand Down Expand Up @@ -131,7 +132,7 @@ const GlobalStyle = createGlobalStyle`
line-height: 2.8rem;
}
.filter-smaill {
.filter-small {
font-size: 1.5rem;
line-height: 2.8rem;
}
Expand All @@ -140,6 +141,24 @@ const GlobalStyle = createGlobalStyle`
color : #AFB1B6;
}
.text-subdark {
color :#61646B;
}
.main-text {
color : #4DB495;
}
.body-small2 {
font-size : 0.9rem;
line-height: 1.6rem;
}
.px {
padding-left :2rem;
padding-right: 2rem;
}
`

export default GlobalStyle
4 changes: 2 additions & 2 deletions src/api/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
*/
const documents = {
"\n fragment PlaceInfo on Place {\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n etc\n basicInfo\n category\n id\n }\n": types.PlaceInfoFragmentDoc,
"\n query getPlace {\n places {\n ...PlaceInfo\n __typename\n }\n }\n \n": types.GetPlaceDocument,
"\n query GetSearchList(\n $before: String\n $after: String\n $first: Int\n $last: Int\n $categories: [String!]\n $parkingAvailable: Boolean\n $wheelChairRentable: Boolean\n $elevatorAvailable: Boolean\n $toiletAvailable: Boolean\n $pathExists: Boolean\n $needCompanion: Boolean!\n $coordinates: CoordinateInput\n ) {\n places(\n before: $before\n after: $after\n first: $first\n last: $last\n categories: $categories\n parkingAvailable: $parkingAvailable\n wheelChairRentable: $wheelChairRentable\n elevatorAvailable: $elevatorAvailable\n toiletAvailable: $toiletAvailable\n pathExists: $pathExists\n needCompanion: $needCompanion\n coordinates: $coordinates\n ) {\n pageInfo {\n startCursor\n endCursor\n hasNextPage\n hasNextPage\n }\n edges {\n node {\n id\n name\n address\n thumbnails\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n category\n needCompanion\n distance\n tel\n }\n cursor\n }\n totalCount\n }\n }\n": types.GetSearchListDocument,
};

/**
Expand All @@ -38,7 +38,7 @@ export function graphql(source: "\n fragment PlaceInfo on Place {\n parkingA
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(source: "\n query getPlace {\n places {\n ...PlaceInfo\n __typename\n }\n }\n \n"): (typeof documents)["\n query getPlace {\n places {\n ...PlaceInfo\n __typename\n }\n }\n \n"];
export function graphql(source: "\n query GetSearchList(\n $before: String\n $after: String\n $first: Int\n $last: Int\n $categories: [String!]\n $parkingAvailable: Boolean\n $wheelChairRentable: Boolean\n $elevatorAvailable: Boolean\n $toiletAvailable: Boolean\n $pathExists: Boolean\n $needCompanion: Boolean!\n $coordinates: CoordinateInput\n ) {\n places(\n before: $before\n after: $after\n first: $first\n last: $last\n categories: $categories\n parkingAvailable: $parkingAvailable\n wheelChairRentable: $wheelChairRentable\n elevatorAvailable: $elevatorAvailable\n toiletAvailable: $toiletAvailable\n pathExists: $pathExists\n needCompanion: $needCompanion\n coordinates: $coordinates\n ) {\n pageInfo {\n startCursor\n endCursor\n hasNextPage\n hasNextPage\n }\n edges {\n node {\n id\n name\n address\n thumbnails\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n category\n needCompanion\n distance\n tel\n }\n cursor\n }\n totalCount\n }\n }\n"): (typeof documents)["\n query GetSearchList(\n $before: String\n $after: String\n $first: Int\n $last: Int\n $categories: [String!]\n $parkingAvailable: Boolean\n $wheelChairRentable: Boolean\n $elevatorAvailable: Boolean\n $toiletAvailable: Boolean\n $pathExists: Boolean\n $needCompanion: Boolean!\n $coordinates: CoordinateInput\n ) {\n places(\n before: $before\n after: $after\n first: $first\n last: $last\n categories: $categories\n parkingAvailable: $parkingAvailable\n wheelChairRentable: $wheelChairRentable\n elevatorAvailable: $elevatorAvailable\n toiletAvailable: $toiletAvailable\n pathExists: $pathExists\n needCompanion: $needCompanion\n coordinates: $coordinates\n ) {\n pageInfo {\n startCursor\n endCursor\n hasNextPage\n hasNextPage\n }\n edges {\n node {\n id\n name\n address\n thumbnails\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n category\n needCompanion\n distance\n tel\n }\n cursor\n }\n totalCount\n }\n }\n"];

export function graphql(source: string) {
return (documents as any)[source] ?? {};
Expand Down
Loading

0 comments on commit 153ccb2

Please sign in to comment.