-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
360 additions
and
487 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import "../../styles/BrowseAniMan.scoped.scss"; | ||
|
||
import { | ||
anime_data, | ||
genres, | ||
year, | ||
studio, | ||
season, | ||
episodes, | ||
manga_data, | ||
publishing, | ||
country_origin, | ||
} from "../../data"; | ||
|
||
import { Link } from "react-router-dom"; | ||
|
||
const BrowseAniMan = ({ isanime }) => { | ||
return ( | ||
<> | ||
{isanime ? ( | ||
<div className=" cards_container grid grid-cols-6 gap-x-6 gap-y-6 p-6 "> | ||
{anime_data.map((item) => ( | ||
<Link | ||
to="/detailspage" | ||
state={{ id: item.anime_id, anime: true }} | ||
key={item.anime_id} | ||
> | ||
<div className="card"> | ||
<div className="card_img"> | ||
<img src={item.image} /> | ||
</div> | ||
|
||
<div className="flex flex-row gap-x-2 mt-3"> | ||
{/* check index.css, for global use, vertical rectangle.. */} | ||
<div className="rectangle_smaller"></div> | ||
|
||
<p className="title">{item.title}</p> | ||
|
||
{/*TODO you add favorite button, and for it to work properly */} | ||
</div> | ||
</div> | ||
</Link> | ||
))} | ||
</div> | ||
) : ( | ||
<div className=" cards_container grid grid-cols-6 gap-x-6 gap-y-6 p-6 "> | ||
{manga_data.map((item) => ( | ||
<Link | ||
to="/detailspage" | ||
state={{ id: item.manga_id, anime: false }} | ||
key={item.manga_id} | ||
> | ||
<div className="card"> | ||
<div className="card_img"> | ||
<img src={item.image} /> | ||
</div> | ||
|
||
<div className="flex flex-row gap-x-2 mt-3"> | ||
{/* check index.css, for global use, vertical rectangle.. */} | ||
<div className="rectangle_smaller"></div> | ||
|
||
<p className="title">{item.title}</p> | ||
|
||
{/*TODO you add favorite button, and for it to work properly */} | ||
</div> | ||
</div> | ||
</Link> | ||
))} | ||
</div> | ||
)} | ||
</> | ||
); | ||
}; | ||
|
||
export { BrowseAniMan }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
|
||
|
||
import "../../styles/FilterSearch.scoped.scss"; | ||
|
||
import { anime_data, manga_data, genres, year } from "../../data"; | ||
|
||
const FilterSearchExplore = () => { | ||
return <> | ||
|
||
|
||
|
||
{/*TODO apply this filter. should react 'onChange'. and results should be displayed on whole page (without these sections..) */} | ||
<div className="filter grid grid-cols-6 p-6 "> | ||
<div className="flex flex-col justify-start ml-3 mt-3"> | ||
<p className="filter_txt">Search:</p> | ||
|
||
<div className="search-container"> | ||
<div className="input-container"> | ||
<input type="text" placeholder="Search" /> | ||
<button className="search-icon"> | ||
<i className="bx bx-search-alt-2"></i> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className="flex flex-col justify-start ml-3 mt-3"> | ||
<p className="filter_txt">Genres:</p> | ||
|
||
<select className="dropdown-select_g1" multiple> | ||
{/* all genres possible */} | ||
|
||
{genres.map((item, index) => ( | ||
<option value={item} key={index}> | ||
{item} | ||
</option> | ||
))} | ||
</select> | ||
</div> | ||
|
||
<div className="flex flex-col justify-start ml-3 mt-3"> | ||
<p className="filter_txt">Year:</p> | ||
|
||
<select className="dropdown-select"> | ||
<option disabled selected> | ||
Year | ||
</option> | ||
{/* years from 1940 to 2023 */} | ||
|
||
{year.map((item, index) => ( | ||
<option value={item} key={index}> | ||
{item} | ||
</option> | ||
))} | ||
</select> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
</>; | ||
}; | ||
|
||
export { FilterSearchExplore }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.