Some styling of RecipePage.
This commit is contained in:
parent
8be7ff7b29
commit
d4686d0a39
@ -13,15 +13,17 @@ const Recipe = ({ recipe, imgUrl }: RecipeProps) => {
|
||||
return (
|
||||
<div className={classes.fullRecipeContainer}>
|
||||
<article className={classes.fullRecipe}>
|
||||
<img src={imgUrl} className={classes.mainImage} />
|
||||
<div className={classes.info}>
|
||||
<div className={classes.infoRow}>
|
||||
<h1>{recipe.title}</h1>
|
||||
<h1 className={classes.recipeTitle}>{recipe.title}</h1>
|
||||
<StarCount count={recipe.starCount} />
|
||||
</div>
|
||||
<div className={classes.infoRow}>
|
||||
<UserIconAndName username={recipe.ownerUsername} />
|
||||
<RecipeVisibilityIcon isPublic={recipe.isPublic} />
|
||||
</div>
|
||||
</div>
|
||||
<img src={imgUrl} className={classes.mainImage} />
|
||||
<div dangerouslySetInnerHTML={{ __html: recipe.text }} />
|
||||
</article>
|
||||
</div>
|
||||
|
@ -1,19 +1,30 @@
|
||||
.full-recipe-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.full-recipe {
|
||||
max-width: 600px;
|
||||
max-width: 80ch;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.full-recipe .main-image {
|
||||
width: 100%;
|
||||
.info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.full-recipe .info-row {
|
||||
.info-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.recipe-title {
|
||||
margin-block: 0.5em;
|
||||
}
|
||||
|
||||
.main-image {
|
||||
width: 100%;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user