-
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.
Merge pull request #1 from shawkyebrahim2514/Development
Accepting the new updates in Sanity and frontend implementations
- Loading branch information
Showing
107 changed files
with
1,231 additions
and
1,033 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,20 @@ | ||
import { SanityAboutPage } from '../../Types'; | ||
import sanityClient from './client'; | ||
|
||
const getAboutPage = async () => { | ||
const query = `*[_type == "portfolio"][0].pages[_type == "aboutPage"][0] { | ||
salutation, | ||
personImage, | ||
seeking, | ||
personName, | ||
description, | ||
resume, | ||
position | ||
}`; | ||
const result: SanityAboutPage = await sanityClient.fetch(query); | ||
return result; | ||
}; | ||
|
||
export { | ||
getAboutPage, | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,16 +1,19 @@ | ||
import { SanityContact } from '../../Types'; | ||
import { SanityContactsPage } from '../../Types'; | ||
import sanityClient from './client'; | ||
|
||
const getContacts = async () => { | ||
const query = `*[_type == "contacts"]{ | ||
"imgSrc": icon.asset->url, | ||
link, | ||
name | ||
const getContactsPage = async () => { | ||
const query = `*[_type == "portfolio"][0].pages[_type == "contactsPage"][0] { | ||
title, | ||
"contacts": contacts[] -> { | ||
"imgSrc": icon.asset->url, | ||
link, | ||
name | ||
} | ||
}`; | ||
const result: SanityContact[] = await sanityClient.fetch(query); | ||
const result: SanityContactsPage = await sanityClient.fetch(query); | ||
return result; | ||
}; | ||
|
||
export { | ||
getContacts, | ||
getContactsPage, | ||
} |
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,25 @@ | ||
import { SanityEducationPage } from '../../Types'; | ||
import sanityClient from './client'; | ||
|
||
const getEducationPage = async () => { | ||
const query = `*[_type == "portfolio"][0].pages[_type == "educationPage"][0] { | ||
title, | ||
education { | ||
name, | ||
description, | ||
location, | ||
date, | ||
courses[] -> { | ||
name, | ||
description, | ||
"technologies": technologies[]->name | ||
} | ||
} | ||
}`; | ||
const result: SanityEducationPage = await sanityClient.fetch(query); | ||
return result; | ||
}; | ||
|
||
export { | ||
getEducationPage, | ||
} |
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
import { SanityExperiencePage } from '../../Types'; | ||
import sanityClient from './client'; | ||
|
||
const getExperiencePage = async () => { | ||
const query = `*[_type == "portfolio"][0].pages[_type == "experiencePage"][0] { | ||
internshipsSection { | ||
title, | ||
internships[] -> { | ||
title, | ||
subTitle, | ||
date, | ||
link, | ||
description, | ||
"technologies": technologies[]->name | ||
} | ||
}, | ||
certificatesSection { | ||
title, | ||
certificates[] -> { | ||
title, | ||
subTitle, | ||
description, | ||
date, | ||
link, | ||
} | ||
} | ||
}`; | ||
const result: SanityExperiencePage = await sanityClient.fetch(query); | ||
return result; | ||
}; | ||
|
||
export { | ||
getExperiencePage, | ||
} |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
export { getContacts } from './contacts'; | ||
export { getCertificates } from './certificates'; | ||
export { getEducationCourses } from './educationCourses'; | ||
export { getInternships } from './internships'; | ||
export { getProjects } from './projects'; | ||
export { getSkills } from './skills'; | ||
export { getContactsPage } from './contacts'; | ||
export { getEducationPage } from './education'; | ||
export { getProjectsPage } from './projects'; | ||
export { getSkillsPage } from './skills'; | ||
export { getAboutPage } from './about'; | ||
export { getExperiencePage } from './experience'; | ||
export { getNavbarData } from './navbar'; |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
import { SanityNavbarData } from '../../Types'; | ||
import sanityClient from './client'; | ||
|
||
const getNavbarData = async () => { | ||
const query = `*[_type == "portfolio"][0].navbar`; | ||
const result: SanityNavbarData = await sanityClient.fetch(query); | ||
return result; | ||
}; | ||
|
||
export { | ||
getNavbarData, | ||
} |
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 |
---|---|---|
@@ -1,19 +1,21 @@ | ||
import { SanityProject } from '../../Types'; | ||
import { SanityProjectsPage } from '../../Types'; | ||
import sanityClient from './client'; | ||
|
||
const getProjects = async () => { | ||
const query = `*[_type == "projects"]{ | ||
name, | ||
rank, | ||
links, | ||
description, | ||
"imgSrc": image.asset->url, | ||
"technologies": technologies[]->name | ||
const getProjectsPage = async () => { | ||
const query = `*[_type == "portfolio"][0].pages[_type == "projectsPage"][0] { | ||
title, | ||
"projects": projects[] -> { | ||
name, | ||
links, | ||
description, | ||
"imgSrc": image.asset->url, | ||
"technologies": technologies[]->name | ||
} | ||
}`; | ||
const result: SanityProject[] = await sanityClient.fetch(query); | ||
const result: SanityProjectsPage = await sanityClient.fetch(query); | ||
return result; | ||
}; | ||
|
||
export { | ||
getProjects, | ||
getProjectsPage, | ||
} |
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 |
---|---|---|
@@ -1,16 +1,21 @@ | ||
import { SanitySkill } from '../../Types'; | ||
import { SanitySkillsPage } from '../../Types'; | ||
import sanityClient from './client'; | ||
|
||
const getSkills = async () => { | ||
const query = `*[_type == "skills" && rank >= 0]{ | ||
"categoryName": category->name, | ||
"iconURL": icon.asset->url, | ||
name, rank | ||
const getSkillsPage = async () => { | ||
const query = `*[_type == "portfolio"][0].pages[_type == "skillsPage"][0] { | ||
title, | ||
"categories": categories[] { | ||
title, | ||
skills[] -> { | ||
"iconURL": icon.asset->url, | ||
name | ||
} | ||
} | ||
}`; | ||
const result: SanitySkill[] = await sanityClient.fetch(query); | ||
const result: SanitySkillsPage = await sanityClient.fetch(query); | ||
return result; | ||
}; | ||
|
||
export { | ||
getSkills, | ||
getSkillsPage, | ||
} |
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
export { getGithubImageURL, getResumeURL } from './ExternalResource'; | ||
|
||
export { | ||
getSkills, | ||
getEducationCourses, | ||
getInternships, | ||
getProjects, | ||
getContacts, | ||
getCertificates | ||
getSkillsPage, | ||
getEducationPage, | ||
getProjectsPage, | ||
getContactsPage, | ||
getExperiencePage, | ||
getAboutPage, | ||
getNavbarData | ||
} from './Sanity'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.