Skip to content

Commit

Permalink
💻 Redesign of Adventure page within tryit endpoint (#5648)
Browse files Browse the repository at this point in the history
  • Loading branch information
Annelein authored Oct 2, 2024
1 parent 0e63235 commit 99148df
Show file tree
Hide file tree
Showing 82 changed files with 5,992 additions and 218 deletions.
301 changes: 298 additions & 3 deletions app.py

Large diffs are not rendered by default.

116 changes: 115 additions & 1 deletion build-tools/heroku/tailwind/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,27 @@ strong {
display: inline-block;
}

.btn-shape-new {
@apply font-slab leading-6 font-normal tracking-wide;
@apply pt-2 pb-1 px-4 border rounded-md no-underline;
display: inline-block;
}

.green-btn {
@apply btn-shape;
@apply bg-green-500 text-white border-green-700;
}

.green-btn-new {
@apply btn-shape-new;
@apply bg-green-500 text-white border-green-500;
}

.green-btn:disabled, .green-btn[disabled] {
@apply bg-gray-500 border-gray-700;
}


.green-btn:disabled, .green-btn[disabled] {
@apply bg-gray-500 border-gray-700;
}
Expand All @@ -111,6 +127,10 @@ strong {
@apply bg-white text-blue-500 border-blue-400;
}

.white-btn-new {
@apply btn-shape-new;
@apply bg-gray-100 text-blue-900 border-gray-100;
}

.stripe-colored {
@apply bg-yellow-400 border-yellow-500 border-b-4;
Expand Down Expand Up @@ -174,26 +194,58 @@ a.green-btn:hover {
@apply active:bg-green-700 active:border-green-700;
}

.green-btn-new:hover:enabled,
a.green-btn-new:hover {
@apply bg-green-400 border-green-500;
@apply active:bg-green-700 active:border-green-700 transition-all ease-in duration-200;
}

.red-btn {
@apply btn-shape;
@apply bg-red-500 text-white border-red-700;
}

.red-btn-new {
@apply btn-shape-new;
@apply bg-red-500 text-white border-red-500 transition-all ease-in duration-200;
}

.red-btn:hover {
@apply bg-red-400 border-red-500;
@apply active:bg-red-700 active:border-red-700;
}


.red-btn-new:hover {
@apply bg-red-400 border-red-400;
@apply active:bg-red-700 active:border-red-700;
}

.yellow-btn {
@apply btn-shape;
@apply bg-yellow-500 text-black border-yellow-700;
}

.yellow-btn-new {
@apply btn-shape-new;
@apply bg-yellow-500 text-black border-yellow-700 transition-all ease-in duration-200;
}

.yellow-btn:hover {
@apply bg-yellow-400 border-yellow-500;
@apply active:bg-yellow-700 active:border-yellow-700;
}

.yellow-btn-new:hover {
@apply bg-yellow-400 border-yellow-500;
@apply active:bg-yellow-700 active:border-yellow-700;
}

.pink-btn-new {
@apply btn-shape-new;
@apply text-white bg-pink-400 border-pink-500 transition-all ease-in duration-200;
}

.pink-btn {
@apply btn-shape;
@apply text-white bg-pink-400 border-pink-500;
Expand All @@ -204,16 +256,32 @@ a.green-btn:hover {
@apply active:bg-pink-700 active:border-pink-500;
}

.pink-btn-new:hover {
@apply bg-pink-300 border-pink-400;
@apply active:bg-pink-700 active:border-pink-500;
}

.blue-btn {
@apply btn-shape;
@apply bg-blue-500 text-white border-blue-700;
}


.blue-btn-new {
@apply btn-shape-new;
@apply bg-gray-200 text-blue-800 border-gray-200 transition-all ease-in duration-200;
}

.blue-btn:hover {
@apply bg-blue-400 border-blue-500;
@apply active:bg-blue-700 active:border-blue-700;
}

.blue-btn-new:hover {
@apply bg-blue-300 border-blue-400;
@apply active:bg-blue-400 active:border-blue-500;
}

.gray-btn-shape {
@apply font-slab leading-6 font-normal tracking-wide;
@apply pt-2 pb-1 px-4 rounded no-underline;
Expand Down Expand Up @@ -261,6 +329,11 @@ a.green-btn:hover {
}

h2 {
@apply font-slab font-medium text-blue-800;
@apply leading-tight text-2xl mb-2 mt-10;
}

.h2-new {
@apply font-slab font-medium text-blue-500;
@apply leading-tight text-2xl mb-2 mt-10;
}
Expand Down Expand Up @@ -334,6 +407,12 @@ code {
@apply active:bg-blue-700 active:border-blue-700
}

.menubar-item-new {
@apply cursor-pointer block border-b-4 tracking-wide;
/* Colors */
@apply border-gray-100;
}

.menubar-item {
@apply cursor-pointer block border-b-4 tracking-wide;
/* Colors */
Expand All @@ -350,12 +429,23 @@ code {
@apply border-blue-600 !important;
}

.menubar-item-new.active {
/* Colors */
@apply border-blue-700 !important;
}

.menubar-text {
@apply items-center text-base lg:text-xl no-underline font-slab p-1;
/* Colors */
@apply text-blue-600;
}

.menubar-text-new {
@apply items-center text-base lg:text-xl no-underline font-slab p-1;
/* Colors */
@apply text-blue-800;
}

.cust-adv-tab {
@apply cursor-pointer block border-b-4 tracking-wide;
/* Colors */
Expand Down Expand Up @@ -387,6 +477,10 @@ code {
@apply border-blue-500 border-2 bg-gray-100;
}

.dropdown-blue-new {
@apply border-blue-700 border-2 bg-gray-100;
}

.dropdown-green {
@apply bg-gray-100 border-2 border-green-500;
}
Expand Down Expand Up @@ -553,6 +647,13 @@ body[dir='rtl'] .right-hand-shadow {
box-shadow: none !important;
}

.adv-selected {
@apply ltr:border-l-4 rtl:border-r-4 bg-blue-100 ltr:rounded-r-lg rtl:rounded-l-lg;
}

.not-selected-adv {
@apply ltr:border-l-2 rtl:border-r-2;
}
/* EDITOR WARNINGS & ERRORS */

div#errorbox, div#warningbox {
Expand Down Expand Up @@ -900,4 +1001,17 @@ div[class^="ace_incorrect_hedy_code"] {
.fixed-editor-height .cm-scroller { @apply overflow-x-auto };

/* Remove the margin between the scroll bar and the side of the container */
.cm-editor { margin-right: 0px !important; }
.cm-editor { margin-right: 0px !important; }

/* Hyperscript doesn't like when we use [] inside of classes */
.max-h-550px {
@apply max-h-[550px]
}

.sliding-content-closed {
grid-template-rows: 0fr;
}

.sliding-content-open {
grid-template-rows: 1fr;
}
24 changes: 24 additions & 0 deletions messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ msgstr ""
msgid "classes_info"
msgstr ""

msgid "clear"
msgstr ""

msgid "clone"
msgstr ""

Expand All @@ -371,6 +374,9 @@ msgstr ""
msgid "commands"
msgstr ""

msgid "complete"
msgstr ""

msgid "congrats_message"
msgstr ""

Expand All @@ -383,6 +389,9 @@ msgstr ""
msgid "content_invalid"
msgstr ""

msgid "continue"
msgstr ""

msgid "contributor"
msgstr ""

Expand Down Expand Up @@ -464,6 +473,9 @@ msgstr ""
msgid "dash"
msgstr ""

msgid "debug"
msgstr ""

msgid "default_401"
msgstr ""

Expand Down Expand Up @@ -1298,6 +1310,9 @@ msgstr ""
msgid "public_profile_updated"
msgstr ""

msgid "put"
msgstr ""

msgid "question mark"
msgstr ""

Expand Down Expand Up @@ -1388,6 +1403,9 @@ msgstr ""
msgid "reset_view"
msgstr ""

msgid "restart"
msgstr ""

msgid "retrieve_adventure_error"
msgstr ""

Expand Down Expand Up @@ -1472,6 +1490,9 @@ msgstr ""
msgid "settings"
msgstr ""

msgid "share"
msgstr ""

msgid "share_by_giving_link"
msgstr ""

Expand Down Expand Up @@ -1532,6 +1553,9 @@ msgstr ""
msgid "stepper_variable_role"
msgstr ""

msgid "stop"
msgstr ""

msgid "stop_code_button"
msgstr ""

Expand Down
Loading

0 comments on commit 99148df

Please sign in to comment.