-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
154 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
ul { | ||
list-style-type: none; | ||
list-style-type: none; | ||
} | ||
|
||
ul.horizontal { | ||
padding: 0; | ||
margin: 0; | ||
display: table; | ||
width: 100%; | ||
box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
-webkit-box-sizing: border-box; | ||
padding: 0; | ||
margin: 0; | ||
display: table; | ||
width: 100%; | ||
box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
-webkit-box-sizing: border-box; | ||
} | ||
|
||
ul.horizontal li { | ||
display: table-cell; | ||
padding: 8px; | ||
display: table-cell; | ||
padding: 8px; | ||
} | ||
|
||
ul.vertical li { | ||
background-color: white; | ||
padding: 10px; | ||
margin-bottom: 10px; | ||
border-radius: 50%; | ||
box-shadow: 10px; | ||
background-color: white; | ||
padding: 10px; | ||
margin-bottom: 10px; | ||
border-radius: 50%; | ||
box-shadow: 10px; | ||
} | ||
|
||
li:hover .fa-icon { | ||
-webkit-transform: rotate(-15deg); | ||
transform: rotate(-15deg); | ||
-webkit-transform: rotate(-15deg); | ||
transform: rotate(-15deg); | ||
} | ||
|
||
.fa-icon { | ||
-webkit-transition: -webkit-transform 0.2s ease-in-out; | ||
transition: transform 0.2s ease-in-out; | ||
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); | ||
-webkit-transition: -webkit-transform 0.2s ease-in-out; | ||
transition: transform 0.2s ease-in-out; | ||
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); | ||
} | ||
|
||
.icon-container { | ||
position: relative; | ||
width: 100%; | ||
max-width: 400px; | ||
position: relative; | ||
width: 100%; | ||
max-width: 400px; | ||
} | ||
|
||
.fa-icon-position { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
-ms-transform: translate(-50%, -50%); | ||
text-align: center; | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
-ms-transform: translate(-50%, -50%); | ||
text-align: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,55 @@ | ||
export const DEFAULT_SOCIAL = [{ | ||
name: "Facebook", | ||
fa_name: ["fab", "facebook-f"], | ||
color: "#3b5998", | ||
sharing_url: "http://www.facebook.com/sharer.php?u=", | ||
id: "fb", | ||
}, { | ||
name: "Twitter", | ||
fa_name:["fab", "twitter"], | ||
color: "#00acee", | ||
sharing_url: "http://twitter.com/?status=", | ||
id: "tw" | ||
}, { | ||
name: "Telegram", | ||
fa_name:["fab", "telegram-plane"], | ||
color: "#0088cc", | ||
sharing_url: "tg://msg?text=", | ||
only_mobile:true, | ||
id: "tg" | ||
}, { | ||
name: "Whatsapp", | ||
fa_name:["fab", "whatsapp"], | ||
color: "#00bb2d", | ||
sharing_url: "whatsapp://send?text=", | ||
only_mobile:true, | ||
id: "wa" | ||
}]; | ||
|
||
export const DEFAULT_SOCIAL = [ | ||
{ | ||
name: 'Facebook', | ||
fa_name: ['fab', 'facebook-f'], | ||
color: '#3b5998', | ||
sharing_url: 'http://www.facebook.com/sharer.php?u=', | ||
id: 'fb', | ||
}, | ||
{ | ||
name: 'Twitter', | ||
fa_name: ['fab', 'twitter'], | ||
color: '#00acee', | ||
sharing_url: 'http://twitter.com/?status=', | ||
id: 'tw', | ||
}, | ||
{ | ||
name: 'Telegram', | ||
fa_name: ['fab', 'telegram-plane'], | ||
color: '#0088cc', | ||
sharing_url: 'tg://msg?text=', | ||
only_mobile: true, | ||
id: 'tg', | ||
}, | ||
{ | ||
name: 'Whatsapp', | ||
fa_name: ['fab', 'whatsapp'], | ||
color: '#00bb2d', | ||
sharing_url: 'whatsapp://send?text=', | ||
only_mobile: true, | ||
id: 'wa', | ||
}, | ||
]; | ||
|
||
export const DEFAULT_POSITIONS = { | ||
"desktop": { | ||
position: 'fixed', right: '0', top: '50%', | ||
transform: 'translate(-50%, -50%)', | ||
zIndex: '9999' | ||
}, | ||
"mobile": { | ||
position: 'fixed', left: '50%', bottom: '-23px', | ||
transform: 'translate(-50%, -50%)', | ||
width: "100%", | ||
zIndex: '9999' | ||
} | ||
} | ||
desktop: { | ||
position: 'fixed', | ||
right: '0', | ||
top: '50%', | ||
transform: 'translate(-50%, -50%)', | ||
zIndex: '9999', | ||
}, | ||
mobile: { | ||
position: 'fixed', | ||
left: '50%', | ||
bottom: '-23px', | ||
transform: 'translate(-50%, -50%)', | ||
width: '100%', | ||
zIndex: '9999', | ||
}, | ||
}; | ||
|
||
// OPTIONS: "lg" | "xs" | "sm" | "2x" | "3x" | "4x" | "5x" | "6x" | "7x" | "8x" | "9x" | "10x" | ||
export const DEFAULT_LOGO_SIZE = "lg"; | ||
export const DEFAULT_LOGO_SIZE = 'lg'; | ||
|
||
export const DEFAULT_BUTTON_SIZE = "30px" | ||
export const DEFAULT_BUTTON_SIZE = '30px'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { library } from '@fortawesome/fontawesome-svg-core'; | ||
import { fas } from '@fortawesome/free-solid-svg-icons'; | ||
import {fab} from '@fortawesome/free-brands-svg-icons'; | ||
library.add(fas, fab); | ||
import { fab } from '@fortawesome/free-brands-svg-icons'; | ||
library.add(fas, fab); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import PropTypes from 'prop-types'; | ||
|
||
export const SOCIAL_INTERFACE = { | ||
name: PropTypes.string.isRequired, | ||
fa_name: PropTypes.array.isRequired, | ||
color: PropTypes.string.isRequired, | ||
sharing_url: PropTypes.string.isRequired, | ||
only_mobile:PropTypes.bool, | ||
id: PropTypes.string | ||
} | ||
export const LOGO_SIZE_INTERFACE = "lg"||"xs"||"6x"; | ||
name: PropTypes.string.isRequired, | ||
fa_name: PropTypes.array.isRequired, | ||
color: PropTypes.string.isRequired, | ||
sharing_url: PropTypes.string.isRequired, | ||
only_mobile: PropTypes.bool, | ||
id: PropTypes.string, | ||
}; | ||
export const LOGO_SIZE_INTERFACE = 'lg' || 'xs' || '6x'; |