Skip to content
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

Initial work on header for code blocks #40

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

fcooper8472
Copy link
Member

Not ready yet.

Copy link
Contributor

@martinjrobins martinjrobins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great :) some comments below, more about future stuff todo rather than needs to be fixed now.

headerColor = 'bg-red-300 dark:bg-red-700'
}

const copyToClipboardButton = (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its generally good to refactor these things into their own react component, e.g. Button. We are actually already using a component library called https://www.flowbite-react.com/, which provides such a button, but I wrote this function before I started using it.

</CopyToClipboard>
)

const headerBox = (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again this could be a separate HeaderBox component. Note that I realise I've been a bit lazy and not done this in many places :) so I'm not saying do this now, just that in the future we should build up a library of components we us across the site, so the styling is consistent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants