Anupriya commited on
Commit ·
cdc8731
1
Parent(s): 5a912a4
button component added
Browse filesFiles changed (7)
- src/app/chat/chat.component.css+3-90
- src/app/generate-questions/generate-questions.component.css+94-433
- src/app/generate-questions/generate-questions.component.html+74-68
- src/app/generate-questions/generate-questions.component.ts+5-4
- src/app/shared/button/button.component.cssAdded+23
- src/app/shared/button/button.component.tsAdded+19
- src/styles.css+46-25
51 unmodified lines52535455565758395 unmodified lines45445545645745845946056 unmodified lines517518519520521522523185 unmodified lines70971071171271371471571671771871972072172272372472572672772872973073173273373458 unmodified lines79379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284316 unmodified lines86086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889951 unmodified linesoverflow-y: auto;resize: none;padding: 8px;font-size: 1rem;line-height: 1.2;border: 1px solid rgb(93, 145, 195);border-radius: 8px;395 unmodified linesgap: 10px;align-items: center;margin-right: 15px;}/* Disabled state for toggle buttons */56 unmodified linesgap: 18px;align-items: center;margin-right: 15px;}.toggle-btn.modern {185 unmodified linespadding: 1vw;z-index: 2001;overflow: visible; /* Allow button to overflow outside modal */border: 10px solid #009688; /* Four-side border */box-sizing: border-box;}.close-icon {position: absolute;top: 1vw;right: 1vw;background: none;border: none;font-size: 2vw;color: #2b6296;cursor: pointer;z-index: 2010;transition: color 0.2s;}.user-guide-close-icon:hover {color: #009688;}/* Overlay for closing on outside click */.user-guide-overlay {58 unmodified lines/* Close button styles */.user-guide-close-icon {display: block;position: absolute;top: 1vw;right: 1vw;background: none;border: none;font-size: 2vw;color: #2b6296;cursor: pointer;z-index: 2010;transition: color 0.2s;}.user-guide-close-icon:hover {color: #009688;}.user-guide-close-icon {font-size: 6vw;top: 2vw;right: 2vw;}/* Close button styles */.user-guide-close-icon {display: block;position: absolute;top: 1vw;right: 1vw;background: none;border: none;font-size: 2vw;color: #2b6296;cursor: pointer;z-index: 2010;transition: color 0.2s;}.user-guide-close-icon:hover {color: #009688;}/* Overlay for closing on outside click */.user-guide-overlay {16 unmodified lineswidth: 6vw;height: 6vw;}.user-guide-close-icon {font-size: 6vw;top: 2vw;right: 2vw;}}.user-guide-close-icon {position: absolute;top: -22px; /* Move above modal, adjust as needed */right: -22px; /* Move to the right outside modal, adjust as needed */background: #009688; /* Match border color */border: none;width: 44px;height: 44px;border-radius: 50%;display: flex;align-items: center;justify-content: center;font-size: 2vw;color: black;cursor: pointer;z-index: 2010;box-shadow: 0 2px 8px rgba(93,145,195,0.18);transition: background 0.2s, color 0.2s;;}.user-guide-close-icon:hover {background: white;color: black;}@keyframes fadeInScale {51 unmodified lines52535455565758395 unmodified lines45445545645745845956 unmodified lines516517518519520521185 unmodified lines70770870971071171271371471571671758 unmodified lines77677777877978078116 unmodified lines79879980080180280380480580680780880981081181251 unmodified linesoverflow-y: auto;resize: none;padding: 8px;font-size: 1vw;line-height: 1.2;border: 1px solid rgb(93, 145, 195);border-radius: 8px;395 unmodified linesgap: 10px;align-items: center;margin-right: 15px;}/* Disabled state for toggle buttons */56 unmodified linesgap: 18px;align-items: center;margin-right: 15px;}.toggle-btn.modern {185 unmodified linespadding: 1vw;z-index: 2001;overflow: visible; /* Allow button to overflow outside modal */border: 10px solid var(--main-accent-color); /* Four-side border */box-sizing: border-box;}/* Overlay for closing on outside click */.user-guide-overlay {58 unmodified lines/* Overlay for closing on outside click */.user-guide-overlay {16 unmodified lineswidth: 6vw;height: 6vw;}}.user-guide-close-icon {top: -22px; /* Move above modal, adjust as needed */right: -22px; /* Move to the right outside modal, adjust as needed */}@keyframes fadeInScale {
123456782 unmodified lines111213141516171819202122234 unmodified lines28293031323334353637383940414243444546474849505152535455565758596061626315 unmodified lines7980818283842 unmodified lines878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481494 unmodified lines1541551561571581591601611621631641651 unmodified line1671681691701711721731741751 unmodified line17717817918018118218318418518618718818919019119219319412 unmodified lines20720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725814 unmodified lines2732742752762772782793 unmodified lines2832842852862872882892901 unmodified line2922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263275 unmodified lines33333433533633733833934034134234334434534634734810 unmodified lines35936036136236336436536636736816 unmodified lines38538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645713 unmodified lines47147247347447547647731 unmodified lines5095105115125135145155165178 unmodified lines5265275285295305315325335345355365375385395405415425433 unmodified lines5475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825834 unmodified lines5885895905915925935945955965975985996006016026036046056066076086096106116126136146156166174 unmodified lines6226236246256266276286296306316326336346356366376386396406416426436446456462 unmodified lines6496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906914 unmodified lines69669769869970070170270370470570670735 unmodified lines7437447457467477487497507517527537547557567577587597607617627637647657667672 unmodified lines7707717727737747757767777787797807817827832 unmodified lines7867877887897907917927937947957961 unmodified line79879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588617 unmodified lines90490590690790890991012 unmodified lines9239249259269279289297 unmodified lines9379389399409419429439449459469475 unmodified lines9539549559569579589595 unmodified lines9659669679689699709719729731 unmodified line97597697797897998098121 unmodified lines10031004100510061007100810095 unmodified lines101510161017101810191020102110221023102410256 unmodified lines10321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710688 unmodified lines1077107810791080108110821083108410851086108710881089109010916 unmodified lines109810991100110111021103110417 unmodified lines112211231124112511261127112811297 unmodified lines11371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011614 unmodified lines1166116711681169117011711172117311742 unmodified lines117711781179118011811182118311841 unmodified line11861187118811891190119111921193119411956 unmodified lines12021203120412051206120712081 unmodified line121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257/* General Styling *//*@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500;700&family=Open+Sans:wght@600&display=swap');*/body {font-family: 'Roboto', sans-serif;background: linear-gradient(to bottom, #f8f9fa, #e0e6ed);2 unmodified linesmargin: 0;}/* Header Section Styling */.header-section {display: flex;align-items: end;4 unmodified linesjustify-content: space-between;}/* Buttons Styling */.btn-generate,.reset-btn {padding: 1vw 2vw;font-size: 1.6rem;border: none;border-radius: 0.5vw;cursor: pointer;background-color: #5c67f2;color: white;font-family: "Open Sans", sans-serif;font-weight: bold;transition: all 0.3s ease;}.btn-generate:disabled,.reset-btn:disabled {background-color: #cccccc;color: #666666;cursor: not-allowed;}/*================================*//* Error Popup Styling */.error-popup {position: fixed;top: 0;15 unmodified linestext-align: center;max-width: 40vw;width: 80%;}.error-popup-content p {2 unmodified linesmargin-bottom: 1vw;}.close-popup-btn {padding: 0.8vw 1.5vw;font-size: 1.2vw;background-color: #007bff;color: #fff;border: none;border-radius: 0.5vw;cursor: pointer;transition: all 0.3s ease;}.close-popup-btn:hover {background-color: #0056b3;}/* Full-Screen Chat Container */.app-container {display: flex;flex-direction: column;height: 100vh; /* Full viewport height */width: 100%; /* Full viewport width *//*background: linear-gradient(to bottom right, #fefefe, #f3f4f6);*/ /* Soft white-gray gradient */font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;background-color: rgb(35 34 32 / 43%);}/* Use the `src` of the hidden image */.app-container::before {content: "";position: fixed;top: 0;left: 0;width: 100%;height: 100%;background-image: attr(data-bg); /* This doesn't work in CSS alone */background-size: cover;background-position: center;z-index: -1; /* Push behind other content */}.input-box {padding: 15px;4 unmodified linesbox-shadow: 0 0.2vw 0.5vw rgba(0, 0, 0, 0.1);}.input-box:focus-visible {outline: 2px solid #5d5959;}.full-content {display: flex;padding: 10px;1 unmodified linemargin-top: 1vw;}/* Questions Section */.questions-container {position: relative; /* important for centering inside this box */max-height: 100%;overflow: hidden;margin: 1vw;1 unmodified linebackground-color: #f9f9f9;border-radius: 8px;box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);/* background: #9cd2d529;*/background: #e3f2fd;padding: 1vw 1vw 1vw 2vw;width: 100%;box-shadow: 0 .4vw 1vw rgba(0, 0, 0, .1);border: 9px solid #009688;}.quesHintbtn {display: flex;/* align-content: flex-end; */justify-content: space-between;}12 unmodified lines.answer-input {margin-left: 5px;width: auto; /* Adjust as needed */max-width: 100%;padding: 5px;border: 1px solid #ccc;border-radius: 4px;}.btn-submit:disabled {background-color: #ccc;cursor: not-allowed;}.section-title {font-size: 2.5rem;color: #4ca1af;font-family: 'Open Sans', sans-serif;}.questions-list {list-style: none;padding: 0;margin: 1.4vw;}.question-wrapper {display: flex;flex-direction: column;gap: 10px;}.question-text {font-size: 1.3vw;font-family: 'Roboto', sans-serif;line-height: 1.5;}.answer-input {width: 100%;max-width: 203px;border: 1px solid #999; /* Darker shade for the border */border-radius: 8px;font-family: "Roboto", sans-serif;font-size: 1.6rem;14 unmodified lines}.answer-input:focus {border-color: #5c67f2; /* Keep focus effect */outline: none;}3 unmodified linesfont-style: italic;}/* Submit Button */.submit-container {position: relative;right: 6vw;1 unmodified linejustify-content: flex-end;}.btn-submit {padding: 15px 30px;font-size: 1.6rem;font-family: "Open Sans", sans-serif;color: white;border: none;border-radius: 8px;cursor: pointer;transition: all 0.3s ease;font-weight: bold;/* background: #52a8b4;*/background: #297782;}.btn-submit:disabled {background-color: #ccc;cursor: not-allowed;}.btn-submit:hover:not(:disabled) {transform: scale(1.05);}/* Fade-in animation */@keyframes fadeIn {from {opacity: 0;5 unmodified lines}.warning-label {color: red; /* Make the text red */text-align: center; /* Center the text horizontally */font-size: 1.5em; /* Adjust font size for readability */margin-top: 10px; /* Add spacing from the input box above */display: block; /* Ensure the text is displayed as a block element */width: 100%; /* Center the text within the container */}.congratulation-message {text-align: center;margin: 50px auto;10 unmodified linesposition: relative;z-index: 1;box-shadow: 0 .4vw 1vw rgba(0, 0, 0, .1);border: 9px solid #009688;}.congratulation-message h2 {color: #4ca1af;margin-bottom: 15px;16 unmodified lines}}.congratulation-message p {color: #333;margin-bottom: 20px;font-size: 1.8vw;}.congratulation-message button {padding: 20px 40px;font-size: 1.7em;background: #006780;color: white;border: none;border-radius: 10px;cursor: pointer;margin-top: 20px;transition: all 0.3s ease;font-family: 'Open Sans', sans-serif;font-weight: bold;}.congratulation-message button:hover {background-color: #006780;transform: scale(1.03);}.hint-toggle-btn {background-color: #5c67f2;color: white;padding: 12px 18px;font-size: 1.5rem;border: none;border-radius: 50%;cursor: pointer;transition: all 0.3s ease;display: flex;justify-content: center;align-items: center;width: 50px;height: 50px;}.hint-toggle-btn:hover {background-color: #3c4ec5;transform: scale(1.1);}.hint-toggle-btn:focus {outline: none;box-shadow: 0 0 8px rgba(0, 0, 255, 0.6);}.hint-toggle-btn::before {content: "i";font-weight: bold;font-size: 2rem;color: white;}.side-menu {position: fixed;top: 0;13 unmodified linesright: 0;}.side-menu-header {display: flex;justify-content: space-between;31 unmodified linestext-align: justify;}@keyframes glow {0% {box-shadow: 0 0 10px #ff5c5c;8 unmodified lines}}/* For screen resolutions near 1366px width */@media (max-width: 1366px) {body {font-size: 1.4rem; /* Adjust font size */}.header-section {padding: 8px 15px; /* Adjust padding for smaller height */}.logo-container {width: 10vw; /* Adjust logo width */}.back-button {3 unmodified lines}.input-box {width: 250px; /* Smaller input width */font-size: 1.4rem;}.btn-generate, .reset-btn {padding: 10px 20px; /* Adjust button size */font-size: 1.4rem; /* Smaller font size */}.current-level {font-size: 1rem; /* Smaller font size */padding: 8px 10px;margin: 15px 15px 0;}.question-text {font-size: 1rem; /* Reduce question text size */}.answer-input {width: 80%; /* Adjust width for text inputs */font-size: 1.4rem;padding: 5px;}.btn-submit {padding: 12px 25px; /* Adjust size */font-size: 1.4rem; /* Adjust font size */}.side-menu {width: 40%;}4 unmodified linesheight: 45vh;}.congratulation-message h2 {color: #4ca1af;margin-bottom: 15px;font-size: 2.5vw; /* Responsive font size relative to the viewport width */white-space: nowrap; /* Prevent text from wrapping */overflow: hidden; /* Hide overflow text */text-overflow: ellipsis; /* Add ellipsis if text is too long */text-align: center; /* Center the text */}@media (max-width: 768px) {.congratulation-message h2 {font-size: 2vw; /* Larger font size for smaller screens */}}@media (max-width: 480px) {.congratulation-message h2 {font-size: 3vw; /* Even larger font size for very small screens */}}.congratulation-message p {font-size: 1.4rem;}4 unmodified lines}}h3 {font-weight: bold;}/* Make only the text inside the topic input appear gray */.topic-input[readonly] {color: #999 !important; /* Light gray text */opacity: 1 !important; /* Ensure text opacity remains */background-color: white !important; /* Keep background normal */border: 1px solid #ccc !important; /* Keep a subtle border */cursor: not-allowed; /* Show disabled cursor */}/* Zoom-in and zoom-out animation for hint button */@keyframes hint-zoom {0% {transform: scale(1);2 unmodified lines50% {transform: scale(1.2);}/* Slightly zoom in */100% {transform: scale(1);}}.hint-toggle-btn {background-color: #5c67f2;color: white;padding: 12px 18px;font-size: 1.5rem;border: none;border-radius: 50%;cursor: pointer;transition: all 0.3s ease;display: flex;justify-content: center;align-items: center;width: 50px;height: 50px;}/* Apply zoom-in effect when hints are available */.hint-toggle-btn.blink {animation: hint-zoom 1s infinite alternate;}/*🐝 Flying Honeybee Loader */.loading-overlay {position: fixed;top: 0;left: 0;width: 100%;height: 100%;/* background: rgba(0, 0, 0, 0.6);*/display: flex;flex-direction: column;justify-content: center;4 unmodified linesoverflow: hidden;}.loader {font-size: 15px; /* Font size */width: 1.5em; /* Width of the loader */height: 1.5em; /* Height of the loader */border-radius: 50%;position: relative;text-indent: -9999em;35 unmodified lines}}/* Fix Generate and Reset button alignment */.input-section {display: flex;flex-wrap: wrap;align-items: center;justify-content: center;gap: 10px; /* ✅ Ensure proper spacing */position: relative;}/* Ensure the dropdown is positioned exactly below the input field */.suggestions-container {position: absolute;top: 100%; /* ✅ Attach dropdown directly below input field */left: 0;width: 100%;max-width: 400px;2 unmodified linesborder-radius: 8px;z-index: 10;overflow: hidden;margin-top: 0px; /* ✅ Remove extra gap */}/* Dropdown Items */.suggestions-list {display: flex;flex-direction: column;padding: 0px; /* ✅ Remove extra padding */}.suggestion-item {2 unmodified linescolor: #333;cursor: pointer;transition: background 0.3s ease;border-bottom: 1px solid #ddd; /* ✅ Separator between items */}.suggestion-item:last-child {border-bottom: none; /* ✅ Remove bottom border from last item */}.suggestion-item:hover {1 unmodified linefont-weight: bold;}/* Ensure input field and buttons are in a single row */.input-section {display: flex;align-items: center;justify-content: flex-start;}/* Ensure buttons are next to input field */.button-group {display: flex;gap: 0.5vw; /* ✅ Reduce spacing between buttons */flex: 1;justify-content: flex-start; /* ✅ Aligns buttons next to input field */}/* Make buttons the same height as the input field */.btn-generate, .reset-btn {height: 3.6vw; /* ✅ Match input field height */padding: 12px 20px;font-size: 1.3vw;font-weight: bold;border: none;border-radius: 8px;cursor: pointer;transition: all 0.3s ease-in-out;white-space: nowrap; /* ✅ Prevent buttons from wrapping */}/* Button Colors */.btn-generate {background-color: #006780;color: white;}.reset-btn {background-color: #006780;color: white;}/* Hover Effects */.btn-generate:hover, .reset-btn:hover {transform: scale(1.05);opacity: 0.9;}.correct-answer {color: green !important; /* Correct answer should be green */}.wrong-answer {color: red !important; /* Wrong answer should be red */}.default {color: black !important; /* Default color (black) when user is typing */}.answer-input:focus {outline: none; /* Optional: You can remove outline for a clean effect */}.wrong-answer-removed {background-color: white; /* Reset the background to white after 2 seconds */color: #333; /* Reset the text color */border: 1px solid #ccc; /* Reset the border */transition: background-color 2s ease-out; /* Smooth transition */}/*progress bar css start here*//* --- New Progress Bar Style --- */.difficulty-container {position: relative;width: 100%;max-width: 600px;/*margin: 20px auto;*/height: 20px;background: #e0e0e0;border-radius: 50px;/*overflow: hidden;*/box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);}17 unmodified linestransform: translateY(-50%);display: flex;justify-content: space-between;/* z-index: 2;*/padding: 0 8px;}12 unmodified linestransform: scale(1.3);}/* Tooltip above active dot */.level-tooltip {position: absolute;bottom: 150%;7 unmodified linesborder-radius: 6px;white-space: nowrap;box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);/* z-index: 5;*/opacity: 1;}/* Tooltip arrow */.level-tooltip::after {content: '';position: absolute;5 unmodified linesborder-color: #4ca1af transparent transparent transparent;}/* Responsive adjustment (optional) */@media (max-width: 480px) {.level-tooltip {font-size: 0.65rem;5 unmodified lines}}/*hint button css start here *//* Anchor the i button on the right side of the screen (adjust as you like) */.hint-anchor {position: fixed;top: 15.6vw;1 unmodified linez-index: 1101;}/* i button design (compact circular) */.hint-toggle-btn {width: 56px;height: 56px;21 unmodified linesoutline-offset: 3px;}/* Popover: opens to the LEFT of the i button */.hint-popover {position: absolute;top: 11vw;5 unmodified linesborder-radius: 12px;padding: 16px 20px;box-shadow: 0 12px 32px rgba(0, 0, 0, .25);animation: _ngcontent-ng-c2774789824_hint-slide-in .18s ease;border: 4px solid #009688;}/* Arrow pointing at the button */.hint-popover::before {content: "";position: absolute;6 unmodified linesbox-shadow: 2px -2px 8px rgba(0,0,0,.08);}/* Round close (X) inside the popover */.hint-close {position: absolute;top: 8px;right: 10px;width: 40px;height: 40px;border: 0;border-radius: 50%;background: #eeeeee;color: red;font-size: 2vw;line-height: 0.9;display: grid;place-items: center;cursor: pointer;transition: background .15s ease, transform .15s ease;font-weight: 900;}.hint-close:hover {background: #e0e0e0;transform: scale(1.04);}.hint-close:focus-visible {outline: 3px solid rgba(0,103,128,.35);outline-offset: 2px;}/* List spacing */.hint-title {margin: 0 0 8px;font-size: 18px;8 unmodified linesmargin-bottom: .5rem;}/* Transparent backdrop that closes on click */.hint-backdrop {position: fixed;inset: 0;background: transparent; /* no dim; only captures outside clicks */z-index: 1100;}/* Entrance animation */@keyframes hint-slide-in {from {transform: translateY(-50%) translateX(8px);6 unmodified lines}}/* Mobile: show popover above the button for better fit */@media (max-width: 640px) {.hint-anchor {right: 12px;17 unmodified lines}}/* Circular countdown */.ring {position: relative;width: 220px;7 unmodified linesdisplay: block;}/* static track */.ring-track {fill: none;stroke: rgba(15, 23, 42, 0.18); /* slate-900 @ 18% */stroke-width: 16;}/* animated arc */.ring-progress {fill: none;stroke: #006780; /* accent */stroke-width: 16;stroke-linecap: round;transform: rotate(-90deg); /* start at 12 o’clock */transform-origin: 50% 50%;transition: stroke-dashoffset 0.1s linear; /* smooth update */}/* big number in the center */.ring-number {position: absolute;inset: 0;4 unmodified linescolor: #0f172a;}.global-countdown-overlay {position: absolute; /* not fixed */inset: 0;display: grid;place-items: center;2 unmodified linesz-index: 20;}/* Keep overlay centered and always on top */:host ::ng-deep .global-countdown-overlay {position: fixed;inset: 0;1 unmodified lineplace-items: center;background: transparent;pointer-events: none;z-index: 2000; /* higher to avoid being covered */}/* Frosted card so text never blends with page content */:host ::ng-deep .overlay-card {background: rgba(255,255,255,0.98);backdrop-filter: blur(2px);6 unmodified linespointer-events: none;}/* Ensure the ring forms a stacking context for the disk/number */:host ::ng-deep .ring {position: relative;width: 220px;1 unmodified linemargin: 0 auto 8px;}/* Place the SVG above the disk, below the number */:host ::ng-deep .ring-svg {position: relative;z-index: 2;}/* ADD a white center disk behind the number (no HTML changes) */:host ::ng-deep .ring::before {content: "";position: absolute;inset: 0;margin: auto;width: 120px; /* adjust if you scale the ring */height: 120px;border-radius: 50%;background: #ffffff;border: 1px solid rgba(15,23,42,.08);box-shadow: inset 0 0 0 4px rgba(255,255,255,.9), 0 2px 10px rgba(0,0,0,.08);z-index: 1; /* under number, over background */}/* Stronger, crisper number; always readable */:host ::ng-deep .ring-number {position: absolute;inset: 0;display: grid;place-items: center;z-index: 3; /* above everything in the ring */font-weight: 900;font-size: 64px; /* bump if you increased ring size */line-height: 1;color: #0b1220; /* deep slate */text-shadow: 0 0 2px #fff, 0 0 8px rgba(255,255,255,.85), 0 2px 8px rgba(0,0,0,.35);}/* Keep the ring thicker for visibility (optional) */:host ::ng-deep .ring-track,:host ::ng-deep .ring-progress {stroke-width: 18px; /* increase if needed */}/* Caption pill with high contrast */:host ::ng-deep .caption-pill {display: inline-block;margin-top: 10px;1232 unmodified lines678910114 unmodified lines16171819202115 unmodified lines373839404142432 unmodified lines46474849505152535455565758596061626364656667686970714 unmodified lines767778798081828384851 unmodified line87888990919293941 unmodified line9697989910010110210310410510610710810911012 unmodified lines12312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216314 unmodified lines1781791801811821831843 unmodified lines1881891901911921931 unmodified line1951961971981992005 unmodified lines20620720820921021121221321421521621721821910 unmodified lines23023123223323423523623723816 unmodified lines25525625725825926026126226326426526613 unmodified lines28028128228328428531 unmodified lines3173183193203213228 unmodified lines3313323333343353363373383393403413423433443453463473 unmodified lines3513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803814 unmodified lines3863873883893903913923933943953963973983994004014024034044054064074084094104114124134 unmodified lines4184194204214224234244254264274284294304314324334344352 unmodified lines4384394404414424434444454464474484494504514524534544554 unmodified lines46046146246346446546646746846935 unmodified lines5055065075085095105115125132 unmodified lines5165175185195205215225235245255265275282 unmodified lines5315325335345355365375385395405411 unmodified line54354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160217 unmodified lines62062162262362462512 unmodified lines6386396406416426437 unmodified lines6516526536546556566576586595 unmodified lines6656666676686696705 unmodified lines6766776786796806811 unmodified line68368468568668768821 unmodified lines7107117127137147155 unmodified lines7217227237247257267277287297306 unmodified lines7377387397407417427437447457467478 unmodified lines7567577587597607617627637647657667677686 unmodified lines77577677777877978017 unmodified lines7987998008018028037 unmodified lines8118128138148158168178188198208218228238248258268278288298308318324 unmodified lines8378388398408418428438442 unmodified lines8478488498508518521 unmodified line8548558568578588598608618626 unmodified lines8698708718728738741 unmodified line876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918body {font-family: 'Roboto', sans-serif;background: linear-gradient(to bottom, #f8f9fa, #e0e6ed);2 unmodified linesmargin: 0;}.header-section {display: flex;align-items: end;4 unmodified linesjustify-content: space-between;}.error-popup {position: fixed;top: 0;15 unmodified linestext-align: center;max-width: 40vw;width: 80%;border: 10px solid var(--main-accent-color);}.error-popup-content p {2 unmodified linesmargin-bottom: 1vw;}.app-container {display: flex;flex-direction: column;height: 100vh;width: 100%;font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;background-color: rgb(35 34 32 / 43%);}.app-container::before {content: "";position: fixed;top: 0;left: 0;width: 100%;height: 100%;background-size: cover;background-position: center;z-index: -1;}.input-box {padding: 15px;4 unmodified linesbox-shadow: 0 0.2vw 0.5vw rgba(0, 0, 0, 0.1);}.input-box:focus-visible {outline: 2px solid #5d5959;}.full-content {display: flex;padding: 10px;1 unmodified linemargin-top: 1vw;}.questions-container {position: relative;max-height: 100%;overflow: hidden;margin: 1vw;1 unmodified linebackground-color: #f9f9f9;border-radius: 8px;box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);background: #e3f2fd;padding: 1vw 1vw 1vw 2vw;width: 100%;box-shadow: 0 .4vw 1vw rgba(0, 0, 0, .1);border: 9px solid var(--main-accent-color);}.quesHintbtn {display: flex;justify-content: space-between;}12 unmodified lines.answer-input {margin-left: 5px;width: auto;max-width: 100%;padding: 5px;border: 1px solid #ccc;border-radius: 4px;}.section-title {font-size: 2.5rem;color: #4ca1af;font-family: 'Open Sans', sans-serif;}.questions-list {list-style: none;padding: 0;margin: 1.4vw;}.question-wrapper {display: flex;flex-direction: column;gap: 10px;}.question-text {font-size: 1.3vw;font-family: 'Roboto', sans-serif;line-height: 1.5;}.answer-input {width: 100%;max-width: 203px;border: 1px solid #999;border-radius: 8px;font-family: "Roboto", sans-serif;font-size: 1.6rem;14 unmodified lines}.answer-input:focus {border-color: #5c67f2;outline: none;}3 unmodified linesfont-style: italic;}.submit-container {position: relative;right: 6vw;1 unmodified linejustify-content: flex-end;}@keyframes fadeIn {from {opacity: 0;5 unmodified lines}.warning-label {color: red;text-align: center;font-size: 1.5em;margin-top: 10px;display: block;width: 100%;}.congratulation-message {text-align: center;margin: 50px auto;10 unmodified linesposition: relative;z-index: 1;box-shadow: 0 .4vw 1vw rgba(0, 0, 0, .1);border: 9px solid var(--main-accent-color);}.congratulation-message h2 {color: #4ca1af;margin-bottom: 15px;16 unmodified lines}}.congratulation-message p {color: #333;margin-bottom: 20px;font-size: 1.8vw;}.side-menu {position: fixed;top: 0;13 unmodified linesright: 0;}.side-menu-header {display: flex;justify-content: space-between;31 unmodified linestext-align: justify;}@keyframes glow {0% {box-shadow: 0 0 10px #ff5c5c;8 unmodified lines}}@media (max-width: 1366px) {body {font-size: 1.4rem;}.header-section {padding: 8px 15px;}.logo-container {width: 10vw;}.back-button {3 unmodified lines}.input-box {width: 250px;font-size: 1.4rem;}.btn-generate, .reset-btn {padding: 10px 20px;font-size: 1.4rem;}.current-level {font-size: 1rem;padding: 8px 10px;margin: 15px 15px 0;}.question-text {font-size: 1rem;}.answer-input {width: 80%;font-size: 1.4rem;padding: 5px;}.side-menu {width: 40%;}4 unmodified linesheight: 45vh;}.congratulation-message h2 {color: #4ca1af;margin-bottom: 15px;font-size: 2.5vw;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;text-align: center;}@media (max-width: 768px) {.congratulation-message h2 {font-size: 2vw;}}@media (max-width: 480px) {.congratulation-message h2 {font-size: 3vw;}}.congratulation-message p {font-size: 1.4rem;}4 unmodified lines}}h3 {font-weight: bold;}.topic-input[readonly] {color: #999 !important;opacity: 1 !important;background-color: white !important;border: 1px solid #ccc !important;cursor: not-allowed;}@keyframes hint-zoom {0% {transform: scale(1);2 unmodified lines50% {transform: scale(1.2);}100% {transform: scale(1);}}.loading-overlay {position: fixed;top: 0;left: 0;width: 100%;height: 100%;display: flex;flex-direction: column;justify-content: center;4 unmodified linesoverflow: hidden;}.loader {font-size: 15px;width: 1.5em;height: 1.5em;border-radius: 50%;position: relative;text-indent: -9999em;35 unmodified lines}}.suggestions-container {position: absolute;top: 100%;left: 0;width: 100%;max-width: 400px;2 unmodified linesborder-radius: 8px;z-index: 10;overflow: hidden;margin-top: 0px;}.suggestions-list {display: flex;flex-direction: column;padding: 0px;}.suggestion-item {2 unmodified linescolor: #333;cursor: pointer;transition: background 0.3s ease;border-bottom: 1px solid #ddd;}.suggestion-item:last-child {border-bottom: none;}.suggestion-item:hover {1 unmodified linefont-weight: bold;}.answer-slot {display: inline-block;margin: 0 0.25vw;vertical-align: middle;}.input-section {display: flex;flex-wrap: wrap;align-items: center;justify-content: center;gap: 10px;position: relative;}.button-group {display: flex;gap: 0.5vw;flex: 1;justify-content: flex-start;}.correct-answer {color: green !important;}.wrong-answer {color: red !important;}.default {color: black !important;}.answer-input:focus {outline: none;}.wrong-answer-removed {background-color: white;color: #333;border: 1px solid #ccc;transition: background-color 2s ease-out;}.difficulty-container {position: relative;width: 100%;max-width: 600px;height: 20px;background: #e0e0e0;border-radius: 50px;box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);}17 unmodified linestransform: translateY(-50%);display: flex;justify-content: space-between;padding: 0 8px;}12 unmodified linestransform: scale(1.3);}.level-tooltip {position: absolute;bottom: 150%;7 unmodified linesborder-radius: 6px;white-space: nowrap;box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);opacity: 1;}.level-tooltip::after {content: '';position: absolute;5 unmodified linesborder-color: #4ca1af transparent transparent transparent;}@media (max-width: 480px) {.level-tooltip {font-size: 0.65rem;5 unmodified lines}}.hint-anchor {position: fixed;top: 15.6vw;1 unmodified linez-index: 1101;}.hint-toggle-btn {width: 56px;height: 56px;21 unmodified linesoutline-offset: 3px;}.hint-popover {position: absolute;top: 11vw;5 unmodified linesborder-radius: 12px;padding: 16px 20px;box-shadow: 0 12px 32px rgba(0, 0, 0, .25);border: 10px solid var(--main-accent-color);overflow-y: auto;}.hint-popover::before {content: "";position: absolute;6 unmodified linesbox-shadow: 2px -2px 8px rgba(0,0,0,.08);}.user-guide-close-icon {top: 8px;right: 10px;}.hint-title {margin: 0 0 8px;font-size: 18px;8 unmodified linesmargin-bottom: .5rem;}.hint-backdrop {position: fixed;inset: 0;background: transparent;z-index: 1100;}@keyframes hint-slide-in {from {transform: translateY(-50%) translateX(8px);6 unmodified lines}}@media (max-width: 640px) {.hint-anchor {right: 12px;17 unmodified lines}}.ring {position: relative;width: 220px;7 unmodified linesdisplay: block;}.ring-track {fill: none;stroke: rgba(15, 23, 42, 0.18);stroke-width: 16;}.ring-progress {fill: none;stroke: #006780;stroke-width: 16;stroke-linecap: round;transform: rotate(-90deg);transform-origin: 50% 50%;transition: stroke-dashoffset 0.1s linear;}.ring-number {position: absolute;inset: 0;4 unmodified linescolor: #0f172a;}.global-countdown-overlay {position: absolute;inset: 0;display: grid;place-items: center;2 unmodified linesz-index: 20;}:host ::ng-deep .global-countdown-overlay {position: fixed;inset: 0;1 unmodified lineplace-items: center;background: transparent;pointer-events: none;z-index: 2000;}:host ::ng-deep .overlay-card {background: rgba(255,255,255,0.98);backdrop-filter: blur(2px);6 unmodified linespointer-events: none;}:host ::ng-deep .ring {position: relative;width: 220px;1 unmodified linemargin: 0 auto 8px;}:host ::ng-deep .ring-svg {position: relative;z-index: 2;}:host ::ng-deep .ring::before {content: "";position: absolute;inset: 0;margin: auto;width: 120px;height: 120px;border-radius: 50%;background: #ffffff;border: 1px solid rgba(15,23,42,.08);box-shadow: inset 0 0 0 4px rgba(255,255,255,.9), 0 2px 10px rgba(0,0,0,.08);z-index: 1;}:host ::ng-deep .ring-number {position: absolute;inset: 0;display: grid;place-items: center;z-index: 3;font-weight: 900;font-size: 64px;line-height: 1;color: #0b1220;text-shadow: 0 0 2px #fff, 0 0 8px rgba(255,255,255,.85), 0 2px 8px rgba(0,0,0,.35);}:host ::ng-deep .ring-track,:host ::ng-deep .ring-progress {stroke-width: 18px;}:host ::ng-deep .caption-pill {display: inline-block;margin-top: 10px;
1234567891011121314151617181920212223242526272829306 unmodified lines3738394041424344454647484950515253545556577 unmodified lines65666768697071727374757677787980818283842 unmodified lines878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481496 unmodified lines156157158159160161162163164165166167168169170171172173174<div class="app-container"><div *ngIf="isLoading" class="loading-overlay"><span class="loader"></span></div><app-header [title]="'Grammar Questions'"></app-header><img src="assets/images/grammar-bg.png" alt="Chat Background" class="grammar-bg" /><div class="header-section"><div class="input-section"><!-- Input Field & Suggestions --><div class="input-wrapper"><input [(ngModel)]="topic" (input)="onTopicChange()"[readonly]="isTopicLocked" placeholder="Enter a Topic..."class="input-box topic-input"(focus)="showSuggestions = true"onclick="showSuggestions = true"(blur)="hideSuggestions()" /><!-- Suggestions Dropdown --><div *ngIf="showSuggestions && !isDropdownDisabled" class="suggestions-container"><div class="suggestions-list">6 unmodified lines</div></div><button [disabled]="isGenerateDisabled" (click)="generateQuestions()" class="btn-generate">🚀 Generate</button><!--<button [disabled]="isResetDisabled" (click)="resetTopic()" class="reset-btn">Reset</button>--><button [disabled]="!topic || isResetDisabled" (click)="resetTopic()" class="reset-btn">Reset</button></div><!-- Difficulty Indicator (Remains on Right) --><div *ngIf="isQuestionsGenerated" class="difficulty-container"><div class="progress-bar-fill" [style.width]="getProgressWidth()"></div><div class="level-dots">7 unmodified lines</div></div><div *ngIf="error" class="error-popup"><div class="error-popup-content"><p>{{ error }}</p><button class="close-popup-btn" (click)="closeErrorPopup()">Close</button></div></div></div><!-- Main Content Section --><div *ngIf="!isAllLevelsCompleted" class="full-content"><div class="questions-container" *ngIf="questions.length > 0 && !isAllLevelsCompleted"><div class="quesHintbtn"><h2 class="section-title">📝 Questions</h2></div>2 unmodified lines<li *ngFor="let question of questions" class="question-item"><div class="question-wrapper"><div class="question-text-wrapper"><span class="question-text" *ngFor="let part of question.parts; let i = index">{{ part }}<span class="answer-slot"><input *ngIf="i < question.parts.length - 1"[(ngModel)]="userAnswers[question.index]"[readonly]="isValidationInProgress || readonlyAnswers[question.index]"placeholder=""class="answer-input"pattern="[A-Za-z]*"(input)="onInput($event, question.index)"[ngClass]="{'correct-answer': !isLoading && isChecked && userAnswers[question.index] === questionsWithAnswers[question.index].correctAnswer,'wrong-answer': !isLoading && isChecked && userAnswers[question.index] !== questionsWithAnswers[question.index].correctAnswer}"(input)="onAnswerChange(question.index)" /><div *ngIf="showGlobalCountdown" class="global-countdown-overlay" role="status" aria-live="assertive"><div class="overlay-card"><div class="ring"><svg class="ring-svg" viewBox="0 0 220 220" aria-hidden="true"><circle class="ring-track" cx="110" cy="110" r="90"></circle><circle class="ring-progress"cx="110" cy="110" r="90"[attr.stroke-dasharray]="ringCircumference"[attr.stroke-dashoffset]="ringDashoffset"></circle></svg><div class="ring-number">{{ globalCountdown }}</div></div><div class="caption-pill">{{ overlayCaption }} {{ globalCountdown }}s</div></div></div></span></span></div></div></li></ul><ng-container *ngIf="isFirstAttemptDone && hints?.length"><div class="hint-anchor" (click)="$event.stopPropagation()"><button type="button" class="hint-toggle-btn" aria-haspopup="dialog" [attr.aria-expanded]="isHintMenuVisible ? 'true' : 'false'" aria-controls="hintsPanel" (click)="toggleHintMenu()"></button><section *ngIf="isHintMenuVisible" id="hintsPanel" class="hint-popover" role="dialog" aria-modal="true" aria-label="Hints" (click)="$event.stopPropagation()"><button type="button" class="hint-close" aria-label="Close hints" (click)="closeHints()">×</button><h3 class="hint-title">Hints</h3><ul class="hint-list" role="list"><ng-container *ngFor="let hint of hints; let i = index"><li *ngIf="hint && hint.trim() !== '' && userAnswers[i] !== questionsWithAnswers[i]?.correctAnswer" class="hint-item"><strong>Hint for Question {{ i + 1 }}:</strong> {{ hint }}</li></ng-container>6 unmodified lines</div></div><div class="submit-container" *ngIf="isQuestionsGenerated && !isAllLevelsCompleted"><button [disabled]="!areAllAnswersFilled() || isChecked"(click)="checkAllAnswers()"class="btn-submit">Validate Answers</button></div><!-- Congratulatory Message --><div *ngIf="isAllLevelsCompleted" class="congratulation-message"><h2>🎉 Congratulations! You have completed all levels! 🎉</h2><p>Ready to start over and improve even more?</p><button (click)="stopConfettiAndReset()">Start Over</button></div></div>123456789101112131415161718192021222324256 unmodified lines32333435363738394041427 unmodified lines50515253545556575859606162636465662 unmodified lines697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301316 unmodified lines138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180<div class="app-container"><div *ngIf="isLoading" class="loading-overlay"><span class="loader"></span></div><app-header [title]="'Grammar Questions'"></app-header><img src="assets/images/grammar-bg.png" alt="Chat Background" class="grammar-bg" /><div class="header-section"><div class="input-section"><!-- Input Field & Suggestions --><div class="input-wrapper"><input [(ngModel)]="topic"(input)="onTopicChange()"[readonly]="isTopicLocked"placeholder="Enter a Topic..."class="input-box topic-input"(focus)="showSuggestions = true"(click)="showSuggestions = true"(blur)="hideSuggestions()" /><!-- Suggestions Dropdown --><div *ngIf="showSuggestions && !isDropdownDisabled" class="suggestions-container"><div class="suggestions-list">6 unmodified lines</div></div><app-button [disabled]="isGenerateDisabled" (click)="generateQuestions()">🚀 Generate</app-button><app-button [disabled]="!topic || isResetDisabled" (click)="resetTopic()">Reset</app-button></div><!-- Difficulty Indicator --><div *ngIf="isQuestionsGenerated" class="difficulty-container"><div class="progress-bar-fill" [style.width]="getProgressWidth()"></div><div class="level-dots">7 unmodified lines</div></div><div *ngIf="error" class="error-popup"><div class="error-popup-content"><p>{{ error }}</p><app-button class="close-popup-btn" (click)="closeErrorPopup()">Close</app-button></div></div></div><!-- Main Content Section --><div *ngIf="!isAllLevelsCompleted" class="full-content"><div class="questions-container" *ngIf="questions.length > 0"><div class="quesHintbtn"><h2 class="section-title">📝 Questions</h2></div>2 unmodified lines<li *ngFor="let question of questions" class="question-item"><div class="question-wrapper"><div class="question-text-wrapper"><!-- Sentence + Answer Box --><span class="question-text" *ngFor="let part of question.parts; let i = index">{{ part }}<!-- Inline answer slot --><span class="answer-slot" *ngIf="i < question.parts.length - 1"><input [(ngModel)]="userAnswers[question.index]"[readonly]="isValidationInProgress || readonlyAnswers[question.index]"placeholder=""class="answer-input"pattern="[A-Za-z]*"(input)="onInput($event, question.index); onAnswerChange(question.index)"[ngClass]="{'correct-answer': !isLoading && isChecked && userAnswers[question.index] === questionsWithAnswers[question.index].correctAnswer,'wrong-answer': !isLoading && isChecked && userAnswers[question.index] !== questionsWithAnswers[question.index].correctAnswer}" /></span></span></div></div></li></ul><!-- Hints Section --><ng-container *ngIf="isFirstAttemptDone && hints?.length"><div class="hint-anchor" (click)="$event.stopPropagation()"><button type="button" class="hint-toggle-btn"aria-haspopup="dialog"[attr.aria-expanded]="isHintMenuVisible ? 'true' : 'false'"aria-controls="hintsPanel"(click)="toggleHintMenu()">💡</button><section *ngIf="isHintMenuVisible"id="hintsPanel"class="hint-popover"role="dialog"aria-modal="true"aria-label="Hints"(click)="$event.stopPropagation()"><button type="button"class="user-guide-close-icon"aria-label="Close hints"(click)="closeHints()">×</button><h3 class="hint-title">Hints</h3><ul class="hint-list" role="list"><ng-container *ngFor="let hint of hints; let i = index"><li *ngIf="hint && hint.trim() !== '' && userAnswers[i] !== questionsWithAnswers[i]?.correctAnswer"class="hint-item"><strong>Hint for Question {{ i + 1 }}:</strong> {{ hint }}</li></ng-container>6 unmodified lines</div></div><!-- Validate Button --><div class="submit-container"*ngIf="isQuestionsGenerated && !isAllLevelsCompleted"><app-button [disabled]="!areAllAnswersFilled() || isChecked"(click)="checkAllAnswers()">Validate Answers</app-button></div><!-- Global Countdown Overlay (ONLY ONCE) --><div *ngIf="showGlobalCountdown"class="global-countdown-overlay"role="status"aria-live="assertive"><div class="overlay-card"><div class="ring"><svg class="ring-svg" viewBox="0 0 220 220" aria-hidden="true"><circle class="ring-track" cx="110" cy="110" r="90"></circle><circle class="ring-progress"cx="110" cy="110" r="90"[attr.stroke-dasharray]="ringCircumference"[attr.stroke-dashoffset]="ringDashoffset"></circle></svg><div class="ring-number">{{ globalCountdown }}</div></div><div class="caption-pill">{{ overlayCaption }} {{ globalCountdown }}s</div></div></div><!-- Completion Message --><div *ngIf="isAllLevelsCompleted" class="congratulation-message"><h2>🎉 Congratulations! You have completed all levels! 🎉</h2><p>Ready to start over and improve even more?</p><app-button (click)="stopConfettiAndReset()">Start Over</app-button></div></div>
4 unmodified lines5678910119 unmodified lines21222324252627189 unmodified lines217218219220221222223333 unmodified lines5575585595605615625634 unmodified linesimport { Router } from '@angular/router';import confetti from 'canvas-confetti';import { ChangeDetectorRef } from '@angular/core';import { HeaderComponent } from '../shared/header/header.component'; // Import HeaderComponentinterface QuestionWithAnswer {9 unmodified lines@Component({selector: 'app-generate-questions',standalone: true,imports: [FormsModule, CommonModule, HeaderComponent], // Add HeaderComponent heretemplateUrl: './generate-questions.component.html',styleUrls: ['./generate-questions.component.css']})189 unmodified linesthis.validated = false;this.currentDifficulty = "basic";this.error = "";this.isGenerateDisabled = false;this.isResetDisabled = true;this.showSuggestions = false;this.showLevelTooltip = false;333 unmodified lineshideSuggestions(): void {setTimeout(() => {this.showSuggestions = false;}, 200);}processHints(hints: string[]) {4 unmodified lines567891011129 unmodified lines22232425262728189 unmodified lines218219220221222223224333 unmodified lines5585595605615625635644 unmodified linesimport { Router } from '@angular/router';import confetti from 'canvas-confetti';import { ChangeDetectorRef } from '@angular/core';import { HeaderComponent } from '../shared/header/header.component';import { ButtonComponent } from '../shared/button/button.component';interface QuestionWithAnswer {9 unmodified lines@Component({selector: 'app-generate-questions',standalone: true,imports: [FormsModule, CommonModule, HeaderComponent, ButtonComponent],templateUrl: './generate-questions.component.html',styleUrls: ['./generate-questions.component.css']})189 unmodified linesthis.validated = false;this.currentDifficulty = "basic";this.error = "";this.isGenerateDisabled = true;this.isResetDisabled = true;this.showSuggestions = false;this.showLevelTooltip = false;333 unmodified lineshideSuggestions(): void {setTimeout(() => {this.showSuggestions = false;}, 150);}processHints(hints: string[]) {
1234567891011121314151617181920212223button { background-color: #006780; color: white; border: none; padding: 15px 32px; font-size: 1.3vw; border-radius: 0.5vw; cursor: pointer; transition: background-color 0.3s, transform 0.3s; font-weight: bold;}
button:disabled { background: #bdbdbd; cursor: not-allowed;}
button:hover:not(:disabled) { background-color: #18788f; transform: scale(1.05);}
12345678910111213141516171819import { Component, Input } from '@angular/core';import { NgClass } from '@angular/common';
@Component({ selector: 'app-button', standalone: true, imports: [NgClass], template: ` <button [type]="type" [ngClass]="class" [disabled]="disabled"> <ng-content></ng-content> </button> `, styleUrls: ['./button.component.css']})export class ButtonComponent { @Input() type: 'button' | 'submit' | 'reset' = 'button'; @Input() class = ''; @Input() disabled = false;}6 unmodified lines78910111279 unmodified lines92939495969719 unmodified lines1171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531546 unmodified lines@import '@angular/material/prebuilt-themes/indigo-pink.css';/* -------------------- Custom Fonts -------------------- */@font-face {font-family: 'Super Cartoon';src: url('assets/font/Super Cartoon.ttf') format('truetype');79 unmodified linesoverflow-x: hidden;}.imgbgcontainter {background-image: url(/assets/images/grammar-bg.png);19 unmodified lines.logo {display: flex;align-items: center;gap: 1vw;}.brand-link {display: flex;align-items: center;gap: 0.6vw;text-decoration: none;}.product-name {color: #fff;font-size: 2vw;letter-spacing: 0.5px;font-family: Amonk_Outline;line-height: 1;}.brand-link:hover .product-name {opacity: 0.9;}.mat-mdc-dialog-surface.mdc-dialog__surface {border-radius: 1vw !important;}.cdk-global-scrollblock {overflow: hidden;}6 unmodified lines789101112131415161779 unmodified lines97989910010110210319 unmodified lines1231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741756 unmodified lines@import '@angular/material/prebuilt-themes/indigo-pink.css';/* -------------------- Custom Fonts -------------------- */:root {--main-accent-color: #009688;}@font-face {font-family: 'Super Cartoon';src: url('assets/font/Super Cartoon.ttf') format('truetype');79 unmodified linesoverflow-x: hidden;}/*background image for all the component */.imgbgcontainter {background-image: url(/assets/images/grammar-bg.png);19 unmodified lines.mat-mdc-dialog-surface.mdc-dialog__surface {border-radius: 1vw !important;}.cdk-global-scrollblock {overflow: hidden;}/*overall close icon button color change on hover in user guide modal*/.user-guide-close-icon {position: absolute;background: #009688;border: none;width: 44px;height: 44px;border-radius: 50%;display: flex;align-items: center;justify-content: center;font-size: 2vw;color: black;cursor: pointer;z-index: 2010;box-shadow: 0 2px 8px rgba(93, 145, 195, 0.18);transition: background 0.2s, color 0.2s;}.user-guide-close-icon:hover {background: white;color: black;border: 3px solid #009688;}/*back arrow button*/.back-btn {position: absolute;top: 1vw;left: 1vw;transform: translateY(-50%);cursor: pointer;padding: 0 1rem;transition: transform 0.3s;width: 4.5vw;}.back-btn:hover {transform: translateY(-50%) scale(1.1);}
src/app/chat/chat.component.css+3-90
src/app/generate-questions/generate-questions.component.css+94-433
src/app/generate-questions/generate-questions.component.html+74-68
src/app/generate-questions/generate-questions.component.ts+5-4
src/app/shared/button/button.component.cssAdded+23
src/app/shared/button/button.component.tsAdded+19
src/styles.css+46-25