Merge branch 'master' of https://codefirst.iut.uca.fr/git/aurian.jault/bromista-nisqa-receta
commit
62dfca2838
@ -0,0 +1,15 @@
|
|||||||
|
.ingredient-mini {
|
||||||
|
min-width: 130px;
|
||||||
|
background-color: #d3d3d3;
|
||||||
|
padding: 10px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
|
||||||
|
.ingredient-mini-title {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
<div class="ingredient-mini">
|
||||||
|
<span class="ingredient-mini-title">{{ ingredient.name }}</span>
|
||||||
|
<span>{{ ingredient.qty }}g</span>
|
||||||
|
</div>
|
@ -0,0 +1,23 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { IngredientMiniComponent } from './ingredient-mini.component';
|
||||||
|
|
||||||
|
describe('IngredientMiniComponent', () => {
|
||||||
|
let component: IngredientMiniComponent;
|
||||||
|
let fixture: ComponentFixture<IngredientMiniComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [IngredientMiniComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(IngredientMiniComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
@ -0,0 +1,14 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { Ingredient } from '../../model/ingredient.model'
|
||||||
|
import { Input } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-ingredient-mini',
|
||||||
|
standalone: true,
|
||||||
|
imports: [],
|
||||||
|
templateUrl: './ingredient-mini.component.html',
|
||||||
|
styleUrl: './ingredient-mini.component.css'
|
||||||
|
})
|
||||||
|
export class IngredientMiniComponent {
|
||||||
|
@Input() ingredient!: Ingredient;
|
||||||
|
}
|
@ -1,4 +1,11 @@
|
|||||||
img {
|
img {
|
||||||
max-height: 300px;
|
max-height: 300px;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#recipe-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 1rem;
|
||||||
}
|
}
|
@ -1,8 +1,3 @@
|
|||||||
:root {
|
:root {
|
||||||
font-family: "Helvetica";
|
font-family: "Helvetica";
|
||||||
}
|
|
||||||
|
|
||||||
html,
|
|
||||||
body {
|
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
Loading…
Reference in new issue