-
Notifications
You must be signed in to change notification settings - Fork 0
feat!: rewrite #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
EthanL06
wants to merge
12
commits into
main
Choose a base branch
from
feat-rewrite
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a604700
init
EthanL06 e885d36
feat: update package name and description for clarity
EthanL06 b266473
fix: remove commented-out rule for explicit function return type in E…
EthanL06 99fd9d1
fix: ensure proper formatting in .gitignore by adding newline at end …
EthanL06 e9ea5ac
fix: remove redundant comment on auto-imports in wxt.config.ts
EthanL06 c1daf79
feat: switch to src directory
EthanL06 bc0e21a
fix: update connection handling and permissions in background script …
EthanL06 0f3ed34
fix: update content script match patterns for specific routes
EthanL06 6aff910
fix: enhance styling and add sidebar state management in App component
EthanL06 b5385e3
feat: add clipboard functionality to copy transcript from VTT
EthanL06 d811eb3
fix: remove autofill password for api key input
EthanL06 6a092bb
fix: same transcript appears on multiple lectures by reverting backgr…
EthanL06 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
@import "tailwindcss"; | ||
|
||
@theme { | ||
--color-ut-burntorange: #bf5700; | ||
--color-ut-black: #333f48; | ||
--color-theme-black: #1a2024; | ||
|
||
--ease-in-out-expo: cubic-bezier(0.46, 0, 0.21, 1); | ||
--ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1); | ||
|
||
--animate-scale-in: scale-in 400ms cubic-bezier(0.34, 1.56, 0.64, 1); | ||
--animate-scale-out: scale-out 250ms cubic-bezier(0.5, 0, 0.75, 0) forwards; | ||
|
||
--animate-slide-in: slide-in 500ms var(--ease-in-out-expo) forwards; | ||
--animate-slide-out: slide-out 500ms var(--ease-out-expo) forwards; | ||
--animate-expand: expand 300ms var(--ease-in-out-expo) forwards; | ||
--animate-collapse: collapse 300ms var(--ease-out-expo) forwards; | ||
|
||
--animate-in: enter 150ms ease; | ||
--animate-out: exit 150ms ease; | ||
|
||
@keyframes scale-in { | ||
0% { | ||
opacity: 0; | ||
transform: scale(0.8); | ||
} | ||
60% { | ||
opacity: 1; | ||
transform: scale(1.05); | ||
} | ||
100% { | ||
transform: scale(1); | ||
} | ||
} | ||
|
||
@keyframes scale-out { | ||
0% { | ||
transform: scale(1); | ||
opacity: 1; | ||
} | ||
100% { | ||
transform: scale(0.8); | ||
opacity: 0; | ||
} | ||
} | ||
|
||
@keyframes slide-in { | ||
0% { | ||
transform: translateX(100%); | ||
} | ||
100% { | ||
transform: translateX(0); | ||
} | ||
} | ||
|
||
@keyframes slide-out { | ||
0% { | ||
transform: translateX(0); | ||
} | ||
100% { | ||
transform: translateX(100%); | ||
} | ||
} | ||
|
||
@keyframes expand { | ||
0% { | ||
width: 80px; | ||
opacity: 0.7; | ||
} | ||
100% { | ||
width: 100%; | ||
opacity: 1; | ||
} | ||
} | ||
|
||
@keyframes collapse { | ||
0% { | ||
width: 100%; | ||
} | ||
100% { | ||
width: 24.5px; | ||
} | ||
} | ||
|
||
@keyframes enter { | ||
from { | ||
opacity: var(--tw-enter-opacity, 1); | ||
transform: translate3d( | ||
var(--tw-enter-translate-x, 0), | ||
var(--tw-enter-translate-y, 0), | ||
0 | ||
) | ||
scale3d( | ||
var(--tw-enter-scale, 1), | ||
var(--tw-enter-scale, 1), | ||
var(--tw-enter-scale, 1) | ||
); | ||
} | ||
} | ||
|
||
@keyframes exit { | ||
to { | ||
opacity: var(--tw-exit-opacity, 1); | ||
transform: translate3d( | ||
var(--tw-exit-translate-x, 0), | ||
var(--tw-exit-translate-y, 0), | ||
0 | ||
) | ||
scale3d( | ||
var(--tw-exit-scale, 1), | ||
var(--tw-exit-scale, 1), | ||
var(--tw-exit-scale, 1) | ||
); | ||
} | ||
} | ||
} | ||
|
||
@utility fade-in-* { | ||
--tw-enter-opacity: --value(percentage, ratio); | ||
} | ||
@utility fade-out-* { | ||
--tw-exit-opacity: --value(percentage, ratio); | ||
} | ||
|
||
@utility zoom-in-* { | ||
--tw-enter-scale: --value(percentage, ratio); | ||
} | ||
@utility zoom-out-* { | ||
--tw-exit-scale: --value(percentage, ratio); | ||
} | ||
|
||
@utility slide-in-from-top-* { | ||
--tw-enter-translate-y: calc(--value(percentage) * -1); | ||
--tw-enter-translate-y: calc(--value(ratio) * -100%); | ||
--tw-enter-translate-y: calc(--value(integer) * var(--spacing) * -1); | ||
} | ||
|
||
@utility slide-out-to-top-* { | ||
--tw-exit-translate-y: calc(--value(percentage) * -1); | ||
--tw-exit-translate-y: calc(--value(ratio) * -100%); | ||
--tw-exit-translate-y: calc(--value(integer) * var(--spacing) * -1); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import { createSignal, JSX } from 'solid-js'; | ||
import type { LucideIcon } from 'lucide-solid'; | ||
|
||
interface ButtonProps extends JSX.ButtonHTMLAttributes<HTMLButtonElement> { | ||
label?: string; | ||
icon: LucideIcon; | ||
active: boolean; | ||
} | ||
|
||
/** | ||
* Button component | ||
* | ||
* @param props - The button properties | ||
* @param props.label - The label for the button | ||
* @param props.icon - The icon component for the button | ||
* @param props.active - Whether the button is active | ||
* | ||
* @returns The button component | ||
*/ | ||
const Button = (props: ButtonProps): JSX.Element => { | ||
const [isHovered, setIsHovered] = createSignal(false); | ||
|
||
// Consider a button to be in expanded state when either hovered or active | ||
const isExpanded = () => isHovered() || props.active; | ||
|
||
return ( | ||
<button | ||
title={props.title || props.label} | ||
onClick={e => { | ||
if (typeof props.onClick === 'function') { | ||
props.onClick(e); | ||
} | ||
}} | ||
onMouseEnter={() => setIsHovered(true)} | ||
onMouseLeave={() => setIsHovered(false)} | ||
class={`flex h-7 items-center rounded bg-slate-100 px-1.5 py-1 transition-colors duration-400 hover:cursor-pointer hover:bg-slate-200 ${props.classList}`} | ||
classList={{ | ||
'bg-ut-burntorange hover:bg-ut-burntorange/90': props.active, | ||
'bg-slate-100': !props.label, | ||
}} | ||
{...props} | ||
> | ||
<props.icon | ||
class='text-theme-black size-4 stroke-2 transition-all duration-400 ease-in-out' | ||
classList={{ | ||
'text-white': props.active, | ||
}} | ||
/> | ||
{props.label && ( | ||
<span | ||
class='w-fit overflow-hidden text-xs font-medium whitespace-nowrap text-slate-800 transition-all duration-400 ease-in-out' | ||
classList={{ | ||
'opacity-0': !isExpanded(), | ||
'max-w-0': !isExpanded(), | ||
'pl-0': !isExpanded(), | ||
'opacity-100': isExpanded(), | ||
'max-w-[100px]': isExpanded(), | ||
'pl-1': isExpanded(), | ||
'text-white': props.active, | ||
}} | ||
> | ||
{props.label} | ||
</span> | ||
)} | ||
</button> | ||
); | ||
}; | ||
|
||
export default Button; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add this back in