Skip to content

Commit 885106b

Browse files
committed
fix: package.json
1 parent a0c6fa0 commit 885106b

File tree

8 files changed

+59
-59
lines changed

8 files changed

+59
-59
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"vite-plugin-svgr": "^4.2.0"
5454
},
5555
"scripts": {
56-
"lint": "echo f",
56+
"lint": "echo .",
5757
"test": "node ./test/RunTests.js",
5858
"build": "vite build",
5959
"start": "vite",
Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
import { Link } from "react-router-dom";
22

33
export default function HeroSection() {
4-
return (
5-
<div className='py-[57px] flex items-center gap-3 justify-center flex-col px-5'>
6-
<h1 className='text-accent-600 text-lg sm:text-xl font-semibold'>React ChatBotify</h1>
7-
<h2 className='text-accent-900 font-bold text-3xl sm:text-5xl'>Theme Gallery</h2>
8-
<h3 className='text-accent-600 sm:text-base text-sm text-center w-[250px]'>
9-
Browse, rate and share themes for your chatbot today and more!
10-
</h3>
11-
<div className="flex mt-6 flex-col items-center sm:flex-row gap-2">
4+
return (
5+
<div className='py-[57px] flex items-center gap-3 justify-center flex-col px-5'>
6+
<h1 className='text-accent-600 text-lg sm:text-xl font-semibold'>React ChatBotify</h1>
7+
<h2 className='text-accent-900 font-bold text-3xl sm:text-5xl'>Theme Gallery</h2>
8+
<h3 className='text-accent-600 sm:text-base text-sm text-center w-[250px]'>
9+
Browse, rate and share themes for your chatbot today and more!
10+
</h3>
11+
<div className="flex mt-6 flex-col items-center sm:flex-row gap-2">
1212

1313

14-
<Link to={"/themes"}>
15-
<button className='bg-accent-900 hover:bg-gradient-to-r hover:from-secondary-900 px-2 py-1 text-[14px] hover:to-primary-600 transition-colors duration-300 hover:text-accent-900 sm:px-4 sm:py-2 sm:text-lg rounded-lg'>
16-
Themes
17-
</button>
18-
</Link>
19-
<Link to={"/plugins"}>
20-
<button className='bg-accent-900 hover:bg-gradient-to-r hover:from-secondary-900 px-2 py-1 text-[14px] hover:to-primary-600 transition-colors duration-300 hover:text-accent-900 sm:px-4 sm:py-2 sm:text-lg rounded-lg'>
21-
Plugins
22-
</button>
23-
</Link>
24-
<Link to={"https://react-chatbotify.com"}>
25-
<button className='bg-accent-900 hover:bg-gradient-to-r hover:from-secondary-900 px-2 py-1 text-[14px] hover:to-primary-600 transition-colors duration-300 hover:text-accent-900 sm:px-4 sm:py-2 sm:text-lg rounded-lg'>
26-
Documentation
27-
</button>
28-
</Link>
29-
</div>
30-
</div>
31-
)
14+
<Link to={"/themes"}>
15+
<button className='bg-accent-900 hover:bg-gradient-to-r hover:from-secondary-900 px-2 py-1 text-[14px] hover:to-primary-600 transition-colors duration-300 hover:text-accent-900 sm:px-4 sm:py-2 sm:text-lg rounded-lg'>
16+
Themes
17+
</button>
18+
</Link>
19+
<Link to={"/plugins"}>
20+
<button className='bg-accent-900 hover:bg-gradient-to-r hover:from-secondary-900 px-2 py-1 text-[14px] hover:to-primary-600 transition-colors duration-300 hover:text-accent-900 sm:px-4 sm:py-2 sm:text-lg rounded-lg'>
21+
Plugins
22+
</button>
23+
</Link>
24+
<Link to={"https://react-chatbotify.com"}>
25+
<button className='bg-accent-900 hover:bg-gradient-to-r hover:from-secondary-900 px-2 py-1 text-[14px] hover:to-primary-600 transition-colors duration-300 hover:text-accent-900 sm:px-4 sm:py-2 sm:text-lg rounded-lg'>
26+
Documentation
27+
</button>
28+
</Link>
29+
</div>
30+
</div>
31+
)
3232
}
3333

src/components/LandingPage/ImageHeroSection.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import img2 from './../../assets/images/LandingPage/theme-2.png'
33
import img3 from './../../assets/images/LandingPage/theme-3.png'
44
import img4 from './../../assets/images/LandingPage/theme-4.png'
55
export default function ImageHeroSection() {
6-
return (
7-
<div className='flex justify-center gap-6'>
8-
<img src={img1} className='w-[127px] h-[120px] -rotate-6 rounded-lg bg-cover' />
9-
<img src={img2} className='w-[127px] h-[120px] rotate-6 rounded-lg bg-cover' />
10-
<img src={img3} className='w-[127px] h-[120px] -rotate-6 rounded-lg bg-cover' />
11-
<img src={img4} className='w-[127px] h-[120px] rotate-6 rounded-lg bg-cover' />
12-
</div>
13-
)
6+
return (
7+
<div className='flex justify-center gap-6'>
8+
<img src={img1} className='w-[127px] h-[120px] -rotate-6 rounded-lg bg-cover' />
9+
<img src={img2} className='w-[127px] h-[120px] rotate-6 rounded-lg bg-cover' />
10+
<img src={img3} className='w-[127px] h-[120px] -rotate-6 rounded-lg bg-cover' />
11+
<img src={img4} className='w-[127px] h-[120px] rotate-6 rounded-lg bg-cover' />
12+
</div>
13+
)
1414
}
1515

src/components/SearchBar/SearchBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ type Props = {
1010
*/
1111
const SearchBar: React.FC<Props> = ({ onSearch }) => {
1212
// tracks current user search query
13-
const [searchParams] = useSearchParams()
14-
// initialize both query and previous query with searchParam if exists
13+
const [searchParams] = useSearchParams()
14+
// initialize both query and previous query with searchParam if exists
1515
const [query, setQuery] = useState(() => searchParams.get('searchQuery') || "");
1616
const [previousQuery, setPreviousQuery] = useState(() => searchParams.get('searchQuery') || "");
1717

src/hooks/useFetchThemes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const useFetchThemes = (
3737

3838
const response = await galleryApiFetch(finalUrl);
3939
const result = await response.json();
40-
apiThemes = result.data;
40+
apiThemes = result.data;
4141
} else {
4242
apiThemes = Placeholders.themes;
4343
}

src/pages/Home.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ const HomePage = () => {
2222

2323
return (
2424
<div className="relative overflow-hidden h-screen bg-accent-50 w-full">
25-
<div className='absolute size-[60%] sm:size-[60%] md:size-[60%] bg-gradient-to-r from-secondary-900 -rotate-[30deg] to-primary-600 rounded-full z-0 top-[50%] left-[50%] -translate-x-[50%] -translate-y-[50%] blur-[150px] sm:blur-[200px]'>
26-
</div>
27-
<div className='relative z-1'>
28-
<NavigationBar />
29-
<HeroSection />
30-
<ImageHeroSection />
31-
</div>
25+
<div className='absolute size-[60%] sm:size-[60%] md:size-[60%] bg-gradient-to-r from-secondary-900 -rotate-[30deg] to-primary-600 rounded-full z-0 top-[50%] left-[50%] -translate-x-[50%] -translate-y-[50%] blur-[150px] sm:blur-[200px]'>
26+
</div>
27+
<div className='relative z-1'>
28+
<NavigationBar />
29+
<HeroSection />
30+
<ImageHeroSection />
31+
</div>
3232

3333

3434
</div>

src/pages/Themes.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import { useSearchParams } from 'react-router-dom';
1616
* // todo: dynamically load themes as user scrolls instead of fetching wholesale from backend
1717
*/
1818
const Themes: React.FC = () => {
19-
//search param hook to access URL
20-
const [searchParams, setSearchParams] = useSearchParams()
19+
//search param hook to access URL
20+
const [searchParams, setSearchParams] = useSearchParams()
2121

2222
// search query for filtering themes to show
2323
const [searchQuery, setSearchQuery] = useState(()=> searchParams.get('searchQuery') || "");
@@ -34,13 +34,13 @@ const Themes: React.FC = () => {
3434
* @param query query user inputted
3535
*/
3636
const handleSearch = (query: string) => {
37-
if(query === ""){
38-
searchParams.delete('searchQuery')
39-
}
40-
else {
41-
searchParams.set('searchQuery',query)
42-
}
43-
setSearchParams(searchParams)
37+
if(query === ""){
38+
searchParams.delete('searchQuery')
39+
}
40+
else {
41+
searchParams.set('searchQuery',query)
42+
}
43+
setSearchParams(searchParams)
4444
setSearchQuery(query);
4545
}
4646

src/services/apiService.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
* @param options additional options passed to fetch
66
*/
77
const galleryApiFetch = (url: string, options = {}) => {
8-
return fetch(url, {
9-
...options,
10-
credentials: 'include',
11-
});
8+
return fetch(url, {
9+
...options,
10+
credentials: 'include',
11+
});
1212
}
1313

1414
export {
15-
galleryApiFetch
15+
galleryApiFetch
1616
}

0 commit comments

Comments
 (0)