-
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.
Note: probably you'll need to have one component for all those 3 parts, Anime, Explore, Manga. They just have little variations, check what are those.. This will serve well, with responsive design, as it will go somewhat cleaner, there's still work to do.
- Loading branch information
Showing
4 changed files
with
163 additions
and
126 deletions.
There are no files selected for viewing
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,37 @@ | ||
import "../../styles/Anime.scoped.scss"; | ||
|
||
import { anime_data, genres, year, studio, season, episodes } from "../../data"; | ||
import { Link } from "react-router-dom"; | ||
|
||
const BrowseAnime = () => { | ||
return ( | ||
<> | ||
<div className=" cards_container1 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_img1"> | ||
<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="title8">{item.title}</p> | ||
|
||
{/*TODO you add favorite button, and for it to work properly */} | ||
</div> | ||
</div> | ||
</Link> | ||
))} | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export { BrowseAnime }; |
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,113 @@ | ||
import "../../styles/Anime.scoped.scss"; | ||
|
||
import { anime_data, genres, year, studio, season, episodes } from "../../data"; | ||
|
||
const FilterSearch = () => { | ||
return <> | ||
|
||
|
||
<div className="filter1 grid grid-cols-6 p-6 "> | ||
<div className="flex flex-col justify-start ml-3 mt-3"> | ||
<p className="filter_txt1">Search:</p> | ||
|
||
<div className="search-container"> | ||
<div className="input-container1"> | ||
<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_txt1">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_txt1">Year:</p> | ||
|
||
<select className="dropdown-select1"> | ||
<option disabled selected> | ||
Year | ||
</option> | ||
{/* years from 1940 to 2023 */} | ||
|
||
{year.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_txt1">Studio:</p> | ||
|
||
<select className="dropdown-select1"> | ||
<option selected disabled> | ||
Studio | ||
</option> | ||
|
||
{/* choose studios */} | ||
|
||
{studio.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_txt1">Seasons:</p> | ||
|
||
<select className="dropdown-select1"> | ||
<option selected disabled> | ||
Seasons | ||
</option> | ||
|
||
{/* choose studios */} | ||
|
||
{season.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_txt1">Episodes:</p> | ||
|
||
<select className="dropdown-select1"> | ||
<option selected disabled> | ||
Episodes | ||
</option> | ||
|
||
{/* choose studios */} | ||
|
||
{episodes.map((item, index) => ( | ||
<option value={item} key={index}> | ||
{item} | ||
</option> | ||
))} | ||
</select> | ||
</div> | ||
</div> | ||
|
||
|
||
</>; | ||
}; | ||
|
||
export { FilterSearch }; |
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