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

finish hero section and navbar section #15

Closed
wants to merge 4 commits into from

Conversation

AbduallahBarmu
Copy link
Collaborator

close #11
close #4

I have finished NavBar taske (Routing and functionality with design)
Hero sections (functionality and designing)

@netlify
Copy link

netlify bot commented Aug 15, 2021

✔️ Deploy Preview for choose-wisely ready!

🔨 Explore the source changes: cb2acbf

🔍 Inspect the deploy log: https://app.netlify.com/sites/choose-wisely/deploys/612119d55607e8000782944a

😎 Browse the preview: https://deploy-preview-15--choose-wisely.netlify.app/

Copy link
Collaborator

@Ammar-64 Ammar-64 left a comment

Choose a reason for hiding this comment

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

all text should be coming from the text files, I wrote in many places but not all of them and writing it here to keep it in mind

@@ -1,102 +1,46 @@
import React from "react"; // , { useEffect }
Copy link
Collaborator

Choose a reason for hiding this comment

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

you'll need to pull the new changes from dev to get the latest updates there

<div>
<Nav className="ml-auto nav__items ">
<Nav.Link href="/">
<span>Home </span>
Copy link
Collaborator

Choose a reason for hiding this comment

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

all the text should be coming from the translation file, there shouldn't be any text hard coded, like home, about, etc...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

since it will changes in the future so I removed all the text from pages

@import "./../../style/variables";

.nav__bar {
color: #ffffff !important;
Copy link
Collaborator

Choose a reason for hiding this comment

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

you'll have to avoid using important, look at Zakarias code to figure it out

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

since I am using bootstrap I need to use it to handle css code
I have look it at zakarias code also he use it , take a look on the FooterButtons style


.nav__brand {
color: $primary-color !important;
font-size: 30px !important;
Copy link
Collaborator

Choose a reason for hiding this comment

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

all the units should be in rem not px

font-family: $logo-font;
}
.nav__btn {
margin-left: 4ch;
Copy link
Collaborator

Choose a reason for hiding this comment

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

what is a ch, let's try to be as consistent as possible

function About() {
return (
<div>
<h2>About page </h2>
Copy link
Collaborator

Choose a reason for hiding this comment

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

also here this should be coming from the translation files

function Blog() {
return (
<div>
<h2>Blog page </h2>
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here, translation files

<div className="hero_contant">
<div className="hero_title">
<h1>
The Only Place for <br />
Copy link
Collaborator

Choose a reason for hiding this comment

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

all text from translation

</div>
</Col>
<Col lg={7}>
<img src={hero} alt="" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

alt should not be empty

@@ -1 +1,38 @@
// hero section for homepage
Copy link
Collaborator

Choose a reason for hiding this comment

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

hero file should be in component not containers, it should be under Hero folder with the name index.js

@MohammedZakaria2
Copy link
Collaborator

@abduallahB I have good knowledge of your code and based on that i have the same comments that Ammar mentioned in his review

<BrowserRouter>
<Switch>
<Route exact path="/" component={Home} />
<Route path="/About" component={About} />
Copy link
Collaborator

Choose a reason for hiding this comment

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

The "Ressources" section is missing from the NavBar

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I did not know how I did not see it at all but now I fix it

<p> universities and learning approaches. </p>
</div>
<div className="hero_search">
<input type="search" placeholder="search... " />
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you change "search" to "Search".

import Hero from "./Hero";
import "./style.scss";

function Home() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

could change this to arrow function to be consistent with the rest of the code. Same for the other functions

Copy link
Collaborator Author

@AbduallahBarmu AbduallahBarmu Aug 17, 2021

Choose a reason for hiding this comment

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

actually I would like to do that but I cant becase I feel more comfortable with it to make a difference between componetes and methods (function ) inside the same components so if you can change yours will be better

}
}

p {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this p will affect all the p tags in the project, you should give it a className

<Col lg={5}>
<div className="hero_contant">
<div className="hero_title">
<h1>
Copy link
Collaborator

Choose a reason for hiding this comment

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

all the texts should be imported form the translation files


const Universities = () => {
return;
<div></div>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think if you put these in the same line of the return it'll be solved

@AbduallahBarmu
Copy link
Collaborator Author

PTAL
Screenshot (423)

Copy link
Collaborator

@Ammar-64 Ammar-64 left a comment

Choose a reason for hiding this comment

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

You'll have to delete package-lock.json since we're using yarn not npm and merge the updated dev branch with yours to be up to date and solve the conflicts

@@ -0,0 +1,38 @@
import React from "react";
Copy link
Collaborator

Choose a reason for hiding this comment

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

the name of this file should be index.jsx

@Ammar-64
Copy link
Collaborator

Ammar-64 commented Sep 1, 2021

@abduallahB can you please solve the issues with this branch

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.

home-page-hero-section navbar
5 participants