1
- 'use client' ;
2
-
3
1
import { useRouter } from 'next/navigation' ;
4
2
5
3
import { Search } from 'lucide-react' ;
@@ -27,12 +25,12 @@ export function Hero() {
27
25
return (
28
26
< div className = "relative bg-hero-gradient " >
29
27
< div className = "z-50 flex flex-col space-y-8 justify-center items-center text-center min-h-screen pt-28 sm:pt-24" >
30
- < div className = "max-w-md space-y-5" >
31
- < h1 className = "text-5xl font-medium uppercase heading-text" >
28
+ < div className = "max-w-md space-y-5 px-4 " >
29
+ < h1 className = "text-3xl sm:text-4xl md:text- 5xl font-medium uppercase heading-text" >
32
30
Search your language
33
31
</ h1 >
34
32
< form
35
- className = "items-center w-full max-w-xs mx-auto form-control outline-none "
33
+ className = "items-center w-full max-w-xs mx-auto form-control outline-none"
36
34
onSubmit = { handleSearch }
37
35
>
38
36
< div className = "flex w-full" >
@@ -41,29 +39,29 @@ export function Hero() {
41
39
type = "text"
42
40
placeholder = "Search for your language"
43
41
className = "w-full max-w-xs bg-transparent rounded-tr-none rounded-br-none input input-bordered text-hacktoberfest-light border-hacktoberfest-light
44
- focus:border-hacktoberfest-light focus:!outline-none focus-visible:!outline-none placeholder:text-hacktoberfest-light"
42
+ focus:border-hacktoberfest-light focus:!outline-none focus-visible:!outline-none placeholder:text-hacktoberfest-light text-sm sm:text-base "
45
43
name = "search"
46
44
/>
47
45
</ div >
48
46
< button
49
47
type = "submit"
50
- className = "bg-transparent rounded-tl-none rounded-bl-none group btn btn-square text-hacktoberfest-light border-hacktoberfest-light hover:!border-hacktoberfest-light hover:bg-primary-btn-hover-gradient"
48
+ className = "bg-transparent rounded-tl-none rounded-bl-none group btn btn-square text-hacktoberfest-light border-hacktoberfest-light hover:!border-hacktoberfest-light hover:bg-primary-btn-hover-gradient flex-shrink-0 "
51
49
>
52
- < Search />
50
+ < Search size = { 16 } className = "sm:w-5 sm:h-5" />
53
51
</ button >
54
52
</ div >
55
53
</ form >
56
- < p className = "font-medium uppercase text-hacktoberfest-light" >
54
+ < p className = "font-medium uppercase text-hacktoberfest-light text-sm sm:text-base " >
57
55
Or select the programming language you would like to find
58
56
repositories for.
59
57
</ p >
60
- < div className = "flex flex-wrap gap-6 items-center justify-center " >
58
+ < div className = "flex flex-wrap gap-4 sm:gap- 6 items-center justify-center" >
61
59
{ mainLanguages . map ( language => (
62
60
< LanguageButton key = { language } language = { language } />
63
61
) ) }
64
62
</ div >
65
63
< div className = "dropdown dropdown-top" >
66
- < Button tabIndex = { 0 } className = "umami--click--otherlangs-button" >
64
+ < Button tabIndex = { 0 } className = "umami--click--otherlangs-button text-sm sm:text-base " >
67
65
Other languages
68
66
</ Button >
69
67
@@ -75,7 +73,7 @@ export function Hero() {
75
73
< li key = { language } >
76
74
< Link
77
75
href = { `/repos/${ language . toLowerCase ( ) } ` }
78
- className = "text-gray-700 hover:text-white hover:bg-hacktoberfest-blue rounded-lg transition-colors duration-200 px-3 py-2"
76
+ className = "text-gray-700 hover:text-white hover:bg-hacktoberfest-blue rounded-lg transition-colors duration-200 px-3 py-2 text-sm "
79
77
>
80
78
{ language }
81
79
</ Link >
0 commit comments