socialBox: A social box to present a product or people

Description Usage Arguments Author(s) Examples

View source: R/boxes.R

Description

A social box to present a product or people

Usage

1
2
3
socialBox(..., width = 3, height = 390, title = NULL, url_1 = NULL,
  url_2 = NULL, media_1 = NULL, media_2 = NULL, profile_img = NULL,
  footer = NULL)

Arguments

...

elements to put in the box

width

Box width

height

Box height

title

Box title

url_1

Box link 1

url_2

Box link 2,

media_1

Media name like twitter, facebook, ...

media_2

Media name like twitter, facebook, ...

profile_img

Box profile image

footer

Box footer content, if any.

Author(s)

David Granjon, dgranjon@ymail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
if (interactive()) {
 library(shiny)
 library(gentelellaShiny)
 shinyApp(
  ui = gentelellaPageCustom(
   gentelellaBody(
    socialBox(
     title = "Social Box",
     url_1 = "https://www.facebook.com",
     url_2 = "https://twitter.com",
     media_1 = "facebook",
     media_2 = "twitter",
     profile_img = "https://image.flaticon.com/icons/svg/17/17004.svg",
     footer = "If you\'ve decided to go in development
     mode and tweak all of this a bit, there are few
     things you should do.",
     socialStats(
      socialStatsItem(value = 123, name = "Articles"),
      socialStatsItem(value = 1234, name = "Followers"),
      socialStatsItem(value = 435, name = "Following")
     )
    )
   )
  ),
  server = function(input, output, session) {}
 )
}

MarkEdmondson1234/gentelellaShiny documentation built on Dec. 31, 2019, 1:24 a.m.