This repository was archived by the owner on Aug 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +48
-11
lines changed Expand file tree Collapse file tree 7 files changed +48
-11
lines changed Original file line number Diff line number Diff line change 1+ User-agent: *
2+ Disallow:
Original file line number Diff line number Diff line change @@ -98,9 +98,13 @@ const Header = forwardRef((props, ref) => {
9898 const handelChange = ( e ) => {
9999 const val = e . target . value ;
100100 setInputVal ( val ) ;
101- props . handelChanges ( val ) ;
102101 } ;
103102
103+
104+ const handleSearchSubmit = ( ) => {
105+ props . handelChanges ( inputVal ) ;
106+ }
107+
104108 useImperativeHandle ( ref , ( ) => ( {
105109 emptySearch ( ) {
106110 setInputVal ( "" ) ;
@@ -177,7 +181,11 @@ const Header = forwardRef((props, ref) => {
177181 placeholder = "I am looking for...."
178182 value = { inputVal }
179183 onChange = { handelChange }
184+ required
180185 />
186+ < button className = "search-submit" onClick = { handleSearchSubmit } type = "submit" >
187+ < i class = "fa-solid fa-magnifying-glass" >
188+ </ i > </ button >
181189 </ div >
182190 { ! isLoggedIn ?
183191 < li className = "login-tab" >
@@ -207,6 +215,9 @@ const Header = forwardRef((props, ref) => {
207215 < div className = "mobile-search" ref = { menuRef } >
208216 < div className = "search-field" >
209217 < input type = "text" className = { `active-search-mobile ${ searchActive ? 'active' : '' } ` } placeholder = "I am looking for" value = { inputVal } onChange = { handelChange } />
218+ < button className = { `search-submit-mobile ${ searchActive ? 'active' : '' } ` } onClick = { handleSearchSubmit } type = "submit" >
219+ < i class = "fa-solid fa-magnifying-glass" >
220+ </ i > </ button >
210221 < div className = "field-icon-search" onClick = { MobileView } >
211222 < ion-icon name = "search-outline" > </ ion-icon >
212223 </ div >
Original file line number Diff line number Diff line change @@ -13,15 +13,19 @@ export default function SearchJSX(props) {
1313 { Object . keys ( props . searchResult ) . length === 0 ? (
1414 < div align = "center" >
1515 < h4 className = "no-results" style = { {
16- fontSize : "35px" , paddingTop :"20px" ,
16+ fontSize : "35px" , paddingTop : "20px" ,
1717 } } > No Results found</ h4 >
1818 < br /> < br />
1919 </ div >
2020 ) : (
2121 < div align = "center" >
22+ {
23+ window . innerWidth > 600 ? null :< > < br /> < br /> < br /> </ >
24+ }
25+
2226 < div className = "movies-grid" >
23- { props . searchResult ?. results ?. map ( ( rec ) => (
24- < Card rec = { rec } key = { rec . id } ep = "false" handelClick = { handelClick } />
27+ { props . searchResult ?. results ?. map ( ( rec ) => (
28+ < Card rec = { rec } key = { rec . id } ep = "false" handelClick = { handelClick } />
2529 ) ) }
2630 </ div >
2731 </ div >
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const Movie = (props) => {
4141 < section className = "movies" >
4242 < div className = "filter-bar" >
4343 < div className = "heading" >
44- < h3 > Anime Movies</ h3 >
44+ < h3 > Movies</ h3 >
4545 </ div >
4646 </ div >
4747 < div className = "movies-grid" ref = { ref } >
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const TopAnimeAiring = (props) => {
2121
2222 return (
2323 < >
24- < Helmet >
24+ < Helmet >
2525 < meta property = "og:title" content = "AnimeTrix" />
2626 < meta property = "og:description" content = "AnimeTrix is a Free Anime streaming website which you can watch English Subbed and Dubbed Anime online without creating any Account" />
2727 < meta property = "og:image" content = "https://user-images.githubusercontent.com/95211406/234815538-17642467-574a-42ec-96d1-75c2a67bebd3.png" />
@@ -36,13 +36,13 @@ const TopAnimeAiring = (props) => {
3636 < title > Watch Download Anime For Free On AnimeTrix</ title >
3737 </ Helmet >
3838 { Object . keys ( props . recent ) . length === 0 ? (
39- < OtherPagesCard title = "Top-Airing" />
39+ < OtherPagesCard title = "Top-Airing" />
4040 ) : (
4141 < >
4242 < section className = "movies" >
4343 < div className = "filter-bar" >
4444 < div className = "heading" >
45- < h3 > Top-Airing </ h3 >
45+ < h3 > Trending </ h3 >
4646 </ div >
4747 </ div >
4848
Original file line number Diff line number Diff line change 114114 }
115115}
116116
117- @media (max-width : 535 px ){
117+ @media (max-width : 550 px ){
118118 .card-head {
119119 height : 300px ;
120120 }
Original file line number Diff line number Diff line change 7272 color : var (--text-color );
7373 width : 300px ;
7474}
75-
75+ .search-submit {
76+ background : transparent;
77+ padding : 2px ;
78+ color : var (--button-color );
79+ position : absolute;
80+ left : 86% ;
81+ font-size : 20px ;
82+ top : calc (35% - 10px );;
83+ botto m: 20px;
84+ }
85+ .search-submit-mobile {
86+ display : none;
87+ }
88+ .search-submit-mobile .active {
89+ display : block;
90+ position : absolute;
91+ bottom : calc (90% - 139px );
92+ right : 16% ;
93+ font-size : 25px ;
94+ background : transparent;
95+ z-index : 999 ;
96+ }
7697.search-btn {
7798 background : none;
7899 border : none;
270291 left : 0 ;
271292 right : 0 ;
272293 margin : auto;
273- z-index : 9999 ;
274294 border-radius : 14px ;
275295 background-color : var (--search-background );
276296 color : # fff ;
You can’t perform that action at this time.
0 commit comments