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/front #13

Closed
wants to merge 17 commits into from
Closed

Feat/front #13

wants to merge 17 commits into from

Conversation

SloWayyy
Copy link
Contributor

Description

Please provide a detailed description of what was done in this PR.
Precise the issue that you are resolving.

Changes include

  • Bugfix (non-breaking change that solves an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)

Breaking changes

Please complete this section if any breaking changes have been made, otherwise delete it.

Checklist

  • I have assigned this PR to myself
  • I have added at least 1 reviewer
  • I have added the needed labels
  • I have linked this PR to an issue
  • I have linked this PR to a milestone
  • I have linked this PR to a project
  • I have tested this code
  • I have added / updated tests (unit / functional / end-to-end / ...)
  • I have updated the README and other relevant documents (guides...)
  • I have added sufficient documentation both in code, as well as in the READMEs

Additional comments

Please post additional comments in this section if you have them, otherwise delete it.

@SloWayyy SloWayyy requested a review from LeTamanoir September 16, 2023 02:13
@SloWayyy SloWayyy self-assigned this Sep 16, 2023
@@ -0,0 +1,6 @@
#root {
max-width: 1780px;
Copy link
Member

Choose a reason for hiding this comment

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

hard-coded px values are BAD, especially at the root element.

return (
<>
<NavBar />
<Routes>
Copy link
Member

Choose a reason for hiding this comment

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

A better way should be to use a Layout architecture to add the Navbar to each page and a future Footer I guess.
see https://reactrouter.com/en/main/start/concepts#layout-routes

Copy link
Member

Choose a reason for hiding this comment

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

no need to push this

Copy link
Member

Choose a reason for hiding this comment

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

where is the superfluid favicon :(

@@ -0,0 +1,10 @@
const CardYourDao = (props: { name: string; description: string }) => {
Copy link
Member

Choose a reason for hiding this comment

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

You can use destructuring here

Suggested change
const CardYourDao = (props: { name: string; description: string }) => {
type Props = {
name: string;
description: string;
}
const CardYourDao = ({ name, description }: Props) => {

Connect Wallet
</button>
<p className="text-xl">About us</p>
<p className="text-xl">DAOs</p>
Copy link
Member

Choose a reason for hiding this comment

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

I think you are supposed to use <Links> here (but I guess it's not ready yet)

@LeTamanoir LeTamanoir self-requested a review October 1, 2023 17:36
Copy link
Member

@LeTamanoir LeTamanoir left a comment

Choose a reason for hiding this comment

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

le front est a 2 endroit dans le repo, a la racine et dans packages....

<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
Copy link
Member

Choose a reason for hiding this comment

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

faut mettre le bon title

@@ -0,0 +1,34 @@
{
"name": "superfluiddaofront",
Copy link
Member

Choose a reason for hiding this comment

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

nit: superfluid-dao-front

"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.16.0",
"web3": "^4.1.2"
Copy link
Member

Choose a reason for hiding this comment

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

on avait dis viem et wagmi, pas web3

}

body {
margin: 0;
Copy link
Member

Choose a reason for hiding this comment

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

tailwind reset deja le margin/padding du body normalement

body {
margin: 0;
padding: 0;
background-image: url("https://img.freepik.com/premium-vector/white-abstract-background-paper-style_23-2148389998.jpg?w=2000");
Copy link
Member

Choose a reason for hiding this comment

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

faut jamais utiliser des image externe (si elle est down t'es niqué)
telecharge la et met la dans le /static

description: string;
};

const CardYourDao = (props: Props) => {
Copy link
Member

Choose a reason for hiding this comment

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

same que avant

<img src={logo} alt="logo" className="w-25 h-20" />
</Link>
<div className="flex-row-reverse flex gap-20 items-center w-full">
<button className="btn btn-outline btn-success rounded-full">
Copy link
Member

Choose a reason for hiding this comment

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

faudrait connecter le wallet un jour.....

});

// Créer une instance Web3 pour interagir avec MetaMask
const web3 = new Web3((window as any).ethereum);
Copy link
Member

Choose a reason for hiding this comment

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

on avait dit wagmi et pas web3 :(

Copy link
Member

Choose a reason for hiding this comment

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

le detourage geto 😂

Copy link
Member

Choose a reason for hiding this comment

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

mets ca dans le index.css, t'as pas besoin de plusieurs fichiers css si c'est pour mettre 2 truc dedans

@moonia moonia self-assigned this Oct 9, 2023
@SloWayyy SloWayyy closed this Sep 27, 2024
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.

3 participants