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

feat: add template #1 - quickstart #4

Merged
merged 15 commits into from
Aug 7, 2024
Merged

feat: add template #1 - quickstart #4

merged 15 commits into from
Aug 7, 2024

Conversation

abcrane123
Copy link
Contributor

@abcrane123 abcrane123 commented Aug 6, 2024

What changed? Why?
Screenshot 2024-08-05 at 9 31 01 PM

Screenshot 2024-08-05 at 9 31 11 PM

Notes to reviewers

How has it been tested?

@abcrane123 abcrane123 self-assigned this Aug 6, 2024
@abcrane123 abcrane123 changed the title Add template components Add template #1 - quickstart Aug 6, 2024
@abcrane123 abcrane123 changed the title Add template #1 - quickstart feat: add template #1 - quickstart Aug 6, 2024

/* i believe this is necessary because
of a div added by rainbowkit provider */
body > div {
Copy link
Contributor

Choose a reason for hiding this comment

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

I can see junior developer tripping on this.

Can we do this in a more simple way?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmmm i couldn't really think of anything better because it is a hidden div without a classname. do you have an idea?

Copy link
Contributor

Choose a reason for hiding this comment

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

so are you trying to target what in particular? the first div after the body ?

}

.ockConnectWallet_Container span {
color: #030712;
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's start introducing CSS variables

@@ -0,0 +1,18 @@
export default function BaseSvg() {
Copy link
Contributor

Choose a reason for hiding this comment

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

let's start introducing a svg folder. It will end up useful as we use this template for future more complex templates.

<section className="mt-12 mb-6 flex w-full flex-col justify-between gap-2 md:flex-row ">
<aside className="flex items-center justify-center md:justify-start">
<h3 className="mr-2 text-m">Built with love on</h3>
<BaseSvg />
Copy link
Contributor

Choose a reason for hiding this comment

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

I think is best we say, Built with love by the OnchainKit team. And avoid mentioning Base, as this is a repo done by Coinbase.

<ul className="flex justify-center gap-6 md:justify-start">
{docLinks.map(({ href, title }) => (
<li className="flex" key={href}>
<a href={href} target="_blank" rel="noreferrer">
Copy link
Contributor

Choose a reason for hiding this comment

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

title is missing, which is critical for SEOs.

} from '@coinbase/onchainkit/transaction';
import type { Address, ContractFunctionParameters } from 'viem';

const clickContractAddress = '0x67c97D1FB8184F038592b2109F854dfb09C77C75';
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's move those into a constants file in src

src/wagmi.ts Outdated
],
{
appName: 'onchainkit',
projectId: 'b9c838acbe76023b550d93eae506c69b',
Copy link
Contributor

Choose a reason for hiding this comment

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

This should come from the ENV file. And never commited.

Copy link
Contributor

@Zizzamia Zizzamia left a comment

Choose a reason for hiding this comment

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

I am going to merge this one as it is.
And I will take care to fix the build.

@Zizzamia Zizzamia merged commit e870ca1 into main Aug 7, 2024
5 of 6 checks passed
@Zizzamia Zizzamia deleted the alissa.crane/template branch August 7, 2024 00:54
@abcrane123 abcrane123 restored the alissa.crane/template branch August 8, 2024 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants