@@ -8,7 +8,8 @@ import fill_description from "../assets/imgs/fill_description.png"
88import fill_repositoryName from "../assets/imgs/fill_repositoryName.png"
99import fill_topics from "../assets/imgs/fill_topics.png"
1010import fill_homepage from "../assets/imgs/fill_homepage.png"
11-
11+ import typescript_logo from "../assets/imgs/typescript_logo.svg"
12+ import javascript_logo from "../assets/imgs/javascript_logo.svg"
1213const highlighterStyle = {
1314 paddingLeft : '5px' ,
1415
@@ -59,7 +60,7 @@ export default function GettingStart() {
5960 < hr />
6061 < p className = "text-xl mt-8" > This library automates the view your GitHub projects on your website in one place. But how? Make the code configuration only once in your application with github-automated-repos, and manage the view of your projects on GitHub in the Topics field. </ p >
6162 < div className = "bg-[#4e5668fd] p-10 my-8 rounded-3xl" >
62- < h3 className = "text-2xl" > Why use?</ h3 >
63+ < h3 className = "text-2xl mb-2 " > Why use?</ h3 >
6364 < p >
6465 < ul className = "list-disc" >
6566 < li > Control the visualization of your projects in one place.</ li >
@@ -164,18 +165,18 @@ export default function GettingStart() {
164165
165166 < div >
166167 < div id = "codeExample" className = "h-12" />
167- < h2 className = "text-3xl mt-8" > Code Example</ h2 >
168- < p style = { { color : 'red' , backgroundColor : '#c90e0e2f' } } >
168+ < h2 className = "text-3xl mt-8 mb-8 " > Code Example</ h2 >
169+ < p className = "mb-2" style = { { color : 'red' , backgroundColor : '#c90e0e2f' } } >
169170 Don't forget to fill the keyword fields (determined by you) and the your github username.
170171 </ p >
171172 < Highlighter > { githubUsername } </ Highlighter >
172173 < br />
173174 < Highlighter > { keywordCode } </ Highlighter >
174175 < br />
175- < div className = "flex gap-4 items-center mb-2 " >
176- < button onClick = { ( ) => setChangeCodeExample ( 'javascript' ) } className = "bg-[#f3da35a8] w-36 h-12 border-solid border-2 border-white rounded-lg flex justify-center items-center gap-2" > Javascript < img className = "" src = '../../../src/assets/imgs/github_icon.svg' alt = 'logoLib' /> </ button >
177- < button onClick = { ( ) => setChangeCodeExample ( 'typescript' ) } className = "bg-[#3179c64b] w-36 h-12 border-solid border-2 border-white rounded-lg flex justify-center items-center gap-2" > Typescript < img className = "" src = '../../../src/assets/imgs/github_icon.svg' alt = 'logoLib' /> </ button >
178- < h3 > App.{ changeCodeExample === 'javascript' ? 'js' : 'tsx' } </ h3 >
176+ < div className = "flex gap-4 items-center mb-8 " >
177+ < button onClick = { ( ) => setChangeCodeExample ( 'javascript' ) } className = "bg-[#f3da35a8] w-36 h-12 border-solid border-2 border-white rounded-lg flex justify-center items-center gap-2" > Javascript < img className = "" src = { javascript_logo } alt = 'logoLib' /> </ button >
178+ < button onClick = { ( ) => setChangeCodeExample ( 'typescript' ) } className = "bg-[#3179c64b] w-36 h-12 border-solid border-2 border-white rounded-lg flex justify-center items-center gap-2" > Typescript < img className = "" src = { typescript_logo } alt = 'logoLib' /> </ button >
179+ < h3 className = "text-2xl" > App.{ changeCodeExample === 'javascript' ? 'js' : 'tsx' } </ h3 >
179180 </ div >
180181
181182 { changeCodeExample === 'javascript' ? (
@@ -207,7 +208,7 @@ const keywordCode = ` ...
207208
208209const githubUsername = ` ...
209210 {/*fill in the field below in the code example.*/}
210- fetch('https://api.github.com/users/insertUsernameGithubHere /repos')
211+ fetch('https://api.github.com/users/usernameGitHub /repos?sort=created&per_page=999 ')
211212 ...
212213` ;
213214
@@ -226,7 +227,7 @@ const codeExampleJSX = `
226227
227228 useEffect(() => {
228229 {/*Put here your github Name*/ }
229- fetch('https://api.github.com/users/insertUsernameGithubHere /repos')
230+ fetch('https://api.github.com/users/usernameGitHub /repos?sort=created&per_page=999 ')
230231 .then(response => response.json())
231232 .then(data => setRepository(dataReposGithub(data, 'insertKeyWordHere'))); {/*<-- keyWord*/}
232233 }, [])
@@ -290,7 +291,7 @@ const codeExampleTSX = `
290291
291292 useEffect(() => {
292293 {/*Put here your github Name*/ }
293- fetch('https://api.github.com/users/insertUsernameGithubHere /repos')
294+ fetch('https://api.github.com/users/usernameGitHub /repos?sort=created&per_page=999 ')
294295 .then(response => response.json())
295296 .then(data => setRepository(dataReposGithub(data, 'insertKeyWordHere'))); {/*<-- keyWord*/}
296297 }, [])
0 commit comments