-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38191f4
commit af68fa5
Showing
18 changed files
with
385 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
export const homeQuery = ` | ||
{ | ||
"posts": *[_type == "blog"] | order(_updatedAt desc)[0...3]{ | ||
"slug": slug.current, | ||
title, | ||
"thumbnail": thumbnail.asset -> url, | ||
"tag": tags[0], | ||
_createdAt, | ||
featured, | ||
"isIncoming": "Incoming" in tags[], | ||
}, | ||
"projects": *[_type == "project"] | order(_updatedAt desc) [0...3]{ | ||
..., | ||
"thumbnail": thumbnail.asset -> url, | ||
"slug": slug.current, | ||
"tag": tags[0] | ||
}, | ||
"apps": *[_type == "app"] | order(_created desc){ | ||
..., | ||
"thumbnail": thumbnail.asset -> url, | ||
}, | ||
"products": *[_type == "product"] | order(_createdAt desc){ | ||
title, | ||
initialPrice, | ||
"thumbnail":images[0].asset->url, | ||
"slug": slug.current, | ||
} | ||
} | ||
` | ||
|
||
export const aboutQuery = ` | ||
{ | ||
"timelines": *[_type == "timeline"] | order(_createdAt asc){ | ||
..., | ||
"image": image.asset -> url, | ||
}, | ||
"contributions": *[_type == "contribute"] | order(_updatedAt desc) [0...6]{ | ||
"image": image.asset ->url, | ||
title, | ||
desc, | ||
url, | ||
} | ||
} | ||
` | ||
|
||
export const bioQuery = ` | ||
*[_type == "page" && slug.current == $slug][0]{ | ||
content[0]{ | ||
..., | ||
"avatar": avatar.asset -> url, | ||
links[]{ | ||
..., | ||
"customColor": customColor.hex, | ||
} | ||
} | ||
} | ||
` | ||
|
||
export const faqQuery = `*[_type == "faq"] | order(_createdAt asc){ | ||
... | ||
}` | ||
|
||
export const appsQuery = `*[_type == "app"] | order(_created desc){ | ||
..., | ||
"thumbnail": thumbnail.asset -> url, | ||
}` | ||
|
||
export const blogDetailQuery = ` | ||
{ | ||
"post": *[_type == "blog" && slug.current == $slug][0]{ | ||
..., | ||
"thumbnail": thumbnail.asset -> url, | ||
}, | ||
"related": *[_type == "blog" && slug.current != $slug && !("Incoming" in tags)] | order(_createdAt desc) [0...3]{ | ||
"slug": slug.current, | ||
title, | ||
"thumbnail": thumbnail.asset -> url, | ||
"tag": tags[0], | ||
_createdAt, | ||
featured, | ||
} | ||
} | ||
` | ||
|
||
export const blogQuery = ` | ||
{ | ||
"featured": *[_type == "blog" && featured == true][0...2]{ | ||
"slug": slug.current, | ||
title, | ||
"thumbnail": thumbnail.asset -> url, | ||
"tag": tags[0], | ||
_createdAt, | ||
featured, | ||
"isIncoming": "Incoming" in tags[], | ||
}, | ||
"latest": *[_type == "blog"] | order(_updatedAt desc){ | ||
"slug": slug.current, | ||
title, | ||
"thumbnail": thumbnail.asset -> url, | ||
"tag": tags[0], | ||
_createdAt, | ||
featured, | ||
"isIncoming": "Incoming" in tags[], | ||
} | ||
} | ||
` | ||
|
||
export const projectQuery = ` | ||
{ | ||
"projects": *[_type == "project"]{ | ||
..., | ||
"thumbnail": thumbnail.asset -> url, | ||
"slug": slug.current, | ||
"tag": tags[0] | ||
} | ||
} | ||
` | ||
|
||
export const productDetailQuery = `*[_type == "product" && slug.current == $slug][0]{ | ||
..., | ||
"slug": slug.current, | ||
"images": images[].asset -> url, | ||
}` | ||
|
||
export const productsQuery = ` | ||
{ | ||
"recomendeds": *[_type == "product"] | order(_createdAt desc)[0...4]{ | ||
title, | ||
initialPrice, | ||
"thumbnail":images[0].asset->url, | ||
"slug": slug.current, | ||
}, | ||
"products": *[_type == "product"] | order(_createdAt desc){ | ||
title, | ||
initialPrice, | ||
"thumbnail":images[0].asset->url, | ||
"slug": slug.current, | ||
} | ||
} | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
af68fa5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
personal-site-studio – ./apps/studio
personal-site-studio-git-main-nyomansunima.vercel.app
studio.nyomansunima.vercel.app
personal-site-studio-nyomansunima.vercel.app
studio.nyomansunima.com
af68fa5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
personal-site – ./apps/web
personal-site-git-main-nyomansunima.vercel.app
personal-site-nyomansunima.vercel.app
nyomansunima.com
nyomansunima.vercel.app