Coder Social home page Coder Social logo

animate's Introduction

ANÍMATE!

Second WCS project

This idea is based on what is missing in others event apps. We want to use the generalitat api for develop a program where you can filter al the events of Catalunya by the city, the category and the day. After that the user will have the posibility to change the view of the events from list to map view and also to change with a calendar displayed the date to see other events

For this React project we organize the components like this:

  • App.js
    • Filters
      • Calendar
        • Header
          • Event List
            • Event Details
          • Event Map
            • Event Details

For the styling and form control we use a material-ui packages and for the date date-fns package.

The general logic is orginized between App and Filters, and the most especific things in each component. Also we use an external sheredFunction.js to use the same function by diferent components.

In App we recive the data api from the day that you are looking to the page, Also here is integred the spinner logo for the moment when the api is loading. Is needed to change all the time the format for the date of the events to transform to js Date for filters date and calendar date, and also for creating an array of the start dat to the end date od events and display them in all this days.

Inside the filters navbar we manage with diferent functions the selects of city, type of event and date, and the control of all the possible errors before sending the api filtered to the child components. Also we display a little counter of events before going to the event list so the user is going to know how many events are going to be and if there aren't.

In the Calendar we recive the data api filtered to pass it to the event list and also to manage the dates with a onclick in each day the change the state of filters so the events are changing also. The calendar is an array that displays from today to the end of the data api events date.

Header

Is the component of CalendarNav, because it appears only after you choose the filters. In the Header you find the navbar that contains a logo and the icons for other displayed components: eventmap, event list and home-Filerts.

EventMap

For this component we used the Leaflet map package here, with the styling from OpenStreetMap. This is linked directly in index.css and index.html After that we create the EventMap component that receives the information from the parent and used some functions to convert what we receive from the API.

For the markers on the map, we pass the coordinates of the selected cities and specific events and convert them to inter from string(how it comes from API).

The EventDetails is a modal with scroll bar made with MUI and receives props from the parent,with icons as titles, and images for each category.

animate's People

Contributors

juliebrossedev avatar alecsundra avatar masko-vl avatar

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.