Skip to content

Commit 8631768

Browse files
committed
docs(gettingstart Page): update doc
1 parent 58b0a8f commit 8631768

File tree

4 files changed

+33
-19
lines changed

4 files changed

+33
-19
lines changed

github-automated-repos-page/new/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
</head>
99
<body>
1010
<div id="root"></div>
11-
<script type="module" src="/src/main.jsx"></script>
11+
<script type="module" src="/main.jsx"></script>
1212
</body>
1313
</html>

github-automated-repos-page/new/src/components/Loader/index.jsx

Whitespace-only changes.

github-automated-repos-page/new/src/pages/GettingStart.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export default function GettingStart() {
176176
<div className="flex gap-4 items-center mb-8">
177177
<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>
178178
<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>
179+
<h3 className="text-2xl">App.{changeCodeExample === 'javascript' ? 'jsx' : 'tsx'}</h3>
180180
</div>
181181

182182
{changeCodeExample === 'javascript' ? (

github-automated-repos-page/new/src/pages/ProjectIcons.jsx

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,19 @@ export default function IconsProject() {
1313

1414
useEffect(() => {
1515
window.scrollTo(0, 0);
16+
const id = setTimeout(() => {
17+
setFinishedTimeout(true);
18+
}, 1000);
19+
20+
return () => clearTimeout(id);
1621

1722

1823
}, []);
1924

2025
const { iconsProjects } = IconsData();
2126

27+
const [finishedTimeout, setFinishedTimeout] = useState(false);
28+
2229
const [stackIconKeys, setStackIconKeys] = useState([]);
2330
const [stackIconValues, setStackIconValues] = useState([]);
2431

@@ -69,23 +76,30 @@ export default function IconsProject() {
6976
<input className=' bg-[#70708e33] w-full rounded-lg px-4 py-2 ' placeholder='🔍 Search Icons' type='text' onChange={_handleSearch} />
7077
</div>
7178
<ul className='mt-8 flex flex-wrap gap-4 justify-center'>
72-
{stackIconValues.length > 0 ? (
73-
74-
stackIconValues.map( (item, index) => {
75-
return <Card key={index} item={item} iconKey={stackIconKeys[index]} />;
76-
})
77-
78-
) : (
79-
<div className='flex flex-col m-auto gap-4'>
80-
<p className='text-xl text-center'>
81-
Didn't find your icon? <br /> Tell us about here:{' '}
82-
<a className='flex gap-2 text-[#00979C] justify-center' href='https://github.com/DIGOARTHUR/github-automated-repos/issues/new?assignees=&labels=&template=2-feature-request.yaml'>
83-
Feature Request <FiExternalLink />
84-
</a>
85-
</p>
86-
<img className='h-[350px]' src='https://user-images.githubusercontent.com/59892368/220364871-f553109d-855f-426a-bbe5-5e1c11278003.svg'></img>
87-
</div>
88-
)}
79+
{
80+
finishedTimeout == false ? (<div>carregando</div>) : (
81+
stackIconValues.length > 0 ? (
82+
83+
stackIconValues.map((item, index) => {
84+
return <Card key={index} item={item} iconKey={stackIconKeys[index]} />;
85+
})
86+
87+
88+
) : (
89+
<div className='flex flex-col m-auto gap-4'>
90+
<p className='text-xl text-center'>
91+
Didn't find your icon? <br /> Tell us about here:{' '}
92+
<a className='flex gap-2 text-[#00979C] justify-center' href='https://github.com/DIGOARTHUR/github-automated-repos/issues/new?assignees=&labels=&template=2-feature-request.yaml'>
93+
Feature Request <FiExternalLink />
94+
</a>
95+
</p>
96+
<img className='h-[350px]' src='https://user-images.githubusercontent.com/59892368/220364871-f553109d-855f-426a-bbe5-5e1c11278003.svg'></img>
97+
</div>
98+
)
99+
)
100+
}
101+
102+
89103

90104

91105
</ul>

0 commit comments

Comments
 (0)