Diretrizes de marca

Entrar com Bink

Diretrizes oficiais para integrar o botão de login do Bink ao seu aplicativo. Siga estas especificações para garantir uma experiência coerente e fiel à marca.

Pré-visualização ao vivo

O botão

O botão "Entrar com Bink" usa o gradiente oficial da Binatomy com um efeito gradient-shift animado. Ele deve ser sempre apresentado com o estilo a seguir.

Fundo claro

Fundo escuro

Regras da marca

Diretrizes

Siga estas regras para manter o botão coerente em todas as plataformas.

Largura mínima200px
Padding14px 32px
Border radius16px
Peso da fonte600 (Semibold)
Tamanho da fonte16px
Cor do texto#FFFFFF (branco)
Animaçãogradient-shift 6s ease infinite

Faça

  • Use as cores do gradiente oficial exatamente como especificado
  • Mantenha um espaço livre mínimo de 8px ao redor do botão
  • Use "Entrar com Bink" ou o equivalente no seu idioma como texto do botão
  • Mantenha o efeito gradient-shift animado

Não faça

  • Mudar as cores ou a direção do gradiente
  • Remover a animação do gradiente
  • Adicionar ícones ou decorações extras ao botão
  • Reduzir o botão abaixo do tamanho mínimo
Opções

Variantes

Três variantes oficiais para contextos diferentes.

Standard

O botão padrão com o gradiente laranja da Binatomy. Use em fundos claros.

Dark

Uma versão escura para usar em fundos coloridos ou escuros.

Compacto

Versão só com o ícone, para espaços apertados. Mínimo de 44×44px.

Sizes

Integração

Exemplos de código

Snippets prontos para copiar e colar na sua plataforma.

  1. HTML / CSS

    Adicione este CSS à sua folha de estilos ou inclua a folha de estilos do botão 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>
  2. 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" />
  3. 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

Especificações de cor

A paleta oficial de cores da Binatomy usada no gradiente.

NomeHexUso
Bink Orange#ff9500Início/fim do gradiente principal
Bink Amber#f7931ePonto médio do gradiente
Bink Flame#ff6b35Destaque do gradiente (30%)
Bink Red-Orange#f15a24Profundidade do gradiente
Bink Tangerine#ff8c42Destaque do gradiente (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;

Pronto para integrar?

Consulte a documentação completa do OAuth 2.0 para implementar "Entrar com Bink" no seu app.