Règles de marque
Règles
Suivez ces règles pour que le bouton reste cohérent sur toutes les plateformes.
Largeur minimale
200pxPadding
14px 32pxBorder radius
16pxGraisse de la police
600 (Semibold)Taille de la police
16pxCouleur du texte
#FFFFFF (blanc)Animation
gradient-shift 6s ease infiniteÀ faire
- Utiliser les couleurs du dégradé officiel exactement comme indiqué
- Garder un espace libre d’au moins 8px autour du bouton
- Utiliser « Se connecter avec Bink » ou son équivalent traduit comme texte du bouton
- Conserver l’effet gradient-shift animé
À éviter
- Changer les couleurs ou la direction du dégradé
- Supprimer l’animation du dégradé
- Ajouter des icônes ou des décorations au bouton
- Réduire le bouton en dessous de la taille minimale
Options
Variantes
Trois variantes officielles pour s’adapter à différents contextes.
Standard
Le bouton par défaut avec le dégradé orange de Binatomy. À utiliser sur fond clair.
Dark
Une version sombre à utiliser sur fond coloré ou sombre.
Compact
Version icône seule pour les espaces réduits. Minimum 44×44px.
Sizes
Intégration
Exemples de code
Des snippets prêts à copier-coller pour votre plateforme.
HTML / CSS
Ajoutez ce CSS à votre feuille de style, ou incluez la feuille de style du bouton Bink :
html<!-- CSS --> <style> @keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } .btn-bink { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background-image: linear-gradient( 135deg, #ff9500, #f7931e, #ff6b35 30%, #f15a24, #ff8c42 70%, #f7931e, #ff9500 ); background-size: 300% 300%; animation: gradient-shift 6s ease infinite; color: #ffffff; font-weight: 600; font-size: 16px; padding: 14px 32px; border-radius: 16px; border: none; cursor: pointer; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 4px 14px 0 rgba(255, 107, 53, 0.3); } .btn-bink:hover { transform: scale(1.03); box-shadow: 0 6px 20px 0 rgba(255, 107, 53, 0.4); } </style> <!-- Button --> <a href="https://bink4.me/api/oauth/authorize?client_id=YOUR_ID&redirect_uri=YOUR_URI&response_type=code" class="btn-bink"> Accedi con Bink </a>React / Next.js
tsx// BinkButton.tsx import './bink-button.css'; // or include the CSS above interface BinkButtonProps { text?: string; clientId: string; redirectUri: string; size?: 'sm' | 'md' | 'lg'; } export function BinkButton({ text = 'Sign in with Bink', clientId, redirectUri, size = 'md', }: BinkButtonProps) { const sizeClass = size === 'sm' ? 'btn-bink-sm' : size === 'lg' ? 'btn-bink-lg' : ''; const authUrl = `https://bink4.me/api/oauth/authorize?${new URLSearchParams({ client_id: clientId, redirect_uri: redirectUri, response_type: 'code', })}`; return ( <a href={authUrl} className={`btn-bink ${sizeClass}`}> {text} </a> ); } // Usage: // <BinkButton clientId="YOUR_ID" redirectUri="https://yourapp.com/callback" />React Native
tsx// BinkButton.tsx (React Native / Expo) import { TouchableOpacity, Text, StyleSheet } from 'react-native'; import { LinearGradient } from 'expo-linear-gradient'; import * as WebBrowser from 'expo-web-browser'; interface Props { text?: string; clientId: string; redirectUri: string; } export function BinkButton({ text = 'Accedi con Bink', clientId, redirectUri, }: Props) { const handlePress = async () => { const params = new URLSearchParams({ client_id: clientId, redirect_uri: redirectUri, response_type: 'code', }); await WebBrowser.openAuthSessionAsync( `https://bink4.me/api/oauth/authorize?${params}`, redirectUri ); }; return ( <TouchableOpacity onPress={handlePress} activeOpacity={0.9}> <LinearGradient colors={['#ff9500', '#f7931e', '#ff6b35', '#f15a24', '#ff8c42']} start={{ x: 0, y: 0 }} end={{ x: 1, y: 1 }} style={styles.button} > <Text style={styles.text}>{text}</Text> </LinearGradient> </TouchableOpacity> ); } const styles = StyleSheet.create({ button: { paddingVertical: 14, paddingHorizontal: 32, borderRadius: 16, alignItems: 'center', justifyContent: 'center', shadowColor: '#ff6b35', shadowOffset: { width: 0, height: 4 }, shadowOpacity: 0.3, shadowRadius: 14, elevation: 6, }, text: { color: '#ffffff', fontWeight: '600', fontSize: 16, }, });
Palette
Spécifications des couleurs
La palette officielle de Binatomy utilisée dans le dégradé.
NomHexUtilisation
Bink Orange
#ff9500Début et fin du dégradé principalBink Amber
#f7931eMilieu du dégradéBink Flame
#ff6b35Accent du dégradé (30 %)Bink Red-Orange
#f15a24Profondeur du dégradéBink Tangerine
#ff8c42Accent du dégradé (70 %)CSS Gradient
background-image: linear-gradient(
135deg,
#ff9500, /* Bink Orange */
#f7931e, /* Bink Amber */
#ff6b35 30%, /* Bink Flame */
#f15a24, /* Bink Red-Orange */
#ff8c42 70%, /* Bink Tangerine */
#f7931e, /* Bink Amber */
#ff9500 /* Bink Orange */
);
background-size: 300% 300%;
animation: gradient-shift 6s ease infinite;Prêt à l’intégrer ?
Consultez la documentation OAuth 2.0 complète pour intégrer « Se connecter avec Bink » dans votre app.