Skip to content

reworthrewards/iframe-directory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo - Reworth (2)

REWORTH'S directory iframe

REWORTH's iframe-directory is a quick solution to integrate the rewards directory, you will be able to insert the iframe and have the directory up and running in no time without having to touch code.

This iframe is a development hosted by Reworth that uses our react directory component.

How to use it?

It can be embebed on a website or webView within a mobile application using the following tag:

example
<iframe width="100%" height="100%" src="https://directory.reworth.app/?accentColor=4767D8&filters=category,popularity,rating,price&layout=card&lang=EN&showHeader=true" 
frameBorder="0" />

You can generate your iframe with this builder tool 🛠️

Supported params

You can customize certain aspects of the component via url as params. Here you can find a definition of each one of these params and their supported value and structure.

accentColor
src="https://directory.reworth.app/?accentColor=4767D8"
Description: Desired color for some UI elements
Value: HEX color code

filters
src="https://directory.reworth.app/?accentColor=4767D8&filters=category,popularity,rating,price"
Description: Filters available. This example contains all four supported filters. You can display a certain filter or all of them.
Value: category, popularity, rating, price.

layout
src="https://directory.reworth.app/?accentColor=4767D8&filters=category&layout=card"
Description: Layout distribution for rewards. This set the UI to show rewards as a single table or as responsive card distribution.
Value: table, card

lang
src="https://directory.reworth.app/?accentColor=4767D8&filters=category&layout=card&lang=EN"
Description: Supported language. (English and Spanish)
Value: EN,ES

showHeader
src="https://directory.reworth.app/?accentColor=4767D8&filters=category&layout=card&lang=EN&showHeader=true"
Description: Default component header
Value: true, false

Will it work on my project?

This implementation has been tested and proven to work on:

  • React native
  • Ionic
  • website

Security

This iframe runs behind the scenes some headers to ensure security aspects:

X-XSS-Protection: helps us against OSX attacks
Content-Security-Policy: specifies the origin of server and scripts. Helps against cross site scripting attack.
Strict-Transport-Security: it is used to never receive things from http and to make everything by https to avoid scripting attack.

We work actively to develop better and more secure products so expect updates!

About

REWORTH'S ready-to-use directory iframe.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors