UNPKG

faceit-visa

Version:

A lightweight OAuth2 authentication library for FACEIT integration

331 lines (279 loc) 5.31 kB
/* Same styles as vanilla template but with additional PHP-specific classes */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background-color: #f9fafb; color: #374151; min-height: 100vh; display: flex; flex-direction: column; } /* Navbar Styles */ .navbar { background: white; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); border-bottom: 1px solid #e5e7eb; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; height: 64px; } .navbar-brand h1 { font-size: 1.25rem; font-weight: bold; color: #1f2937; } .navbar-menu { display: flex; gap: 1rem; } .nav-link { color: #6b7280; text-decoration: none; padding: 0.5rem 0.75rem; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; } .nav-link:hover, .nav-link.active { color: #1f2937; } .navbar-auth { display: flex; align-items: center; gap: 1rem; } /* Button Styles */ .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: none; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s; text-decoration: none; } .btn-primary { background-color: #ea580c; color: white; } .btn-primary:hover { background-color: #c2410c; } .btn-danger { background-color: #dc2626; color: white; } .btn-danger:hover { background-color: #b91c1c; } .btn-large { padding: 0.75rem 1.5rem; font-size: 1rem; } /* User Info Styles */ .user-info { display: flex; align-items: center; gap: 0.5rem; } .user-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #d1d5db; } .user-details { display: flex; flex-direction: column; } .user-nickname { font-size: 0.875rem; font-weight: 500; color: #374151; } .user-level { font-size: 0.75rem; color: #6b7280; } /* Main Content */ .main-content { flex: 1; padding: 2rem; } .container { max-width: 1200px; margin: 0 auto; } .container h2 { margin-bottom: 2rem; color: #1f2937; } /* Messages */ .welcome-message, .login-prompt { background: white; border-radius: 0.5rem; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); margin-top: 1rem; } .welcome-message p { margin-bottom: 1rem; } .welcome-message p:last-child { margin-bottom: 0; } .login-prompt { text-align: center; } .login-prompt p { margin-bottom: 1.5rem; color: #6b7280; } /* Profile Styles */ .profile-header { background: white; border-radius: 0.5rem; padding: 2rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); margin-bottom: 2rem; display: flex; align-items: center; gap: 1.5rem; } .profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 4px solid #e5e7eb; } .profile-info h2 { margin: 0 0 0.5rem 0; color: #1f2937; } .profile-level { color: #ea580c; font-weight: 600; margin-bottom: 0.25rem; } .profile-country { color: #6b7280; margin: 0; } .profile-details { background: white; border-radius: 0.5rem; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); margin-bottom: 2rem; } .profile-details h3 { margin-bottom: 1rem; color: #1f2937; } .info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; } .info-item { display: flex; flex-direction: column; } .info-item label { font-weight: 600; color: #6b7280; font-size: 0.875rem; margin-bottom: 0.25rem; } .info-item span { color: #1f2937; } .monospace { font-family: 'Courier New', monospace; font-size: 0.875rem; background: #f3f4f6; padding: 0.25rem 0.5rem; border-radius: 0.25rem; } /* Raw Data */ .raw-data { background: white; border-radius: 0.5rem; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .raw-data h3 { margin-bottom: 1rem; color: #1f2937; } .raw-data pre { background: #f3f4f6; padding: 1rem; border-radius: 0.375rem; overflow-x: auto; font-size: 0.875rem; line-height: 1.5; } /* Error Message */ .error-message { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 0.75rem; border-radius: 0.375rem; margin-bottom: 1rem; } /* Footer */ .footer { background: white; border-top: 1px solid #e5e7eb; padding: 1rem 0; margin-top: auto; } .footer .container { text-align: center; } .footer p { color: #6b7280; font-size: 0.875rem; } .footer a { color: #ea580c; text-decoration: none; } .footer a:hover { text-decoration: underline; } /* Responsive */ @media (max-width: 768px) { .navbar { padding: 0 1rem; } .navbar-menu { display: none; } .profile-header { flex-direction: column; text-align: center; gap: 1rem; } .info-grid { grid-template-columns: 1fr; } .main-content { padding: 1rem; } }