feat: [lw] free tools (#297)

* checkpoint

* checkpoint

* feat: Create free tools page

* responsiveness fix

* rename free-tools to tools

* add slug

* feat: Random name picker

* quick fix

* PR Fixes

* PR Fixes

* - adjustments

* update env example

* remove base url

* remove base url in .env.example

* fix type errors

* add og images

* add signup cta to /tools layout

* update cta

* add socials avatar

* add meta tags

* feat: tic tac toe (#307)

* Feat: tic tac toe

* PR Adjustments

* feat: Implement Timed Activity Tool (#316)

* chore: update verification email content

* chore: landing page improvements

* feat: grade exercise with AI (#296)

* working on the UI of the grading

* working on the grading function of the radio and checkboxes

* ai grading fully implemented with dummy functions for generating scores

* working on the openai response

* working on the openai response

* finished with the ai_grading

* finished with the ai_grading

* creating new migration file

* working on reviews

* updated the translations

* improvements

---------

Co-authored-by: Rotimi Best <best@classroomio.com>

* feat: selfhost tinymce

* fix: logo resolution error in manifest.json

* feat: move from gpt3.5 to gpt-4o

* feat: customize the LMS from dashboard (#304)

* Done with the customization of the LMS task

* generated custom_lms migration file

* updated the migration file

* copy improvements

* update wording

* made updates based on reviews,i hope i didnt miss anything

* updated the translations and migration files

* refactoring

* disabled improvements for apps

* more improvements

* more custom improvements

* pr refactoring

---------

Co-authored-by: Rotimi Best <best@classroomio.com>

* fix: CustomizeLMS not found

* fix: CustomizeLms wrong path

* setup

* docs: update short hero tagline

* debug: courses not showing on vercel

* more debugging

* i think this fixes it

* fix: phew, clean up debug cause it works

* fix: move RBS into coursecontainer on marks page

* chore: cleaner way to implement redirect if role permission denied

* docs: update tagline

* fix: delete /org/# route

* checkpoint

* add reusable header component

* fix: empty lesson title bug (#314)

* finished the lesson title bug

* made chnages based on review

* Update +page.svelte

---------

Co-authored-by: Rotimi Best <best@classroomio.com>

* feat: add sound cdn

* remove console.log

* feat: course types - self paced and live class (#309)

* working on the course type

* trying to mark it persist

* almost done here

* fixed sendig emtpy options bug

* created migration file

* created migration file

* made updates based on PR review

* merge

* update course type card

* add redirect logic with classroomio.com/new

* make new course modal only open/close with url

* feat: page active state (#315)

* finished the active link state

* updated the active link state based on review

* simplify code

---------

Co-authored-by: Rotimi Best <best@classroomio.com>

* add type to course card

---------

Co-authored-by: Rotimi Best <best@classroomio.com>

* general improvements to free tools

* fix timer and styling issues

---------

Co-authored-by: Rotimi Best <best@classroomio.com>
Co-authored-by: Em_Dev <Chifez1@gmail.com>

* update tagline for tools page

* feat: Add Free Section to Landing Page (#332)

* feat: Add Free Section to Landing Page

* PR Fixes

* refactor

* PR Fixes

* restructure

* improve cursor UX

---------

Co-authored-by: Rotimi Best <best@classroomio.com>

* feat: Progress Report Tool (#329)

* checkpoint

* fix: corrections

* finalization

* improve ux of progress tool

* more styling improvements

* PR Fixes

* PR Fixes

* fix: mood bg on report

* fix: generate exercise with AI bug (#331)

* fix: enable lesson cascade delete (#335)

* styling improvements

* chore: hide course grading toggle in settings (#338)

* feat: reset select in community page (#339)

* Feat: Add Reset for comminity dropdown

* - add translation

* refactor

---------

Co-authored-by: Rotimi Best <best@classroomio.com>

* fix: prevent hypen at start or end of organzation or domain name (#340)

* fix: adding hypen to start or end of org or domain name

* fix: add org name validation to settings page

* chore: remove unnecessary variable use

* chore: remove error reset function

* Update OrgSettings.svelte

---------

Co-authored-by: Rotimi Best <best@classroomio.com>

* fix: full screen

* fix: pnpm version error & add top level .nvmrc (#343)

* update name of tool

* chore: add translations for validation messages (#345)

* chore: add validation texts to locale file

* feat: switch all validations from plain text to use i18n locale

* feat: switch review form validations from plain text to use locale file

* run translation script

* chore: add translations for validation messages (#345) (#347)

* chore: add translations for validation messages (#345)

* chore: add validation texts to locale file

* feat: switch all validations from plain text to use i18n locale

* feat: switch review form validations from plain text to use locale file

* run translation script

---------

Co-authored-by: Iniubong Obonguko <iniubongobonguko2018@gmail.com>

* PR Fixes

* Bug fixes on mobile

* Final bug fix

* code improvements

* PR Fixes

* Merge Fix

* PR Fixes

* fix: width

* code cleanup

* feat: Promodo Tool (tracks tim spent)

* feat: Pomodoro timer (without tracking feature)

* fix:
- change pause functionality to next
- correct spelling of pomodoro

* fix: pomodoro logo rename

* styling improvements

---------

Co-authored-by: Rotimi Best <best@classroomio.com>
Co-authored-by: Em_Dev <Chifez1@gmail.com>
Co-authored-by: Iniubong Obonguko <iniubongobonguko2018+github@gmail.com>
Co-authored-by: Iniubong Obonguko <iniubongobonguko2018@gmail.com>
Co-authored-by: Aditya Deshlahre <132184385+adityadeshlahre@users.noreply.github.com>

* feat: Implement Bottom menu (#341)

* popup logic done

* popup UI first phase done

* finished the menupop up for both lms and admin

* finished the menupop up for both lms and admin

* done

* cleanup

* fixed popover position

* still working on the routing

* i think that is it for the day

* updated the menupopup currentorgdomain

* rename popup to bottomMenu

* refactoring

---------

Co-authored-by: Rotimi Best <best@classroomio.com>

* remove logout

* change tagline

* feat: Store todolist to localStorage (#375)

* feat: Save todo to localStorage

* remove fly animation to todos

* feat:  Progress Report avatar update (#376)

* feat: Reorder Avatar list

* quick fix

* change avatar url

* more improvements

* quick background fix

* fix: white background

* body background fix

* update lock

---------

Co-authored-by: Rotimi Best <best@classroomio.com>
Co-authored-by: Em_Dev <Chifez1@gmail.com>
Co-authored-by: Iniubong Obonguko <iniubongobonguko2018+github@gmail.com>
Co-authored-by: Iniubong Obonguko <iniubongobonguko2018@gmail.com>
Co-authored-by: Aditya Deshlahre <132184385+adityadeshlahre@users.noreply.github.com>
This commit is contained in:
Adeyemi Adetunji
2024-09-30 01:36:12 +01:00
committed by GitHub
co-authored by Rotimi Best Em_Dev Iniubong Obonguko Iniubong Obonguko Aditya Deshlahre
parent 91bd9d4414
commit 9c066c79be
106 changed files with 3778 additions and 478 deletions
@@ -0,0 +1,3 @@
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M14.2183 2.15689L13.0419 0.980469L7.49587 6.52648L1.94986 0.980469L0.773438 2.15689L6.31945 7.7029L0.773438 13.2489L1.94986 14.4253L7.49587 8.87933L13.0419 14.4253L14.2183 13.2489L8.6723 7.7029L14.2183 2.15689Z" fill="#0233BD"/>
</svg>

After

Width:  |  Height:  |  Size: 341 B

@@ -0,0 +1,12 @@
<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="25.7975" cy="25.2545" r="25.1647" fill="#FDFDFF"/>
<g clip-path="url(#clip0_297_1480)">
<path d="M29.285 13.2773V15.0467H35.1116L27.5156 22.6392L28.7666 23.8937L36.3626 16.2977V22.1243H38.132V13.2773H29.285Z" fill="black"/>
<path d="M23.9757 28.6824L22.7301 27.4297L15.1288 35.0257V29.1991H13.3594V38.046H22.2063V36.2767H16.3797L23.9757 28.6824Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_297_1480">
<rect width="28.3103" height="28.3103" fill="white" transform="translate(11.5938 11.5078)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 633 B

@@ -0,0 +1,12 @@
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_6421_20692)">
<path d="M2.94726 12.6619L3.75164 11.8631C2.87088 11.0723 2.17887 10.0939 1.72664 9C2.86851 6.14812 6.01851 3.9375 8.99976 3.9375C9.76695 3.94763 10.5272 4.08447 11.2498 4.3425L12.1216 3.465C11.1331 3.04724 10.0728 2.82563 8.99976 2.8125C7.1663 2.88145 5.39323 3.48612 3.89969 4.5518C2.40614 5.61747 1.2576 7.09743 0.596011 8.80875C0.55133 8.93234 0.55133 9.06766 0.596011 9.19125C1.09565 10.5171 1.90125 11.7062 2.94726 12.6619Z" fill="white"/>
<path d="M6.75023 8.84906C6.78934 8.31002 7.02118 7.80307 7.40334 7.42091C7.78549 7.03876 8.29244 6.80692 8.83148 6.76781L9.8496 5.74406C9.27909 5.59384 8.67917 5.59579 8.10965 5.74971C7.54013 5.90364 7.02091 6.20417 6.60375 6.62133C6.18659 7.03849 5.88606 7.55771 5.73214 8.12723C5.57821 8.69675 5.57626 9.29667 5.72648 9.86718L6.75023 8.84906Z" fill="white"/>
<path d="M17.4037 8.80875C16.7587 7.12868 15.6364 5.67395 14.175 4.62375L16.875 1.91813L16.0819 1.125L1.125 16.0819L1.91813 16.875L4.78688 14.0062C6.06593 14.7566 7.51727 15.1635 9 15.1875C10.8335 15.1186 12.6065 14.5139 14.1001 13.4482C15.5936 12.3825 16.7422 10.9026 17.4037 9.19125C17.4484 9.06766 17.4484 8.93234 17.4037 8.80875ZM11.25 9C11.2476 9.39381 11.1419 9.7801 10.9435 10.1203C10.7451 10.4604 10.4608 10.7425 10.1192 10.9384C9.77751 11.1343 9.39044 11.2371 8.99662 11.2365C8.60281 11.2359 8.21605 11.1319 7.875 10.935L10.935 7.875C11.1372 8.21572 11.2459 8.60381 11.25 9ZM9 14.0625C7.81991 14.0419 6.66219 13.737 5.625 13.1737L7.05375 11.745C7.70363 12.1959 8.49124 12.4043 9.27907 12.3336C10.0669 12.263 10.8049 11.9179 11.3642 11.3586C11.9235 10.7993 12.2686 10.0613 12.3393 9.27345C12.4099 8.48561 12.2015 7.698 11.7506 7.04812L13.365 5.43375C14.6557 6.31968 15.665 7.55743 16.2731 9C15.1313 11.8519 11.9812 14.0625 9 14.0625Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_6421_20692">
<rect width="18" height="18" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

@@ -0,0 +1,7 @@
<svg width="33" height="33" viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="0.5" y="0.5" width="32" height="32" rx="16" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.6759 25.9343C15.4493 25.9343 15.2656 25.7506 15.2656 25.524V7.47276C15.2656 7.24618 15.4493 7.0625 15.6759 7.0625H17.3169C17.5435 7.0625 17.7272 7.24618 17.7272 7.47276V25.524C17.7272 25.7506 17.5435 25.9343 17.3169 25.9343H15.6759Z" fill="black"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.6759 25.9343C15.4493 25.9343 15.2656 25.7506 15.2656 25.524V7.47276C15.2656 7.24618 15.4493 7.0625 15.6759 7.0625H17.3169C17.5435 7.0625 17.7272 7.24618 17.7272 7.47276V25.524C17.7272 25.7506 17.5435 25.9343 17.3169 25.9343H15.6759Z" fill="black" fill-opacity="0.2"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.0657 15.6759C7.0657 15.4493 7.24938 15.2656 7.47596 15.2656L25.5272 15.2656C25.7538 15.2656 25.9375 15.4493 25.9375 15.6759L25.9375 17.3169C25.9375 17.5435 25.7538 17.7272 25.5272 17.7272L7.47596 17.7272C7.24938 17.7272 7.0657 17.5435 7.0657 17.3169L7.0657 15.6759Z" fill="black"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.0657 15.6759C7.0657 15.4493 7.24938 15.2656 7.47596 15.2656L25.5272 15.2656C25.7538 15.2656 25.9375 15.4493 25.9375 15.6759L25.9375 17.3169C25.9375 17.5435 25.7538 17.7272 25.5272 17.7272L7.47596 17.7272C7.24938 17.7272 7.0657 17.5435 7.0657 17.3169L7.0657 15.6759Z" fill="black" fill-opacity="0.2"/>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

@@ -0,0 +1,4 @@
<svg width="19" height="14" viewBox="0 0 19 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M18.9635 7.20591C18.2537 9.04182 17.0216 10.6295 15.4193 11.7728C13.817 12.916 11.9149 13.5647 9.94795 13.6387C7.98102 13.5647 6.07888 12.916 4.47661 11.7728C2.87434 10.6295 1.64219 9.04182 0.932435 7.20591C0.884501 7.07333 0.884501 6.92815 0.932435 6.79557C1.64219 4.95967 2.87434 3.37197 4.47661 2.22872C6.07888 1.08547 7.98102 0.436776 9.94795 0.36281C11.9149 0.436776 13.817 1.08547 15.4193 2.22872C17.0216 3.37197 18.2537 4.95967 18.9635 6.79557C19.0114 6.92815 19.0114 7.07333 18.9635 7.20591ZM9.94795 1.56971C6.74968 1.56971 3.37037 3.94126 2.14537 7.00074C3.37037 10.0602 6.74968 12.4318 9.94795 12.4318C13.1462 12.4318 16.5255 10.0602 17.7505 7.00074C16.5255 3.94126 13.1462 1.56971 9.94795 1.56971Z" fill="white"/>
<path d="M9.94686 10.6211C9.23076 10.6211 8.53073 10.4087 7.93532 10.0109C7.3399 9.61305 6.87582 9.04758 6.60178 8.38598C6.32774 7.72439 6.25604 6.99639 6.39574 6.29404C6.53545 5.5917 6.88029 4.94655 7.38665 4.44019C7.89301 3.93383 8.53816 3.58899 9.2405 3.44928C9.94285 3.30958 10.6708 3.38128 11.3324 3.65532C11.994 3.92936 12.5595 4.39344 12.9574 4.98886C13.3552 5.58428 13.5676 6.2843 13.5676 7.0004C13.5676 7.96067 13.1861 8.88161 12.5071 9.56062C11.8281 10.2396 10.9071 10.6211 9.94686 10.6211ZM9.94686 4.58661C9.46946 4.58661 9.00278 4.72818 8.60583 4.99341C8.20889 5.25864 7.8995 5.63562 7.71681 6.07669C7.53411 6.51775 7.48631 7.00308 7.57945 7.47131C7.67259 7.93954 7.90248 8.36964 8.24005 8.70721C8.57763 9.04479 9.00773 9.27468 9.47596 9.36782C9.94419 9.46095 10.4295 9.41315 10.8706 9.23046C11.3116 9.04776 11.6886 8.73838 11.9539 8.34144C12.2191 7.94449 12.3607 7.47781 12.3607 7.0004C12.3607 6.36023 12.1063 5.74627 11.6537 5.2936C11.201 4.84092 10.587 4.58661 9.94686 4.58661Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

@@ -0,0 +1,4 @@
<svg width="41" height="41" viewBox="0 0 41 41" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="20.0508" cy="20.5" r="20" fill="#FDFDFF"/>
<path d="M17.4535 22.4545V22.1136C17.4535 21.3324 17.515 20.7098 17.6381 20.2457C17.7612 19.7817 17.9435 19.41 18.185 19.1307C18.4265 18.8466 18.7224 18.5909 19.0728 18.3636C19.3758 18.1648 19.6457 17.973 19.8825 17.7884C20.1239 17.6037 20.3133 17.4072 20.4506 17.1989C20.5927 16.9905 20.6637 16.7538 20.6637 16.4886C20.6637 16.2519 20.6069 16.0436 20.4933 15.8636C20.3796 15.6837 20.2257 15.544 20.0316 15.4446C19.8375 15.3452 19.622 15.2955 19.3853 15.2955C19.1296 15.2955 18.8929 15.3546 18.6751 15.473C18.462 15.5914 18.2892 15.7547 18.1566 15.9631C18.0288 16.1714 17.9648 16.4129 17.9648 16.6875H14.3285C14.3379 15.6458 14.5747 14.8007 15.0387 14.152C15.5027 13.4986 16.1183 13.0204 16.8853 12.7173C17.6523 12.4096 18.4951 12.2557 19.4137 12.2557C20.427 12.2557 21.3313 12.4048 22.1268 12.7031C22.9222 12.9967 23.5496 13.4418 24.0089 14.0384C24.4682 14.6302 24.6978 15.3712 24.6978 16.2614C24.6978 16.8343 24.5984 17.3385 24.3995 17.7741C24.2054 18.205 23.9331 18.5862 23.5827 18.9176C23.2371 19.2443 22.8323 19.5426 22.3683 19.8125C22.0273 20.0114 21.7409 20.2173 21.5089 20.4304C21.2769 20.6387 21.1017 20.8778 20.9833 21.1477C20.8649 21.4129 20.8058 21.7348 20.8058 22.1136V22.4545H17.4535ZM19.1864 27.2273C18.6372 27.2273 18.1661 27.0355 17.7731 26.652C17.3848 26.2637 17.1931 25.7926 17.1978 25.2386C17.1931 24.6989 17.3848 24.2372 17.7731 23.8537C18.1661 23.4702 18.6372 23.2784 19.1864 23.2784C19.7073 23.2784 20.1665 23.4702 20.5643 23.8537C20.9667 24.2372 21.1703 24.6989 21.1751 25.2386C21.1703 25.608 21.0733 25.9441 20.8839 26.2472C20.6992 26.5455 20.4577 26.7846 20.1594 26.9645C19.8612 27.1397 19.5368 27.2273 19.1864 27.2273Z" fill="black"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

@@ -0,0 +1,3 @@
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.79167 10.5417C8.15634 10.5417 8.50608 10.3968 8.76394 10.1389C9.0218 9.88108 9.16667 9.53134 9.16667 9.16667C9.16667 8.80199 9.0218 8.45226 8.76394 8.1944C8.50608 7.93653 8.15634 7.79167 7.79167 7.79167C7.42699 7.79167 7.07726 7.93653 6.81939 8.1944C6.56153 8.45226 6.41667 8.80199 6.41667 9.16667C6.41667 9.53134 6.56153 9.88108 6.81939 10.1389C7.07726 10.3968 7.42699 10.5417 7.79167 10.5417ZM7.58267 14.0562C7.50273 13.9652 7.40557 13.891 7.29679 13.8378C7.188 13.7846 7.06976 13.7535 6.94888 13.7462C6.82801 13.739 6.70689 13.7558 6.59254 13.7956C6.47818 13.8354 6.37286 13.8975 6.28264 13.9783C6.19242 14.0591 6.1191 14.1569 6.06691 14.2662C6.01472 14.3755 5.9847 14.494 5.97858 14.6149C5.97247 14.7359 5.99037 14.8568 6.03126 14.9708C6.07216 15.0848 6.13523 15.1895 6.21683 15.279C6.81887 15.9517 7.55608 16.4899 8.38031 16.8582C9.20453 17.2266 10.0972 17.4169 11 17.4167C11.9028 17.4169 12.7955 17.2266 13.6197 16.8582C14.4439 16.4899 15.1811 15.9517 15.7832 15.279C15.9427 15.0975 16.0241 14.8603 16.0096 14.6191C15.9952 14.3779 15.8861 14.1522 15.706 13.991C15.526 13.8298 15.2896 13.7462 15.0483 13.7584C14.8069 13.7706 14.5802 13.8776 14.4173 14.0562C13.9872 14.5368 13.4605 14.9213 12.8717 15.1845C12.2828 15.4477 11.645 15.5836 11 15.5833C9.64333 15.5833 8.42417 14.9948 7.58267 14.0562ZM15.5833 9.16667C15.5833 9.53134 15.4385 9.88108 15.1806 10.1389C14.9227 10.3968 14.573 10.5417 14.2083 10.5417C13.8437 10.5417 13.4939 10.3968 13.2361 10.1389C12.9782 9.88108 12.8333 9.53134 12.8333 9.16667C12.8333 8.80199 12.9782 8.45226 13.2361 8.1944C13.4939 7.93653 13.8437 7.79167 14.2083 7.79167C14.573 7.79167 14.9227 7.93653 15.1806 8.1944C15.4385 8.45226 15.5833 8.80199 15.5833 9.16667ZM22 11C22 9.55546 21.7155 8.12506 21.1627 6.79048C20.6099 5.4559 19.7996 4.24327 18.7782 3.22183C17.7567 2.20038 16.5441 1.39013 15.2095 0.837325C13.8749 0.284523 12.4445 0 11 0C9.55546 0 8.12506 0.284523 6.79048 0.837325C5.4559 1.39013 4.24327 2.20038 3.22183 3.22183C2.20038 4.24327 1.39013 5.4559 0.837325 6.79048C0.284523 8.12506 -2.15253e-08 9.55546 0 11C4.34724e-08 13.9174 1.15893 16.7153 3.22183 18.7782C5.28473 20.8411 8.08262 22 11 22C13.9174 22 16.7153 20.8411 18.7782 18.7782C20.8411 16.7153 22 13.9174 22 11ZM1.83333 11C1.83333 8.56885 2.7991 6.23727 4.51819 4.51819C6.23727 2.7991 8.56885 1.83333 11 1.83333C13.4312 1.83333 15.7627 2.7991 17.4818 4.51819C19.2009 6.23727 20.1667 8.56885 20.1667 11C20.1667 13.4312 19.2009 15.7627 17.4818 17.4818C15.7627 19.2009 13.4312 20.1667 11 20.1667C8.56885 20.1667 6.23727 19.2009 4.51819 17.4818C2.7991 15.7627 1.83333 13.4312 1.83333 11Z" fill="black"/>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB