Git Product home page Git Product logo

fcrwebapp's People

Contributors

ngc2392 avatar trevorsc19 avatar

Stargazers

 avatar

fcrwebapp's Issues

How is the email sent?

I'm having trouble finding where exactly where in the code the email is being sent on contact.js.

Add login page

Once the design is completed, we will have to write the React code for it. We don't have to worry about the code that will submit the form at the moment (that will be taken care of with JQuery AJAX or the Fetch API. This is just about the frontend code.


I like how Yousaf has everything organized. If we create a login popup on the home page, let's create a login.js at src/components/ and then export that component and add it to src/components/pages/home.js:

function Home() {
  return (
    <div>
      <Preloader />
      <Navbar />
      <LoginBox />
      <Banner />
      <HowItWorks />
    </div>
  );
}

<Home> then gets rendered in src/index.js.


If Login is its own page, then we'll lets create a js file for it at src/components/pages/login.js (rendering any components inside the login Class). Then, we'll do

if (window.location.pathname === "/") {
  ReactDOM.render(<Home />, document.getElementById("root"));
} else if (window.location.pathname === "/contact") {
  ReactDOM.render(<Contact />, document.getElementById("root"));
} else if (window.location.pathname === "/login") {
  ReactDOM.render(<Login />, document.getElementById("root"));

Let's finish and agree on #3 before assigning this task to someone.

"How it works" button

Fix how it works. Either only have that option on the home page or make it work so that it takes the user back to home page/how it works section from whenever they press it

Use Django to send Email

Set up an endpoint in views.py to send email on POST request once 'submit' button is clicked.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.