Giter Club home page Giter Club logo

kurku_app's Introduction

Hi there 👋 ! Welcome to my profile!

🌱 I'm a passionate developer working mostly in Javascript Vue Js at the moment, I've previously worked in React and also PHP.
🌱 I’m currently learning lots of stuff, actually developing an app as a fullstack dev in VueJs 3 and Express JS. Not very active in github lately, as in my current job we use gitlab.

📫 How to reach me:          

Projects

The Joke Factory 🤡
Project done with React-Redux, Sass, axios and external joke API


MeetDev

Project done in groupe of 5 developers
Front end done with React-Redux, Sass and axios.
Back end in Lumen Laravel


Portfolio

Project done with React-Redux, Sass and Material UI library


Space Tourism

Multipage site from Frontendmentor challenges
done with React and Sass from scratch


Kurku App Landing Page

Landing page for a musician's application for users to learn with video tutorials
done with NextJs (React) and Sass from scratch

Anurag's GitHub stats

kurku_app's People

Contributors

alerafart avatar deepsourcebot avatar franciscorafart avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

franciscorafart

kurku_app's Issues

contact form API not working in footer branch

endpoint API contact form doesnt work @franciscorafart

pages/api/form.js

export default function handler(req, res) {
    // Get data submitted in request's body.
    const body = req.body
  
    // Optional logging to see the responses
    // in the command line where next.js app is running.
    console.log('body: ', body)
  
    // Guard clause checks for first and last name,
    // and returns early if they are not found
    if (!body.name || !body.email || !body.message) {
      // Sends a HTTP bad request error code
      return res.status(400).json({ data: 'First or last name not found' })
    }
    // Found the name.
    // Sends a HTTP success code
    res.status(200).json({ data: `${body.name} ${body.name} ${body.email} ${body.message}` })
  }```

## components/Footer/Contact_Form
```javascript
import { useState } from 'react';
import styles from './footer.module.scss';
// import handler from '../../pages/api/form';
export default function Contact_Form() {
  const [name, setName] = useState('');
  const [email, setEmail] = useState('');
  const [message, setMessage] = useState('');
  
  const handleSubmit = e => {
    e.preventDefault();
    const data = {
      name,
      email,
      message,
    };
    console.log(data);
  };

  return (
    <div>
      <section className={styles.footer__contact}>
        <form 
          action="/api/form"
          method="post"
          onSubmit={handleSubmit} 
          className={styles.footer__contact__form}>
            <label htmlFor="name">Name:</label>
            <input
                id="name"
                type="text"
                onChange={e => setName(e.target.value)}
            />
            <label htmlFor="email">Email:</label>
            <input
                id="email"
                type="email"
                onChange={e => setEmail(e.target.value)}
            />
            <label htmlFor="message">Message:</label>
            <textarea
                id="message"
                type="text"
                rows="4"
                onChange={e => setMessage(e.target.value)}
            />
            <button type="submit">Send</button>
            </form>
        </section>
    </div>
  );
}

API endpont response onSubmit

data | "First or last name not found"

image

error warning in terminal while running npm run dev

When running npm run dev in the load-data-json branch I get this warning in the terminal, cant get rid of it
./pages/index.js
Should not import the named export 'videolist' (imported as 'videolist') from default-exporting module (only default export is available soon)
image

I triend importing json in many different ways , no succes...
Also message about icons but everything looks fine in the browser...
Gracias @franciscorafart

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.