diff --git a/twisted/common/templates/base.html b/twisted/common/templates/base.html index aeea556..81bc1ed 100644 --- a/twisted/common/templates/base.html +++ b/twisted/common/templates/base.html @@ -1,19 +1,21 @@ {% load tailwind_tags static %} - - - {% tailwind_css %} - {% block head %}{% endblock head %} - - Twisted - - - {% block body %} - meow :3 - {% endblock body %} - - - \ No newline at end of file + + + + {% tailwind_css %} + {% block head %} + {% endblock head %} + + Twisted + + + {% block body %} + meow :3 + {% endblock body %} + + + diff --git a/twisted/tailwindcsstheme/static_src/src/cotton-ui.sources.css b/twisted/tailwindcsstheme/static_src/src/cotton-ui.sources.css index 955e8f3..4b4c29a 100644 --- a/twisted/tailwindcsstheme/static_src/src/cotton-ui.sources.css +++ b/twisted/tailwindcsstheme/static_src/src/cotton-ui.sources.css @@ -185,4 +185,4 @@ display: none !important; } -@source inline("!bg-transparent !p-0 !px-0 !ring-zinc-900 -mb-1 -mb-px -ml-1 -mr-1 -mt-1 -rotate-180 -rotate-90 -space-x-2 -translate-x-1/2 -translate-x-full -translate-y-1/2 -translate-y-full [&>*]:-rotate-180 [&>.is-current]:bg-accent [&>.is-current]:bg-accent/15 [&>.is-current]:border-accent [&>.is-current]:text-accent [&>.is-current]:text-accent-content [&>.is-current]:text-accent-foreground [&>.is-current]:text-ink-900 [&>a:hover]:bg-ink-100 [&>a:hover]:text-ink-900 [&>a]:border-b-2 [&>a]:border-transparent [&>a]:font-medium [&>a]:px-1 [&>a]:px-2 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-control [&>a]:text-ink-600 [&>a]:text-sm [&>a]:transition-colors [&>option]:bg-white [&>option]:dark:bg-ink-900 [&>option]:dark:text-ink-100 [&>option]:text-ink-900 [&>span]:ring-2 [&>span]:ring-white [&>svg]:h-4 [&>svg]:size-4 [&>svg]:w-4 [&_.is-current]:bg-ink-100 [&_.is-current]:border-accent [&_.is-current]:font-semibold [&_.is-current]:text-ink-900 [&_a:hover]:bg-ink-50 [&_a:hover]:text-ink-900 [&_a]:-mb-px [&_a]:border-b-2 [&_a]:border-ink-200 [&_a]:border-l-2 [&_a]:border-transparent [&_a]:flex [&_a]:font-medium [&_a]:font-normal [&_a]:gap-2 [&_a]:gap-3 [&_a]:inline-flex [&_a]:items-center [&_a]:justify-between [&_a]:pl-4 [&_a]:pr-2 [&_a]:px-3 [&_a]:px-4 [&_a]:py-1 [&_a]:py-2 [&_a]:py-3 [&_a]:relative [&_a]:rounded-control [&_a]:rounded-t-md [&_a]:text-ink-600 [&_a]:text-sm [&_a]:transition-colors [&_tbody_tr:hover]:bg-ink-50 [&_tbody_tr:last-child]:border-0 [&_tbody_tr]:border-b [&_tbody_tr]:border-ink-100 [&_td]:px-3 [&_td]:py-2.5 [&_td]:text-ink-700 [&_th]:font-medium [&_th]:px-3 [&_th]:py-2.5 [&_th]:text-ink-500 [&_th]:whitespace-nowrap [&_thead]:border-b [&_thead]:border-ink-200 absolute accent-[var(--color-accent)] active:opacity-100 animate-spin appearance-none backdrop-blur backdrop-blur-sm before:content-[var(--bc-separator)] before:mr-0.5 before:text-ink-300 bg-[color-mix(in_oklab,var(--color-accent-muted,currentColor)_5%,transparent)] bg-[right_0.5rem_center] bg-[var(--color-accent-muted,currentColor)] bg-[var(--color-input-bg)] bg-[var(--color-surface)] bg-accent bg-accent/10 bg-accent/5 bg-amber-100 bg-amber-300 bg-amber-400 bg-amber-50 bg-amber-500 bg-amber-600 bg-amber-950 bg-black/20 bg-black/50 bg-blue-100 bg-blue-300 bg-blue-400 bg-blue-50 bg-blue-500 bg-blue-600 bg-blue-950 bg-cyan-100 bg-cyan-300 bg-cyan-400 bg-cyan-500 bg-cyan-600 bg-cyan-950 bg-emerald-100 bg-emerald-300 bg-emerald-400 bg-emerald-500 bg-emerald-600 bg-emerald-950 bg-fuchsia-100 bg-fuchsia-300 bg-fuchsia-400 bg-fuchsia-500 bg-fuchsia-600 bg-fuchsia-950 bg-gray-100 bg-gray-200 bg-gray-300 bg-gray-400 bg-gray-50 bg-gray-500 bg-gray-600 bg-gray-700 bg-gray-800 bg-gray-900 bg-gray-950 bg-green-100 bg-green-300 bg-green-400 bg-green-50 bg-green-500 bg-green-600 bg-green-950 bg-indigo-100 bg-indigo-300 bg-indigo-400 bg-indigo-500 bg-indigo-600 bg-indigo-950 bg-ink-100 bg-ink-200 bg-ink-300 bg-ink-400 bg-ink-50 bg-ink-500 bg-ink-600 bg-ink-700 bg-ink-800 bg-ink-900 bg-ink-950 bg-lime-100 bg-lime-300 bg-lime-400 bg-lime-500 bg-lime-600 bg-lime-950 bg-mauve-100 bg-mauve-200 bg-mauve-300 bg-mauve-400 bg-mauve-50 bg-mauve-500 bg-mauve-600 bg-mauve-700 bg-mauve-800 bg-mauve-900 bg-mauve-950 bg-mist-100 bg-mist-200 bg-mist-300 bg-mist-400 bg-mist-50 bg-mist-500 bg-mist-600 bg-mist-700 bg-mist-800 bg-mist-900 bg-mist-950 bg-neutral-100 bg-neutral-200 bg-neutral-300 bg-neutral-400 bg-neutral-50 bg-neutral-500 bg-neutral-600 bg-neutral-700 bg-neutral-800 bg-neutral-900 bg-neutral-950 bg-no-repeat bg-olive-100 bg-olive-200 bg-olive-300 bg-olive-400 bg-olive-50 bg-olive-500 bg-olive-600 bg-olive-700 bg-olive-800 bg-olive-900 bg-olive-950 bg-orange-100 bg-orange-300 bg-orange-400 bg-orange-500 bg-orange-600 bg-orange-950 bg-pink-100 bg-pink-300 bg-pink-400 bg-pink-500 bg-pink-600 bg-pink-950 bg-purple-100 bg-purple-300 bg-purple-400 bg-purple-500 bg-purple-600 bg-purple-950 bg-red-100 bg-red-300 bg-red-400 bg-red-50 bg-red-500 bg-red-600 bg-red-950 bg-rose-100 bg-rose-300 bg-rose-400 bg-rose-500 bg-rose-600 bg-rose-950 bg-sky-100 bg-sky-300 bg-sky-400 bg-sky-500 bg-sky-600 bg-sky-950 bg-slate-100 bg-slate-200 bg-slate-300 bg-slate-400 bg-slate-50 bg-slate-500 bg-slate-600 bg-slate-700 bg-slate-800 bg-slate-900 bg-slate-950 bg-stone-100 bg-stone-200 bg-stone-300 bg-stone-400 bg-stone-50 bg-stone-500 bg-stone-600 bg-stone-700 bg-stone-800 bg-stone-900 bg-stone-950 bg-taupe-100 bg-taupe-200 bg-taupe-300 bg-taupe-400 bg-taupe-50 bg-taupe-500 bg-taupe-600 bg-taupe-700 bg-taupe-800 bg-taupe-900 bg-taupe-950 bg-teal-100 bg-teal-300 bg-teal-400 bg-teal-500 bg-teal-600 bg-teal-950 bg-transparent bg-violet-100 bg-violet-300 bg-violet-400 bg-violet-500 bg-violet-600 bg-violet-950 bg-white bg-white/80 bg-white/90 bg-yellow-100 bg-yellow-300 bg-yellow-400 bg-yellow-500 bg-yellow-600 bg-yellow-950 bg-zinc-100 bg-zinc-500 bg-zinc-700 bg-zinc-900 block border border-0 border-2 border-[color:var(--color-box-border)] border-[color:var(--color-card-border,var(--color-box-border))] border-[var(--color-accent-muted,currentColor)] border-accent border-amber-200 border-amber-300 border-b border-b-2 border-blue-200 border-blue-300 border-collapse border-green-200 border-green-300 border-ink-100 border-ink-200 border-ink-300 border-ink-400 border-ink-900 border-l border-r border-red-200 border-red-300 border-red-500 border-t border-transparent border-zinc-200 bottom-0 bottom-4 collapse container contents cursor-not-allowed cursor-pointer cursor-text dark dark:!ring-white dark:[&>.is-current]:bg-accent/20 dark:[&>.is-current]:text-accent dark:[&>.is-current]:text-white dark:[&>a:hover]:bg-ink-800 dark:[&>a:hover]:text-white dark:[&>a]:text-ink-300 dark:[&>a]:text-ink-400 dark:[&>span]:ring-ink-900 dark:[&_.is-current]:bg-ink-800 dark:[&_.is-current]:text-ink-100 dark:[&_.is-current]:text-white dark:[&_a:hover]:bg-ink-800/50 dark:[&_a:hover]:text-ink-100 dark:[&_a]:border-ink-800 dark:[&_a]:text-ink-400 dark:[&_tbody_tr:hover]:bg-ink-800/50 dark:[&_tbody_tr]:border-ink-800 dark:[&_td]:text-ink-300 dark:[&_th]:text-ink-400 dark:[&_thead]:border-ink-700 dark:before:text-ink-600 dark:bg-amber-500 dark:bg-amber-900/30 dark:bg-amber-950/40 dark:bg-amber-950/90 dark:bg-blue-500 dark:bg-blue-900/30 dark:bg-blue-950/40 dark:bg-blue-950/90 dark:bg-cyan-500 dark:bg-cyan-900/30 dark:bg-emerald-500 dark:bg-emerald-900/30 dark:bg-fuchsia-500 dark:bg-fuchsia-900/30 dark:bg-green-500 dark:bg-green-900/30 dark:bg-green-950/40 dark:bg-green-950/90 dark:bg-indigo-500 dark:bg-indigo-900/30 dark:bg-ink-300 dark:bg-ink-300/10 dark:bg-ink-400 dark:bg-ink-400/30 dark:bg-ink-700 dark:bg-ink-800 dark:bg-ink-900 dark:bg-ink-900/80 dark:bg-ink-950 dark:bg-lime-500 dark:bg-lime-900/30 dark:bg-orange-500 dark:bg-orange-900/30 dark:bg-pink-500 dark:bg-pink-900/30 dark:bg-purple-500 dark:bg-purple-900/30 dark:bg-red-500 dark:bg-red-900/30 dark:bg-red-950/40 dark:bg-red-950/90 dark:bg-rose-500 dark:bg-rose-900/30 dark:bg-sky-500 dark:bg-sky-900/30 dark:bg-teal-500 dark:bg-teal-900/30 dark:bg-violet-500 dark:bg-violet-900/30 dark:bg-white dark:bg-yellow-500 dark:bg-yellow-900/30 dark:bg-zinc-300 dark:bg-zinc-400 dark:bg-zinc-700 dark:bg-zinc-800 dark:bg-zinc-800/90 dark:bg-zinc-900 dark:border-amber-800 dark:border-amber-900 dark:border-blue-800 dark:border-blue-900 dark:border-green-800 dark:border-green-900 dark:border-ink-100 dark:border-ink-300/20 dark:border-ink-600 dark:border-ink-700 dark:border-ink-800 dark:border-red-800 dark:border-red-900 dark:border-zinc-700 dark:border-zinc-800 dark:divide-ink-700 dark:focus-visible:bg-ink-800 dark:focus-visible:bg-red-950/30 dark:hover:bg-ink-600 dark:hover:bg-ink-700 dark:hover:bg-ink-700/50 dark:hover:bg-ink-800 dark:hover:bg-red-950/30 dark:hover:bg-zinc-700/50 dark:hover:bg-zinc-800 dark:hover:border-ink-600 dark:hover:text-ink-100 dark:hover:text-ink-200 dark:hover:text-ink-300 dark:hover:text-white dark:hover:text-zinc-200 dark:placeholder:text-ink-500 dark:ring-offset-zinc-900 dark:ring-white/15 dark:text-amber-200 dark:text-amber-300 dark:text-amber-400 dark:text-blue-200 dark:text-blue-300 dark:text-blue-400 dark:text-cyan-400 dark:text-emerald-400 dark:text-fuchsia-400 dark:text-green-200 dark:text-green-300 dark:text-green-400 dark:text-indigo-400 dark:text-ink-100 dark:text-ink-200 dark:text-ink-300 dark:text-ink-400 dark:text-ink-50 dark:text-ink-500 dark:text-ink-600 dark:text-ink-900 dark:text-lime-400 dark:text-orange-400 dark:text-pink-400 dark:text-purple-400 dark:text-red-200 dark:text-red-300 dark:text-red-400 dark:text-rose-400 dark:text-sky-400 dark:text-teal-400 dark:text-violet-400 dark:text-white dark:text-yellow-400 dark:text-zinc-100 dark:text-zinc-200 dark:text-zinc-300 dark:text-zinc-400 dark:text-zinc-900 disabled:cursor-not-allowed disabled:opacity-50 disabled:opacity-75 disabled:pointer-events-none divide-ink-200 divide-y duration-100 duration-150 duration-200 duration-300 duration-500 duration-75 ease-in ease-in-out ease-linear ease-out first:before:content-[''] first:pt-0 first:rounded-l-[var(--radius-control)] fixed flex flex-1 flex-col flex-col-reverse flex-shrink-0 flex-wrap focus-ring focus-visible:bg-ink-100 focus-visible:bg-red-50 focus-visible:outline-none focus-within:border-accent focus-within:ring-[length:var(--focus-ring-width)] focus-within:ring-[var(--focus-ring-color)] focus:outline-none focus:ring-0 font-medium font-mono font-normal font-semibold gap-1 gap-1.5 gap-2 gap-2.5 gap-3 gap-4 gap-x-6 gap-y-2 grid grid-cols-3 grid-cols-7 h-1 h-1.5 h-14 h-16 h-2 h-24 h-3 h-32 h-4 h-48 h-5 h-6 h-64 h-7 h-8 h-80 h-9 h-[1.125rem] h-full h-px hidden hover:bg-accent-content hover:bg-accent/10 hover:bg-ink-100 hover:bg-ink-200 hover:bg-ink-50 hover:bg-red-50 hover:bg-red-500/10 hover:bg-red-600 hover:bg-zinc-100 hover:bg-zinc-50 hover:border-ink-300 hover:opacity-100 hover:opacity-80 hover:scale-110 hover:text-accent-content hover:text-ink-600 hover:text-ink-700 hover:text-ink-900 hover:text-zinc-800 hover:text-zinc-900 hover:underline inline inline-block inline-flex inset-0 inset-x-0 inset-y-0 invisible is-current items-center items-end items-start justify-between justify-center justify-start last:border-r-0 last:rounded-r-[var(--radius-control)] leading-[1.45] leading-none left-0 left-1/2 left-3 left-4 light max-h-44 max-h-60 max-h-[40vh] max-h-[55vh] max-h-[70vh] max-h-[82vh] max-h-[85vh] max-h-[92vh] max-h-[calc(100vh-4rem)] max-w-2xl max-w-4xl max-w-[7.5rem] max-w-[calc(100vw-2rem)] max-w-full max-w-lg max-w-md max-w-sm max-w-xl max-w-xs mb-1.5 mb-2 mb-4 md:absolute md:flex md:hidden md:min-w-[var(--dd-min)] md:mt-0 md:w-auto min-h-10 min-h-11 min-h-12 min-h-14 min-h-16 min-h-5 min-h-8 min-h-9 min-h-[3.5rem] min-h-[42px] min-w-0 min-w-9 min-w-[var(--dd-min)] ml-1.5 ml-2 ml-auto mr-0.5 mr-1 mr-2 mt-0.5 mt-1 mt-1.5 mt-2 mt-4 my-1 no-underline object-cover opacity-0 opacity-100 opacity-25 opacity-50 opacity-60 opacity-70 opacity-75 opacity-80 opacity-90 outline overflow-auto overflow-hidden overflow-visible overflow-x-auto overflow-x-hidden overflow-y-auto p-0.5 p-1 p-1.5 p-10 p-12 p-2 p-2.5 p-3 p-4 p-6 p-8 pb-0 pb-2 pb-2.5 pb-3 pb-4 pl-10 pl-2 pl-2.5 pl-3 pl-9 placeholder:text-ink-400 pointer-events-auto pointer-events-none pr-10 pr-12 pr-14 pr-2 pr-3 pr-7 pr-8 pt-0 pt-1 pt-2 pt-3 pt-4 pt-5 px-1 px-1.5 px-2 px-2.5 px-3 px-3.5 px-4 px-5 px-6 py-0.5 py-1 py-1.5 py-2 py-2.5 py-3 py-3.5 py-4 py-6 relative resize resize-none right-0 right-2 right-4 ring ring-1 ring-2 ring-[length:var(--focus-ring-width)] ring-[var(--focus-ring-color)] ring-black/10 ring-offset-2 ring-offset-white rotate-0 rotate-180 rotate-90 rounded rounded-[calc(var(--radius-control)*0.5)] rounded-[calc(var(--radius-control)*0.66)] rounded-box rounded-button rounded-control rounded-full rounded-t-md scale-0 scale-100 scale-95 select-none shadow shadow-[var(--shadow-box)] shadow-[var(--shadow-input)] shadow-lg shadow-sm shadow-xl shrink shrink-0 size-10 size-11 size-12 size-16 size-2.5 size-2/3 size-3 size-3.5 size-4 size-5 size-6 size-8 size-full sm:flex-row sm:justify-end sm:max-h-[80vh] sm:space-x-2 sm:text-left space-y-1 space-y-1.5 space-y-2.5 space-y-3 space-y-4 space-y-5 sr-only static sticky table tabular-nums text-2xl text-[10px] text-[11px] text-accent text-accent-foreground text-amber-700 text-amber-800 text-base text-blue-700 text-blue-800 text-center text-current text-cyan-700 text-emerald-700 text-fuchsia-700 text-green-700 text-green-800 text-indigo-700 text-ink-300 text-ink-400 text-ink-500 text-ink-600 text-ink-700 text-ink-800 text-ink-900 text-ink-950 text-left text-lg text-lime-700 text-orange-700 text-pink-700 text-purple-700 text-red-500 text-red-600 text-red-700 text-red-800 text-right text-rose-700 text-sky-700 text-sm text-teal-700 text-violet-700 text-white text-xl text-xs text-yellow-700 text-zinc-400 text-zinc-500 text-zinc-600 text-zinc-700 text-zinc-800 text-zinc-900 top-0 top-1/2 top-4 tracking-tight tracking-wider transform transition transition-[background-color,color] transition-[background-color] transition-[width] transition-all transition-colors transition-opacity transition-transform translate-x-0 translate-x-0.5 translate-x-[0.875rem] translate-x-[1.125rem] translate-x-[1.375rem] translate-x-[1.875rem] translate-x-[2.125rem] translate-x-[2.375rem] translate-x-full translate-y-0 translate-y-1 translate-y-2 translate-y-full truncate ui-range ui-range-neutral underline uppercase visible w-10 w-11 w-14 w-16 w-2 w-28 w-3 w-36 w-4 w-5 w-6 w-7 w-8 w-80 w-9 w-[1.125rem] w-[280px] w-[340px] w-[4.5rem] w-full w-max w-screen whitespace-nowrap z-10 z-40 z-50 z-[100] z-[90] z-[99]"); +@source inline("bg-transparent! p-0! px-0! ring-zinc-900! -mb-1 -mb-px -ml-1 -mr-1 -mt-1 -rotate-180 -rotate-90 -space-x-2 -translate-x-1/2 -translate-x-full -translate-y-1/2 -translate-y-full [&>*]:-rotate-180 [&>.is-current]:bg-accent [&>.is-current]:bg-accent/15 [&>.is-current]:border-accent [&>.is-current]:text-accent [&>.is-current]:text-accent-content [&>.is-current]:text-accent-foreground [&>.is-current]:text-ink-900 [&>a:hover]:bg-ink-100 [&>a:hover]:text-ink-900 [&>a]:border-b-2 [&>a]:border-transparent [&>a]:font-medium [&>a]:px-1 [&>a]:px-2 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-control [&>a]:text-ink-600 [&>a]:text-sm [&>a]:transition-colors [&>option]:bg-white [&>option]:dark:bg-ink-900 [&>option]:dark:text-ink-100 [&>option]:text-ink-900 [&>span]:ring-2 [&>span]:ring-white [&>svg]:h-4 [&>svg]:size-4 [&>svg]:w-4 [&_.is-current]:bg-ink-100 [&_.is-current]:border-accent [&_.is-current]:font-semibold [&_.is-current]:text-ink-900 [&_a:hover]:bg-ink-50 [&_a:hover]:text-ink-900 [&_a]:-mb-px [&_a]:border-b-2 [&_a]:border-ink-200 [&_a]:border-l-2 [&_a]:border-transparent [&_a]:flex [&_a]:font-medium [&_a]:font-normal [&_a]:gap-2 [&_a]:gap-3 [&_a]:inline-flex [&_a]:items-center [&_a]:justify-between [&_a]:pl-4 [&_a]:pr-2 [&_a]:px-3 [&_a]:px-4 [&_a]:py-1 [&_a]:py-2 [&_a]:py-3 [&_a]:relative [&_a]:rounded-control [&_a]:rounded-t-md [&_a]:text-ink-600 [&_a]:text-sm [&_a]:transition-colors [&_tbody_tr:hover]:bg-ink-50 [&_tbody_tr:last-child]:border-0 [&_tbody_tr]:border-b [&_tbody_tr]:border-ink-100 [&_td]:px-3 [&_td]:py-2.5 [&_td]:text-ink-700 [&_th]:font-medium [&_th]:px-3 [&_th]:py-2.5 [&_th]:text-ink-500 [&_th]:whitespace-nowrap [&_thead]:border-b [&_thead]:border-ink-200 absolute accent-[var(--color-accent)] active:opacity-100 animate-spin appearance-none backdrop-blur backdrop-blur-sm before:content-[var(--bc-separator)] before:mr-0.5 before:text-ink-300 bg-[color-mix(in_oklab,var(--color-accent-muted,currentColor)_5%,transparent)] bg-[right_0.5rem_center] bg-[var(--color-accent-muted,currentColor)] bg-[var(--color-input-bg)] bg-[var(--color-surface)] bg-accent bg-accent/10 bg-accent/5 bg-amber-100 bg-amber-300 bg-amber-400 bg-amber-50 bg-amber-500 bg-amber-600 bg-amber-950 bg-black/20 bg-black/50 bg-blue-100 bg-blue-300 bg-blue-400 bg-blue-50 bg-blue-500 bg-blue-600 bg-blue-950 bg-cyan-100 bg-cyan-300 bg-cyan-400 bg-cyan-500 bg-cyan-600 bg-cyan-950 bg-emerald-100 bg-emerald-300 bg-emerald-400 bg-emerald-500 bg-emerald-600 bg-emerald-950 bg-fuchsia-100 bg-fuchsia-300 bg-fuchsia-400 bg-fuchsia-500 bg-fuchsia-600 bg-fuchsia-950 bg-gray-100 bg-gray-200 bg-gray-300 bg-gray-400 bg-gray-50 bg-gray-500 bg-gray-600 bg-gray-700 bg-gray-800 bg-gray-900 bg-gray-950 bg-green-100 bg-green-300 bg-green-400 bg-green-50 bg-green-500 bg-green-600 bg-green-950 bg-indigo-100 bg-indigo-300 bg-indigo-400 bg-indigo-500 bg-indigo-600 bg-indigo-950 bg-ink-100 bg-ink-200 bg-ink-300 bg-ink-400 bg-ink-50 bg-ink-500 bg-ink-600 bg-ink-700 bg-ink-800 bg-ink-900 bg-ink-950 bg-lime-100 bg-lime-300 bg-lime-400 bg-lime-500 bg-lime-600 bg-lime-950 bg-mauve-100 bg-mauve-200 bg-mauve-300 bg-mauve-400 bg-mauve-50 bg-mauve-500 bg-mauve-600 bg-mauve-700 bg-mauve-800 bg-mauve-900 bg-mauve-950 bg-mist-100 bg-mist-200 bg-mist-300 bg-mist-400 bg-mist-50 bg-mist-500 bg-mist-600 bg-mist-700 bg-mist-800 bg-mist-900 bg-mist-950 bg-neutral-100 bg-neutral-200 bg-neutral-300 bg-neutral-400 bg-neutral-50 bg-neutral-500 bg-neutral-600 bg-neutral-700 bg-neutral-800 bg-neutral-900 bg-neutral-950 bg-no-repeat bg-olive-100 bg-olive-200 bg-olive-300 bg-olive-400 bg-olive-50 bg-olive-500 bg-olive-600 bg-olive-700 bg-olive-800 bg-olive-900 bg-olive-950 bg-orange-100 bg-orange-300 bg-orange-400 bg-orange-500 bg-orange-600 bg-orange-950 bg-pink-100 bg-pink-300 bg-pink-400 bg-pink-500 bg-pink-600 bg-pink-950 bg-purple-100 bg-purple-300 bg-purple-400 bg-purple-500 bg-purple-600 bg-purple-950 bg-red-100 bg-red-300 bg-red-400 bg-red-50 bg-red-500 bg-red-600 bg-red-950 bg-rose-100 bg-rose-300 bg-rose-400 bg-rose-500 bg-rose-600 bg-rose-950 bg-sky-100 bg-sky-300 bg-sky-400 bg-sky-500 bg-sky-600 bg-sky-950 bg-slate-100 bg-slate-200 bg-slate-300 bg-slate-400 bg-slate-50 bg-slate-500 bg-slate-600 bg-slate-700 bg-slate-800 bg-slate-900 bg-slate-950 bg-stone-100 bg-stone-200 bg-stone-300 bg-stone-400 bg-stone-50 bg-stone-500 bg-stone-600 bg-stone-700 bg-stone-800 bg-stone-900 bg-stone-950 bg-taupe-100 bg-taupe-200 bg-taupe-300 bg-taupe-400 bg-taupe-50 bg-taupe-500 bg-taupe-600 bg-taupe-700 bg-taupe-800 bg-taupe-900 bg-taupe-950 bg-teal-100 bg-teal-300 bg-teal-400 bg-teal-500 bg-teal-600 bg-teal-950 bg-transparent bg-violet-100 bg-violet-300 bg-violet-400 bg-violet-500 bg-violet-600 bg-violet-950 bg-white bg-white/80 bg-white/90 bg-yellow-100 bg-yellow-300 bg-yellow-400 bg-yellow-500 bg-yellow-600 bg-yellow-950 bg-zinc-100 bg-zinc-500 bg-zinc-700 bg-zinc-900 block border border-0 border-2 border-[color:var(--color-box-border)] border-[color:var(--color-card-border,var(--color-box-border))] border-[var(--color-accent-muted,currentColor)] border-accent border-amber-200 border-amber-300 border-b border-b-2 border-blue-200 border-blue-300 border-collapse border-green-200 border-green-300 border-ink-100 border-ink-200 border-ink-300 border-ink-400 border-ink-900 border-l border-r border-red-200 border-red-300 border-red-500 border-t border-transparent border-zinc-200 bottom-0 bottom-4 collapse container contents cursor-not-allowed cursor-pointer cursor-text dark dark:!ring-white dark:[&>.is-current]:bg-accent/20 dark:[&>.is-current]:text-accent dark:[&>.is-current]:text-white dark:[&>a:hover]:bg-ink-800 dark:[&>a:hover]:text-white dark:[&>a]:text-ink-300 dark:[&>a]:text-ink-400 dark:[&>span]:ring-ink-900 dark:[&_.is-current]:bg-ink-800 dark:[&_.is-current]:text-ink-100 dark:[&_.is-current]:text-white dark:[&_a:hover]:bg-ink-800/50 dark:[&_a:hover]:text-ink-100 dark:[&_a]:border-ink-800 dark:[&_a]:text-ink-400 dark:[&_tbody_tr:hover]:bg-ink-800/50 dark:[&_tbody_tr]:border-ink-800 dark:[&_td]:text-ink-300 dark:[&_th]:text-ink-400 dark:[&_thead]:border-ink-700 dark:before:text-ink-600 dark:bg-amber-500 dark:bg-amber-900/30 dark:bg-amber-950/40 dark:bg-amber-950/90 dark:bg-blue-500 dark:bg-blue-900/30 dark:bg-blue-950/40 dark:bg-blue-950/90 dark:bg-cyan-500 dark:bg-cyan-900/30 dark:bg-emerald-500 dark:bg-emerald-900/30 dark:bg-fuchsia-500 dark:bg-fuchsia-900/30 dark:bg-green-500 dark:bg-green-900/30 dark:bg-green-950/40 dark:bg-green-950/90 dark:bg-indigo-500 dark:bg-indigo-900/30 dark:bg-ink-300 dark:bg-ink-300/10 dark:bg-ink-400 dark:bg-ink-400/30 dark:bg-ink-700 dark:bg-ink-800 dark:bg-ink-900 dark:bg-ink-900/80 dark:bg-ink-950 dark:bg-lime-500 dark:bg-lime-900/30 dark:bg-orange-500 dark:bg-orange-900/30 dark:bg-pink-500 dark:bg-pink-900/30 dark:bg-purple-500 dark:bg-purple-900/30 dark:bg-red-500 dark:bg-red-900/30 dark:bg-red-950/40 dark:bg-red-950/90 dark:bg-rose-500 dark:bg-rose-900/30 dark:bg-sky-500 dark:bg-sky-900/30 dark:bg-teal-500 dark:bg-teal-900/30 dark:bg-violet-500 dark:bg-violet-900/30 dark:bg-white dark:bg-yellow-500 dark:bg-yellow-900/30 dark:bg-zinc-300 dark:bg-zinc-400 dark:bg-zinc-700 dark:bg-zinc-800 dark:bg-zinc-800/90 dark:bg-zinc-900 dark:border-amber-800 dark:border-amber-900 dark:border-blue-800 dark:border-blue-900 dark:border-green-800 dark:border-green-900 dark:border-ink-100 dark:border-ink-300/20 dark:border-ink-600 dark:border-ink-700 dark:border-ink-800 dark:border-red-800 dark:border-red-900 dark:border-zinc-700 dark:border-zinc-800 dark:divide-ink-700 dark:focus-visible:bg-ink-800 dark:focus-visible:bg-red-950/30 dark:hover:bg-ink-600 dark:hover:bg-ink-700 dark:hover:bg-ink-700/50 dark:hover:bg-ink-800 dark:hover:bg-red-950/30 dark:hover:bg-zinc-700/50 dark:hover:bg-zinc-800 dark:hover:border-ink-600 dark:hover:text-ink-100 dark:hover:text-ink-200 dark:hover:text-ink-300 dark:hover:text-white dark:hover:text-zinc-200 dark:placeholder:text-ink-500 dark:ring-offset-zinc-900 dark:ring-white/15 dark:text-amber-200 dark:text-amber-300 dark:text-amber-400 dark:text-blue-200 dark:text-blue-300 dark:text-blue-400 dark:text-cyan-400 dark:text-emerald-400 dark:text-fuchsia-400 dark:text-green-200 dark:text-green-300 dark:text-green-400 dark:text-indigo-400 dark:text-ink-100 dark:text-ink-200 dark:text-ink-300 dark:text-ink-400 dark:text-ink-50 dark:text-ink-500 dark:text-ink-600 dark:text-ink-900 dark:text-lime-400 dark:text-orange-400 dark:text-pink-400 dark:text-purple-400 dark:text-red-200 dark:text-red-300 dark:text-red-400 dark:text-rose-400 dark:text-sky-400 dark:text-teal-400 dark:text-violet-400 dark:text-white dark:text-yellow-400 dark:text-zinc-100 dark:text-zinc-200 dark:text-zinc-300 dark:text-zinc-400 dark:text-zinc-900 disabled:cursor-not-allowed disabled:opacity-50 disabled:opacity-75 disabled:pointer-events-none divide-ink-200 divide-y duration-100 duration-150 duration-200 duration-300 duration-500 duration-75 ease-in ease-in-out ease-linear ease-out first:before:content-[''] first:pt-0 first:rounded-l-[var(--radius-control)] fixed flex flex-1 flex-col flex-col-reverse flex-shrink-0 flex-wrap focus-ring focus-visible:bg-ink-100 focus-visible:bg-red-50 focus-visible:outline-none focus-within:border-accent focus-within:ring-[length:var(--focus-ring-width)] focus-within:ring-[var(--focus-ring-color)] focus:outline-none focus:ring-0 font-medium font-mono font-normal font-semibold gap-1 gap-1.5 gap-2 gap-2.5 gap-3 gap-4 gap-x-6 gap-y-2 grid grid-cols-3 grid-cols-7 h-1 h-1.5 h-14 h-16 h-2 h-24 h-3 h-32 h-4 h-48 h-5 h-6 h-64 h-7 h-8 h-80 h-9 h-[1.125rem] h-full h-px hidden hover:bg-accent-content hover:bg-accent/10 hover:bg-ink-100 hover:bg-ink-200 hover:bg-ink-50 hover:bg-red-50 hover:bg-red-500/10 hover:bg-red-600 hover:bg-zinc-100 hover:bg-zinc-50 hover:border-ink-300 hover:opacity-100 hover:opacity-80 hover:scale-110 hover:text-accent-content hover:text-ink-600 hover:text-ink-700 hover:text-ink-900 hover:text-zinc-800 hover:text-zinc-900 hover:underline inline inline-block inline-flex inset-0 inset-x-0 inset-y-0 invisible is-current items-center items-end items-start justify-between justify-center justify-start last:border-r-0 last:rounded-r-[var(--radius-control)] leading-[1.45] leading-none left-0 left-1/2 left-3 left-4 light max-h-44 max-h-60 max-h-[40vh] max-h-[55vh] max-h-[70vh] max-h-[82vh] max-h-[85vh] max-h-[92vh] max-h-[calc(100vh-4rem)] max-w-2xl max-w-4xl max-w-[7.5rem] max-w-[calc(100vw-2rem)] max-w-full max-w-lg max-w-md max-w-sm max-w-xl max-w-xs mb-1.5 mb-2 mb-4 md:absolute md:flex md:hidden md:min-w-[var(--dd-min)] md:mt-0 md:w-auto min-h-10 min-h-11 min-h-12 min-h-14 min-h-16 min-h-5 min-h-8 min-h-9 min-h-[3.5rem] min-h-[42px] min-w-0 min-w-9 min-w-[var(--dd-min)] ml-1.5 ml-2 ml-auto mr-0.5 mr-1 mr-2 mt-0.5 mt-1 mt-1.5 mt-2 mt-4 my-1 no-underline object-cover opacity-0 opacity-100 opacity-25 opacity-50 opacity-60 opacity-70 opacity-75 opacity-80 opacity-90 outline overflow-auto overflow-hidden overflow-visible overflow-x-auto overflow-x-hidden overflow-y-auto p-0.5 p-1 p-1.5 p-10 p-12 p-2 p-2.5 p-3 p-4 p-6 p-8 pb-0 pb-2 pb-2.5 pb-3 pb-4 pl-10 pl-2 pl-2.5 pl-3 pl-9 placeholder:text-ink-400 pointer-events-auto pointer-events-none pr-10 pr-12 pr-14 pr-2 pr-3 pr-7 pr-8 pt-0 pt-1 pt-2 pt-3 pt-4 pt-5 px-1 px-1.5 px-2 px-2.5 px-3 px-3.5 px-4 px-5 px-6 py-0.5 py-1 py-1.5 py-2 py-2.5 py-3 py-3.5 py-4 py-6 relative resize resize-none right-0 right-2 right-4 ring ring-1 ring-2 ring-[length:var(--focus-ring-width)] ring-[var(--focus-ring-color)] ring-black/10 ring-offset-2 ring-offset-white rotate-0 rotate-180 rotate-90 rounded rounded-[calc(var(--radius-control)*0.5)] rounded-[calc(var(--radius-control)*0.66)] rounded-box rounded-button rounded-control rounded-full rounded-t-md scale-0 scale-100 scale-95 select-none shadow shadow-[var(--shadow-box)] shadow-[var(--shadow-input)] shadow-lg shadow-sm shadow-xl shrink shrink-0 size-10 size-11 size-12 size-16 size-2.5 size-2/3 size-3 size-3.5 size-4 size-5 size-6 size-8 size-full sm:flex-row sm:justify-end sm:max-h-[80vh] sm:space-x-2 sm:text-left space-y-1 space-y-1.5 space-y-2.5 space-y-3 space-y-4 space-y-5 sr-only static sticky table tabular-nums text-2xl text-[10px] text-[11px] text-accent text-accent-foreground text-amber-700 text-amber-800 text-base text-blue-700 text-blue-800 text-center text-current text-cyan-700 text-emerald-700 text-fuchsia-700 text-green-700 text-green-800 text-indigo-700 text-ink-300 text-ink-400 text-ink-500 text-ink-600 text-ink-700 text-ink-800 text-ink-900 text-ink-950 text-left text-lg text-lime-700 text-orange-700 text-pink-700 text-purple-700 text-red-500 text-red-600 text-red-700 text-red-800 text-right text-rose-700 text-sky-700 text-sm text-teal-700 text-violet-700 text-white text-xl text-xs text-yellow-700 text-zinc-400 text-zinc-500 text-zinc-600 text-zinc-700 text-zinc-800 text-zinc-900 top-0 top-1/2 top-4 tracking-tight tracking-wider transform transition transition-[background-color,color] transition-[background-color] transition-[width] transition-all transition-colors transition-opacity transition-transform translate-x-0 translate-x-0.5 translate-x-[0.875rem] translate-x-[1.125rem] translate-x-[1.375rem] translate-x-[1.875rem] translate-x-[2.125rem] translate-x-[2.375rem] translate-x-full translate-y-0 translate-y-1 translate-y-2 translate-y-full truncate ui-range ui-range-neutral underline uppercase visible w-10 w-11 w-14 w-16 w-2 w-28 w-3 w-36 w-4 w-5 w-6 w-7 w-8 w-80 w-9 w-[1.125rem] w-[280px] w-[340px] w-[4.5rem] w-full w-max w-screen whitespace-nowrap z-10 z-40 z-50 z-[100] z-[90] z-[99]"); diff --git a/twisted/twisted_site/slack.py b/twisted/twisted_site/slack.py index 6a1000a..07738da 100644 --- a/twisted/twisted_site/slack.py +++ b/twisted/twisted_site/slack.py @@ -1,3 +1,5 @@ +from typing import Any + from django.conf import settings from slack_sdk import WebClient @@ -7,6 +9,18 @@ slack_bot = WebClient(token=SLACK_TOKEN) +def send_blocks( + *, + channel: str, + blocks: list[dict[str, Any]], + text: str = " ", + **kwargs: Any, +): + return slack_bot.chat_postMessage( + channel=channel, text=text, blocks=blocks, **kwargs + ) + + def log_to_channel(message): if settings.DEBUG: slack_bot.chat_postMessage( diff --git a/twisted/twisted_site/templates/admin/announcements.html b/twisted/twisted_site/templates/admin/announcements.html index b8ebd1b..607ee0b 100644 --- a/twisted/twisted_site/templates/admin/announcements.html +++ b/twisted/twisted_site/templates/admin/announcements.html @@ -1,5 +1,8 @@ - Primary Button -Default Button - - \ No newline at end of file + + Primary Button + + + Default Button + + diff --git a/twisted/twisted_site/templates/admin/dashboard.html b/twisted/twisted_site/templates/admin/dashboard.html index b2d7928..bbe0db0 100644 --- a/twisted/twisted_site/templates/admin/dashboard.html +++ b/twisted/twisted_site/templates/admin/dashboard.html @@ -1,19 +1,33 @@ - +

Welcome back, {{ user.profile.slack_username }}!

- See statistics + + See statistics + - Manage Users + + Manage Users + - Edit Pathways - Fulfill orders - Edit shop - Review projects - Announce stuff + + Edit Pathways + + + Fulfill orders + + + Edit shop + + + Review projects + + + Announce stuff +

@@ -22,29 +36,32 @@

Welcome back, {{ user.profile.slack_usern
-
- Hours logged -
-
- {{ hours_logged }}h -
+
Hours logged
+
{{ hours_logged }}h
-
- Loading chart... -
+
Loading chart...
- - -{% if startup_windows %} - -{% endif %} - -{% endblock body %} \ No newline at end of file + setTimeout(() => { + console.log( + '%cConsole?', + 'color: #B7AFBC; background: #160D1E; font-size: 1.5rem; padding: 0.15rem 0.25rem; margin: 1rem; border: 2px solid #A79FAC;' + ); + console.log('WELCOME TO TWISTED!!!') + console.log('shh....') + + console.log('{{ request.scheme }}://{{ request.get_host }}{% url 'dashboard' %}?discover') + }, 500) + + {% if startup_windows %} + + {% endif %} +{% endblock body %} diff --git a/twisted/twisted_site/templates/client/discover.html b/twisted/twisted_site/templates/client/discover.html index 732dd76..32ca778 100644 --- a/twisted/twisted_site/templates/client/discover.html +++ b/twisted/twisted_site/templates/client/discover.html @@ -1,126 +1,97 @@ {% extends "client/osbase.html" %} {% load static time_filters %} - {% block body %} -
- -
- discover projects from the community -
- -
- - {% if projects %} -
- - {% for project in projects %} - - -
- -
-

- {{ project.project_name }} -

-
- {% if project.is_approved %} - shipped - {% endif %} - - {{ project.time_logged|minutes_to_hours_minutes }} - - - {{ project.get_project_type_display }} - -
-
- -

- {{ project.project_description }} -

- -
- - - {{ project.user.profile.slack_username|default:project.user.username }} - -
-
- {% endfor %} - +
+
+ discover projects from the community
- - {% else %} - -
-
-
🧭
- -
- No projects yet -
- -
- Projects from everyone will show up here. +
+ {% if projects %} +
+ {% for project in projects %} + +
+
+

+ {{ project.project_name }} +

+
+ {% if project.is_approved %} + shipped + {% endif %} + + {{ project.time_logged|minutes_to_hours_minutes }} + + + {{ project.get_project_type_display }} + +
+
+

+ {{ project.project_description }} +

+
+ + + {{ project.user.profile.slack_username|default:project.user.username }} + +
+
+ {% endfor %}
-
-
- - {% endif %} - -
- -
- {{ paginator.count }} project{{ paginator.count|pluralize }} - - {% if paginator.num_pages > 1 %} -
- {% if projects.has_previous %} - - ← prev - {% else %} - - ← prev - +
+
+
🧭
+
No projects yet
+
Projects from everyone will show up here.
+
+
{% endif %} - - - page {{ projects.number }} of {{ paginator.num_pages }} - - - {% if projects.has_next %} - - next → - - {% else %} - - next → - +
+
+ {{ paginator.count }} project{{ paginator.count|pluralize }} + {% if paginator.num_pages > 1 %} +
+ {% if projects.has_previous %} + + ← prev + + {% else %} + ← prev + {% endif %} + page {{ projects.number }} of {{ paginator.num_pages }} + {% if projects.has_next %} + + next → + + {% else %} + next → + {% endif %} +
{% endif %}
- {% endif %}
- -
- - - + {% endblock body %} diff --git a/twisted/twisted_site/templates/client/faqs.html b/twisted/twisted_site/templates/client/faqs.html index e1caa37..de5aaa1 100644 --- a/twisted/twisted_site/templates/client/faqs.html +++ b/twisted/twisted_site/templates/client/faqs.html @@ -1,80 +1,72 @@ {% extends "base.html" %} {% load static %} {% block body %} - - - Hack Club - - -
-
-
-
- -
- ← -
-
- - - faqs.exe - -
- -
- - - - - - -
-
- -
-
-

Q: What is Twisted?

-

A: Twisted is a YSWS where you complete 7 pathways of challenges, keep up your streak for bonus rewards, and earn a laptop and PC at the end!

-
-
-

Q: What is a YSWS?

-

A: YSWS stands for "You Ship, We Ship" — a Hack Club program where you build and ship cool projects, and in return you get real rewards.

-
-
-

Q: Is it free?

-

A: Yes! Twisted is completely free to participate in.

-
-
-

Q: What is Hack Club?

-

A: Hack Club is a global nonprofit network of teen hackers, makers, and coders who build projects together and support each other.

-
-
-

Q: When does it start?

-

A: Twisted kicks off in the first week of September!

-
-
-

Q: When does the beta launch?

-

A: The beta launches 10 days before the main start — so late August!

-
+ + Hack Club + +
+
+
+
+ +
+
+ faqs.exe +
+
+ + + + × + +
+
+
+
+

Q: What is Twisted?

+

A: Twisted is a YSWS where you complete 7 pathways of challenges, keep up your streak for bonus rewards, and earn a laptop and PC at the end!

+
+
+

Q: What is a YSWS?

+

A: YSWS stands for "You Ship, We Ship" — a Hack Club program where you build and ship cool projects, and in return you get real rewards.

+
+
+

Q: Is it free?

+

A: Yes! Twisted is completely free to participate in.

+
+
+

Q: What is Hack Club?

+

A: Hack Club is a global nonprofit network of teen hackers, makers, and coders who build projects together and support each other.

+
+
+

Q: When does it start?

+

A: Twisted kicks off in the first week of September!

+
+
+

Q: When does the beta launch?

+

A: The beta launches 10 days before the main start — so late August!

+
+
+
-
-
- - -{% comment %} + {% comment %} Check out twisted_site/templates/cotton/homepage_taskbar.html to change the taskbar :p - Kavyansh -{% endcomment %} - - -{% endblock body %} \ No newline at end of file + {% endcomment %} + +{% endblock body %} diff --git a/twisted/twisted_site/templates/client/homepage.html b/twisted/twisted_site/templates/client/homepage.html index 82d3b40..5612ae1 100644 --- a/twisted/twisted_site/templates/client/homepage.html +++ b/twisted/twisted_site/templates/client/homepage.html @@ -1,121 +1,104 @@ {% extends "base.html" %} {% load static %} {% block body %} - - - Hack Club - - -
-
-
-
-
- T -
- - - twisted.exe - -
- -
- - - - - -
-
- -
-
-
- Twisted -
- -
-
- - message from the orgs - - - -
- -

- Join a twisted YSWS where you build cool projects, - complete challenges, and work your way through a - roadmap to earn a PC. -

-
- -
- {% if login_enabled != 'false' %} - {% if user.is_authenticated %} - - - - {% else %} -
- {% csrf_token %} - - -
- {% endif %} - {% endif %} -
-
-
-
- -
- -{% comment %} +
+
+
+
+
T
+ twisted.exe +
+
+ + + +
+
+
+
+
+ Twisted +
+
+
+ message from the orgs + +
+

+ Join a twisted YSWS where you build cool projects, + complete challenges, and work your way through a + roadmap to earn a PC. +

+
+
+ {% if login_enabled != "false" %} + {% if user.is_authenticated %} + + enter twisted → + + {% else %} +
+ {% csrf_token %} + +
+ {% endif %} + {% endif %} +
+
+
+
+ +
+ {% comment %} Check out twisted_site/templates/cotton/homepage_taskbar.html to change the taskbar :p - Kavyansh -{% endcomment %} - -{% endblock body %} \ No newline at end of file + {% endcomment %} + +{% endblock body %} diff --git a/twisted/twisted_site/templates/client/osbase.html b/twisted/twisted_site/templates/client/osbase.html index efd0e6d..20cbea7 100644 --- a/twisted/twisted_site/templates/client/osbase.html +++ b/twisted/twisted_site/templates/client/osbase.html @@ -1,38 +1,35 @@ {% load static tailwind_tags static %} - - - - {% tailwind_css %} - - - Twisted - {% block css %} {% endblock css %} - {% block js %}{% endblock js %} - - - + + - - - - - {% block body %} meow :3 {% endblock body %} - - - - \ No newline at end of file + + {% block body %} meow :3 {% endblock body %} + + diff --git a/twisted/twisted_site/templates/client/pathways.html b/twisted/twisted_site/templates/client/pathways.html index 63304f0..430d7b1 100644 --- a/twisted/twisted_site/templates/client/pathways.html +++ b/twisted/twisted_site/templates/client/pathways.html @@ -1,187 +1,138 @@ {% extends "client/osbase.html" %} {% load static time_filters humanizelib maths mathfilters %} - {% block body %} -
- -
- - {% if not pathways %} -
-
:(
-
No pathways yet!
-
- Come check later. -
-
- {% endif %} - - - {% if current_pathways %} -
-
-
-

- Current Pathway{{ current_pathways|pluralize }} -

-
-
- -
- {% for pathway_info in current_pathways %} -
-
-
-

- {{ pathway_info.pathway.name|default:"none! please dm @kavyansh." }} -

- -
- Started - - {{ pathway_info.pathway.start|naturaltime }} - - - - - Ends - - {{ pathway_info.pathway.end|naturaltime }} - -
-
- -
-
- {{ pathway_info.minutes_spent|minutes_to_hours_minutes }} -
-
- of {{ pathway_info.pathway.min_mins|minutes_to_hours_minutes }} -
-
-
-
- {% endfor %} -
-
- {% endif %} -
- - {% if future_pathways %} -
- -
-
-

- Future Pathways -

-
+
+
+ {% if not pathways %} +
+
:(
+
No pathways yet!
+
Come check later.
- -
- {% for pathway_info in future_pathways %} -
- -
-

- {{ pathway_info.pathway.name }} -

- - - {{ pathway_info.pathway.end|sub:pathway_info.pathway.start|naturaldelta }} - long - -
- -
- Starts - - {{ pathway_info.pathway.start|naturalday }} - - - - - Ends - - {{ pathway_info.pathway.end|naturalday }} - -
- + {% endif %} + {% if current_pathways %} +
+
+
+

Current Pathway{{ current_pathways|pluralize }}

+
- {% endfor %} -
- -
+
+ {% for pathway_info in current_pathways %} +
+
+
+

+ {{ pathway_info.pathway.name|default:"none! please dm @kavyansh." }} +

+
+ Started + + {{ pathway_info.pathway.start|naturaltime }} + + + Ends + + {{ pathway_info.pathway.end|naturaltime }} + +
+
+
+
{{ pathway_info.minutes_spent|minutes_to_hours_minutes }}
+
of {{ pathway_info.pathway.min_mins|minutes_to_hours_minutes }}
+
+
+
+ {% endfor %} +
+ {% endif %} - - {% if past_pathways %} -
- -
-
-

- Past Pathways -

-
-
- -
- {% for pathway_info in past_pathways %} -
- -
-

- {{ pathway_info.pathway.name }} -

- - - {{ pathway_info.pathway.end|sub:pathway_info.pathway.start|naturaldelta }} - long - +
+ {% if future_pathways %} +
+
+
+

Future Pathways

+
- -
- Started - - {{ pathway_info.pathway.start|naturalday }} - - - - - Ended - - {{ pathway_info.pathway.end|naturalday }} - +
+ {% for pathway_info in future_pathways %} +
+
+

{{ pathway_info.pathway.name }}

+ + {{ pathway_info.pathway.end|sub:pathway_info.pathway.start|naturaldelta }} + long + +
+
+ Starts + + {{ pathway_info.pathway.start|naturalday }} + + + Ends + + {{ pathway_info.pathway.end|naturalday }} + +
+
+ {% endfor %}
- -
- {{ pathway_info.minutes_spent|minutes_to_hours_minutes }} - / - {{ pathway_info.pathway.min_mins|minutes_to_hours_minutes }} - spent +
+ {% endif %} + {% if past_pathways %} +
+
+
+

Past Pathways

+
- -
- {% endfor %} -
- -
- {% endif %} - - +
+ {% for pathway_info in past_pathways %} +
+
+

{{ pathway_info.pathway.name }}

+ + {{ pathway_info.pathway.end|sub:pathway_info.pathway.start|naturaldelta }} + long + +
+
+ Started + + {{ pathway_info.pathway.start|naturalday }} + + + Ended + + {{ pathway_info.pathway.end|naturalday }} + +
+
+ {{ pathway_info.minutes_spent|minutes_to_hours_minutes }} + / + {{ pathway_info.pathway.min_mins|minutes_to_hours_minutes }} + spent +
+
+ {% endfor %} +
+ + {% endif %} +
- -
- - -
-
- {{ pathways|length }} - pathway{{ pathways|length|pluralize }} +
+
+ {{ pathways|length }} + pathway{{ pathways|length|pluralize }} +
- -
-{% endblock body %} \ No newline at end of file +{% endblock body %} diff --git a/twisted/twisted_site/templates/client/projects/create.html b/twisted/twisted_site/templates/client/projects/create.html index f5b2127..dab790f 100644 --- a/twisted/twisted_site/templates/client/projects/create.html +++ b/twisted/twisted_site/templates/client/projects/create.html @@ -1,76 +1,53 @@ {% extends "client/osbase.html" %} - {% block body %} -
- -
- {% csrf_token %} - -
-
- Create a new project +
+ + {% csrf_token %} +
+
Create a new project
+
Enter the details for your project below.
-
- Enter the details for your project below. -
-
- -
- -
- -
- - - -
- -
- - - +
+
+
+ + +
+
+ + +
+
+ + +
- -
- - - -
-
- -
- -
-
- +
+
+ +
- -
- - - -
-{% endblock body %} \ No newline at end of file + +
+{% endblock body %} diff --git a/twisted/twisted_site/templates/client/projects/detail.html b/twisted/twisted_site/templates/client/projects/detail.html index f2bd3ac..50881a6 100644 --- a/twisted/twisted_site/templates/client/projects/detail.html +++ b/twisted/twisted_site/templates/client/projects/detail.html @@ -1,340 +1,267 @@ -{% extends "client/osbase.html" %} {% load static time_filters humanize %} {% block body %} -
- - -
-
-
-
-

{{ project.project_name }}

- - - {{ project.get_project_type_display }} - - - {% if project.is_shipped %} - {% if project.latest_ship.status == 'rejected' %} - permanently rejected - {% else %} - shipped - {% endif %} - {% endif %} -
- -

- {{ project.project_description }} -

-
- -
- {% if project.user == request.user %} - {% if project.repo_url and project.playable_url and project.screenshot_url and project.time_logged > 60 %} {% if not project.is_shipped %} - - - - {% endif %} {% endif %} - {% if not project.is_shipped %} - - - - {% endif %} - {% endif %} -
- -