Skip to content

Commit

Permalink
change categorie
Browse files Browse the repository at this point in the history
  • Loading branch information
Herman-Riah19 committed Dec 12, 2023
1 parent 18b386a commit 4ebaa22
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion resources/js/Components/Card/CardCategorie.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const CardCategorie = ({ categorie, categorieUrl, auth }) => {
class={classes.cardMedia}
image={`${categorieUrl}/${categorie.asset}`}
alt={categorie.slug} /> */}
<Typography variant="h3" class={classes.cardTitle}>{categorie.name}</Typography>
<Typography variant="h3" class={classes.cardTitle}>{categorie.name}</Typography>
</CardContent>
</Link>
</CardActionArea>
Expand Down
32 changes: 17 additions & 15 deletions resources/js/Components/Parallax/HomeParallax.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from "react";
import { Swiper, SwiperSlide } from "swiper/react";
import Parallax from "./Parallax";
import { Link } from "@inertiajs/inertia-react";
import { CardHeader, Avatar, Card, Grid, Typography, Fab } from "@mui/material";
import { AccountCircle, Category } from "@mui/icons-material";
import { CardHeader, Avatar, Card, Grid, Typography, Container } from "@mui/material";
import { AccountCircle } from "@mui/icons-material";
import { Navigation, A11y } from "swiper";

const HomeParallax = ({ users, existProfiles, avatarUrl, bannerUrl }) => {
Expand Down Expand Up @@ -31,22 +31,24 @@ const HomeParallax = ({ users, existProfiles, avatarUrl, bannerUrl }) => {
<Parallax filter image={`${bannerUrl}/${profile.banner}`}>
<Grid container sx={{ zIndex: "1", m: "25px" }}>
<Grid item sm={12} md={9}>
<Typography variant="h4">
{profile ? (
<>
{profile.lastname} {profile.firstname}
</>
) : (
user.username
)}
</Typography>
<Typography variant="body2">
{profile && profile.biography}
</Typography>
<Container sx={{m:2}}>
<Typography variant="h4">
{profile ? (
<>
{profile.lastname} {profile.firstname}
</>
) : (
user.username
)}
</Typography>
<Typography variant="body2">
{profile && profile.biography}
</Typography>
</Container>
<Link
href={`/profile/${user.username.split(" ").join("_")}`}
>
<Card sx={{ m: 2, bgcolor: "transparent" }}>
<Card sx={{ m: 2, mt: '100px', bgcolor: "transparent" }}>
<CardHeader
avatar={
<Avatar
Expand Down
4 changes: 2 additions & 2 deletions resources/js/Pages/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ export default function Home({
spaceBetween: 10,
},
1020: {
slidesPerView: 4,
slidesPerView: 5,
spaceBetween: 15,
},
1440: {
slidesPerView: 5,
slidesPerView: 6,
spaceBetween: 15,
},
};
Expand Down

0 comments on commit 4ebaa22

Please sign in to comment.