Normas de marca
Pautas
Sigue estas normas para que el botón sea coherente en todas las plataformas.
Ancho mínimo
200pxPadding
14px 32pxBorder radius
16pxGrosor de la fuente
600 (Semibold)Tamaño de la fuente
16pxColor del texto
#FFFFFF (blanco)Animación
gradient-shift 6s ease infiniteSí
- Usa los colores del degradado oficial exactamente como se especifican
- Deja un espacio libre mínimo de 8px alrededor del botón
- Usa «Iniciar sesión con Bink» o su equivalente traducido como texto del botón
- Mantén el efecto gradient-shift animado
No
- Cambiar los colores o la dirección del degradado
- Quitar la animación del degradado
- Añadir iconos o adornos al botón
- Reducir el botón por debajo del tamaño mínimo
Opciones
Variantes
Tres variantes oficiales para distintos contextos.
Standard
El botón predeterminado con el degradado naranja de Binatomy. Úsalo sobre fondos claros.
Dark
Una versión oscura para fondos de color u oscuros.
Compacto
Versión solo icono para espacios reducidos. Mínimo 44×44px.
Sizes
Integración
Ejemplos de código
Fragmentos listos para copiar y pegar en tu plataforma.
HTML / CSS
Añade este CSS a tu hoja de estilos, o incluye la hoja de estilos del botón de 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
Especificaciones de color
La paleta de colores oficial de Binatomy usada en el degradado.
NombreHexUso
Bink Orange
#ff9500Inicio y final del degradado principalBink Amber
#f7931ePunto medio del degradadoBink Flame
#ff6b35Acento del degradado (30%)Bink Red-Orange
#f15a24Profundidad del degradadoBink Tangerine
#ff8c42Acento del degradado (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;¿Listo para integrarlo?
Consulta la documentación completa de OAuth 2.0 para implementar «Iniciar sesión con Bink» en tu app.