Uwazi: Homepage hero for CEJIL

Created on 15 Aug 2017  路  5Comments  路  Source: huridocs/uwazi

  • [x] Create homepage hero layout.
  • [x] Sync data amount (causas + medidas provisionales, documentos) with library.
  • [x] Support translation.
  • [x] Don't use search box, add direct access to Causas and Documentos.
  • [ ] Look for background image.
  • [ ] Remove description title.
  • [ ] Reduce description size.

home-header

High Sprint UUI

Most helpful comment

Since the South America image was not royalty free, here is an alternative version:
cejil-hero

All 5 comments

@danicatalan I have created a {customhook} tag which will allow inserting into pages any type of component we design, to avoid having to program 'exceptions' to when things are displayed.

That should work perfectly for this. So please design this as a completely separate component, and then we can easily include it in the pages with the custom hook escape code.

This is done and has been incorporated into #1239.

The way to use the hero is:

{customhook}(component:cejilHero,title:'Busca en XX causas y YY documentos',subtitle:'Analizador de Jurisprudencia del Sistema Interamericano de DD.HH.',buttons:!('Causas','Documentos'))

The component will replace XX with the sum of Processes and Provisional Measures, and YY with the sum of all document types (currently exiting in the DB) in the main Title. Subtitle and Buttons Labels are also configurable.

This will allow changing phrases and wordings without the need of a devs intervention. Alas, it makes the implementation of the component a bit 'heavy'.

Here is the result:
screenshot from 2017-08-17 14-35-45

ps. @danicatalan I think I liked the white text over darker background better?

@RafaPolit It depends on the background image. With the current cejil.org background it's better to keep it light. But with more complex background it's better to get the darker one.

homepage-old

homepage

Since the South America image was not royalty free, here is an alternative version:
cejil-hero

Thanks @RafaPolit 馃敐 馃敐 馃敐

Was this page helpful?
0 / 5 - 0 ratings