diff --git a/assets/css/custom.css b/assets/css/custom.css index 4e3b297..56e16e1 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -373,10 +373,67 @@ footer { /* Recipe Card Image */ .card .card-img-top { - height: 200px; + height: 160px; + width: 160px; object-fit: cover; - border-top-left-radius: 24px; - border-top-right-radius: 24px; + border-radius: 50% !important; + margin: 20px auto 10px auto; + border: 5px solid #ffffff; + box-shadow: 0 8px 15px rgba(0,0,0,0.08); +} + +.recipe-selection-card { + border-radius: 40px !important; + text-align: center; + overflow: hidden; + padding-bottom: 15px; +} + +.card-body { + padding: 1rem !important; + color: var(--text-main); +} + +.recipe-selection-card .h5 { + font-size: 1.1rem; + margin-bottom: 0.5rem; +} + +.recipe-selection-card .selection-wrapper { + justify-content: center; +} + +.recipe-selection-card .form-check { + display: inline-flex; + align-items: center; + justify-content: center; + width: 100%; +} + +.recipe-selection-card .recipe-category-label { + margin: 5px auto; + display: inline-block; +} + +.recipe-selection-card .card-text { + margin-bottom: 1rem; +} + +.recipe-controls { + border: 1px solid #EAEAEA; + transition: all 0.3s ease; + padding: 10px !important; + border-radius: 20px !important; + margin: 0 10px 15px 10px; +} + +.recipe-controls label { + font-size: 0.75rem !important; +} + +.recipe-controls .form-control-sm { + padding: 4px 8px; + font-size: 0.8rem; } /* View Recipe Modal */ diff --git a/assets/js/main.js b/assets/js/main.js index 3a2bf09..6979fc3 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -176,7 +176,7 @@ const app = { recipes.forEach((recipe, index) => { const cardCol = document.createElement('div'); - cardCol.className = 'col-12 mb-3 recipe-card-enter'; + cardCol.className = 'col-md-6 mb-4 recipe-card-enter'; cardCol.setAttribute('data-id', recipe.id); cardCol.style.animationDelay = `${index * 0.1}s`; @@ -194,16 +194,16 @@ const app = { } const cardBody = document.createElement('div'); - cardBody.className = 'card-body d-flex flex-column'; + cardBody.className = 'card-body d-flex flex-column align-items-center'; const titleWrapper = document.createElement('div'); - titleWrapper.className = 'd-flex justify-content-between align-items-start mb-2 gap-2'; + titleWrapper.className = 'd-flex flex-column align-items-center mb-2 gap-1 w-100'; const selectionWrapper = document.createElement('div'); - selectionWrapper.className = 'form-check mb-0'; + selectionWrapper.className = 'form-check mb-0 d-flex align-items-center justify-content-center'; selectionWrapper.innerHTML = ` - -