bldg14 / eventual

A simple event calendar
https://eventual-client.fly.dev
MIT License
0 stars 0 forks source link

Create the event component #7

Closed kevinfalting closed 1 year ago

kevinfalting commented 1 year ago

Based on the data that is described in https://github.com/bldg14/eventual/issues/3#issue-1578820040, create an event component to display this information.

sudo-code:

return (
<div>
  <h2>Title</h2>
  <p>Begin - End time</p>
  <p>Description</p>
</div>
)

Have the component in a function that accepts props with the required data. Call that functional component with some hardcoded data from App.tsx.

Design the component however you like, we're just stubbing things out for now.

kevinfalting commented 1 year ago

Part of this issue was accomplished in https://github.com/bldg14/eventual/pull/9, so let's re-scope this issue to include taking in all of the data needed for an event and displaying it.

kevinfalting commented 1 year ago

This is how an event is represented on the server:

type Event struct {
    Title       string
    Start       time.Time
    End         time.Time
    Description string
    URL         string
    Email       string
}