Update Cards and SearchSingle, AnimeSearchSingle (#22)
added margin to show the rounded corners of each cards added styling to the search ( searching in sources )
This commit is contained in:
@@ -42,6 +42,9 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
flex: '0 0 auto',
|
flex: '0 0 auto',
|
||||||
marginRight: 16,
|
marginRight: 16,
|
||||||
},
|
},
|
||||||
|
card: {
|
||||||
|
margin: '10px',
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
interface IProps{
|
interface IProps{
|
||||||
@@ -79,7 +82,7 @@ export default function EpisodeCard(props: IProps) {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<li>
|
<li>
|
||||||
<Card>
|
<Card className={classes.card}>
|
||||||
<CardContent className={classes.root}>
|
<CardContent className={classes.root}>
|
||||||
<Link
|
<Link
|
||||||
to={`/anime/${episode.animeId}/episode/${episode.index}`}
|
to={`/anime/${episode.animeId}/episode/${episode.index}`}
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
flex: '0 0 auto',
|
flex: '0 0 auto',
|
||||||
marginRight: 16,
|
marginRight: 16,
|
||||||
},
|
},
|
||||||
|
card: {
|
||||||
|
margin: '10px',
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
@@ -114,7 +117,7 @@ export default function ExtensionCard(props: IProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card>
|
<Card className={classes.card}>
|
||||||
<CardContent className={classes.root}>
|
<CardContent className={classes.root}>
|
||||||
<div style={{ display: 'flex' }}>
|
<div style={{ display: 'flex' }}>
|
||||||
<Avatar
|
<Avatar
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
flex: '0 0 auto',
|
flex: '0 0 auto',
|
||||||
marginRight: 16,
|
marginRight: 16,
|
||||||
},
|
},
|
||||||
|
card: {
|
||||||
|
margin: '10px',
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
@@ -57,7 +60,7 @@ export default function SourceCard(props: IProps) {
|
|||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card>
|
<Card className={classes.card}>
|
||||||
<CardContent className={classes.root}>
|
<CardContent className={classes.root}>
|
||||||
<div style={{ display: 'flex' }}>
|
<div style={{ display: 'flex' }}>
|
||||||
<Avatar
|
<Avatar
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
flex: '0 0 auto',
|
flex: '0 0 auto',
|
||||||
marginRight: 16,
|
marginRight: 16,
|
||||||
},
|
},
|
||||||
|
card: {
|
||||||
|
margin: '10px',
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
interface IProps{
|
interface IProps{
|
||||||
@@ -85,7 +88,7 @@ export default function ChapterCard(props: IProps) {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<li>
|
<li>
|
||||||
<Card>
|
<Card className={classes.card}>
|
||||||
<CardContent className={classes.root}>
|
<CardContent className={classes.root}>
|
||||||
<Link
|
<Link
|
||||||
to={`/manga/${chapter.mangaId}/chapter/${chapter.index}`}
|
to={`/manga/${chapter.mangaId}/chapter/${chapter.index}`}
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
flex: '0 0 auto',
|
flex: '0 0 auto',
|
||||||
marginRight: 16,
|
marginRight: 16,
|
||||||
},
|
},
|
||||||
|
card: {
|
||||||
|
margin: '10px',
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
@@ -114,7 +117,7 @@ export default function ExtensionCard(props: IProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card>
|
<Card className={classes.card}>
|
||||||
<CardContent className={classes.root}>
|
<CardContent className={classes.root}>
|
||||||
<div style={{ display: 'flex' }}>
|
<div style={{ display: 'flex' }}>
|
||||||
<Avatar
|
<Avatar
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
flex: '0 0 auto',
|
flex: '0 0 auto',
|
||||||
marginRight: 16,
|
marginRight: 16,
|
||||||
},
|
},
|
||||||
|
card: {
|
||||||
|
margin: '10px',
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
@@ -58,7 +61,7 @@ export default function SourceCard(props: IProps) {
|
|||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card>
|
<Card className={classes.card}>
|
||||||
<CardContent className={classes.root}>
|
<CardContent className={classes.root}>
|
||||||
<div style={{ display: 'flex' }}>
|
<div style={{ display: 'flex' }}>
|
||||||
<Avatar
|
<Avatar
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ import client from 'util/client';
|
|||||||
|
|
||||||
const useStyles = makeStyles((theme) => ({
|
const useStyles = makeStyles((theme) => ({
|
||||||
root: {
|
root: {
|
||||||
|
margin: '20px 10px',
|
||||||
|
display: 'flex',
|
||||||
|
justifyContent: 'space-around',
|
||||||
|
width: '300px',
|
||||||
TextField: {
|
TextField: {
|
||||||
margin: theme.spacing(1),
|
margin: theme.spacing(1),
|
||||||
width: '25ch',
|
width: '25ch',
|
||||||
@@ -95,7 +99,9 @@ export default function AnimeSearchSingle() {
|
|||||||
<TextField
|
<TextField
|
||||||
inputRef={textInput}
|
inputRef={textInput}
|
||||||
error={error}
|
error={error}
|
||||||
id="standard-basic"
|
id="filled-basic"
|
||||||
|
variant="filled"
|
||||||
|
size="small"
|
||||||
label="Search text.."
|
label="Search text.."
|
||||||
onKeyDown={(e) => e.key === 'Enter' && processInput()}
|
onKeyDown={(e) => e.key === 'Enter' && processInput()}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ import client from 'util/client';
|
|||||||
|
|
||||||
const useStyles = makeStyles((theme) => ({
|
const useStyles = makeStyles((theme) => ({
|
||||||
root: {
|
root: {
|
||||||
|
margin: '20px 10px',
|
||||||
|
display: 'flex',
|
||||||
|
justifyContent: 'space-around',
|
||||||
|
width: '300px',
|
||||||
TextField: {
|
TextField: {
|
||||||
margin: theme.spacing(1),
|
margin: theme.spacing(1),
|
||||||
width: '25ch',
|
width: '25ch',
|
||||||
@@ -95,7 +99,9 @@ export default function SearchSingle() {
|
|||||||
<TextField
|
<TextField
|
||||||
inputRef={textInput}
|
inputRef={textInput}
|
||||||
error={error}
|
error={error}
|
||||||
id="standard-basic"
|
id="filled-basic"
|
||||||
|
variant="filled"
|
||||||
|
size="small"
|
||||||
label="Search text.."
|
label="Search text.."
|
||||||
onKeyDown={(e) => e.key === 'Enter' && processInput()}
|
onKeyDown={(e) => e.key === 'Enter' && processInput()}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user