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

Frontend - Restyle event header component #136

Open
minhngo3818 opened this issue Apr 8, 2023 · 0 comments
Open

Frontend - Restyle event header component #136

minhngo3818 opened this issue Apr 8, 2023 · 0 comments
Assignees
Labels
CSS require using css enhancement improve a feature for better usage Events-page events-page Frontend task relates to frontend

Comments

@minhngo3818
Copy link
Collaborator

This task will change the current style of the event widget. Restyling widget is separated into multiple tasks to address different parts of the event component.

This task only focuses on the event header which shows the event title, date, time, location, and an expand button (see below pictures). Here is the instruction for this task:

  • create event-header.js file under directory ~/client/src/components/events/
  • create a CSS file with the same name for styling if necessary
  • name the component as EventHeader
  • props: title, date, time, location all type string
  • implement the component
  • add a state handler for the expand button

To view the component,

  • import it to ~/client/src/pages/events/Events.js
  • replace lines 54 - 65 ( where className="event-header") with the new event header component
  • pass the appropriate props.

See components EventBriefs, EventDate, and ExpandButton as references (old code)

Styling detail: Use either CSS or Tailwind

  • background-color: #2A2C2E
  • corner radius: 10px
  • title: 32px, other text: 16px, text color is #ffffff
  • width: depends on the parent component
  • height: 140 - 180px
  • split in half top and bottom
  • top:
    • background-color: #ff9617
    • text and wrapping are describe in the white frame
    • button size: 48x48 px
    • background-color: 2A2C2E
    • chevron icon: #ff9617, estimate size: 32x32px (the icon can be imported from ~/client/scr/asset/icons/icon.jsx
  • bottom:
    • time and place box: border-color-#ff9617, max-width: 200px, height: 28px

The styling instruction is just an estimation. Make sure the component look like the demo

Demo
Event 3
Event 4 (1)

White frame:
OCC CSC - White frames

@minhngo3818 minhngo3818 added enhancement improve a feature for better usage CSS require using css Frontend task relates to frontend Events-page events-page labels Apr 8, 2023
@minhngo3818 minhngo3818 changed the title Frontend - Restyle event header Frontend - Restyle event header component Apr 8, 2023
@EdwinEstrada102 EdwinEstrada102 self-assigned this Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS require using css enhancement improve a feature for better usage Events-page events-page Frontend task relates to frontend
Projects
None yet
Development

No branches or pull requests

2 participants