gogo-movement-starter
Version:
GOGO Movement Network React Starter Template - Complete React + Vite + Move contracts setup
252 lines (214 loc) • 4.56 kB
CSS
/* Profile Button */
.gogo-profile-btn {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
background: none;
border: 1px solid #eac72b65;
border-radius: 8px;
color: #a0a0a0;
cursor: pointer;
transition: all 0.2s ease;
margin-left: 8px;
}
/* Profile Modal */
.gogo-profile-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.336);
display: flex;
align-items: center;
justify-content: center;
z-index: 1002;
backdrop-filter: blur(4px);
}
.gogo-profile-modal-container {
background: rgb(26, 26, 26);
border-radius: 12px;
width: 90%;
max-width: 480px;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.gogo-profile-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 24px;
}
.gogo-profile-modal-header h3 {
margin: 0;
color: #fff;
font-size: 18px;
font-weight: 600;
}
.gogo-profile-modal-close {
background: none;
border: none;
color: #a0a0a0;
cursor: pointer;
font-size: 16px;
padding: 4px;
border-radius: 4px;
transition: all 0.2s ease;
}
.gogo-profile-modal-close:hover {
color: #ef4444;
background: rgba(239, 68, 68, 0.1);
}
.gogo-profile-modal-content {
padding: 24px;
}
.gogo-profile-avatar {
display: flex;
justify-content: center;
margin-bottom: 24px;
}
.gogo-profile-avatar svg {
color: #eac72b;
padding: 16px;
border-radius: 50%;
border: 2px solid #eac72b32;
}
.gogo-profile-info {
display: flex;
flex-direction: column;
gap: 20px;
}
.gogo-profile-section {
background: rgba(255, 255, 255, 0.03);
border-radius: 8px;
padding: 16px;
}
.gogo-profile-section h4 {
margin: 0 0 12px 0;
color: #eac72b;
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.gogo-profile-address-container {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.gogo-profile-address {
background: rgba(0, 0, 0, 0.3);
color: #fff;
padding: 8px 12px;
border-radius: 6px;
font-family: 'Courier New', monospace;
font-size: 14px;
font-weight: 600;
flex: 1;
}
.gogo-profile-copy-btn {
background: rgba(234, 199, 43, 0.1);
border: 1px solid #eac72b32;
color: #eac72b;
padding: 8px;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.gogo-profile-copy-btn:hover {
background: rgba(234, 199, 43, 0.2);
border-color: #eac72b;
}
.gogo-profile-copy-btn.copied {
background: rgba(34, 197, 94, 0.1);
border-color: #22c55e;
color: #22c55e;
}
.gogo-profile-full-address {
margin-top: 8px;
}
.gogo-profile-full-address small {
color: #a0a0a0;
font-family: 'Courier New', monospace;
font-size: 11px;
word-break: break-all;
line-height: 1.4;
}
.gogo-profile-network {
display: flex;
align-items: center;
gap: 8px;
color: #fff;
font-weight: 500;
}
.gogo-profile-network-indicator {
width: 8px;
height: 8px;
background: #22c55e;
border-radius: 50%;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
}
70% {
box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
}
}
.gogo-profile-status {
font-weight: 500;
padding: 8px 12px;
border-radius: 6px;
font-size: 14px;
}
.gogo-profile-status.connected {
background: rgba(34, 197, 94, 0.1);
color: #22c55e;
}
.gogo-profile-status.disconnected {
background: rgba(239, 68, 68, 0.1);
color: #ef4444;
border: 1px solid rgba(239, 68, 68, 0.3);
}
.gogo-profile-no-wallet {
text-align: center;
padding: 1rem;
}
.gogo-profile-no-wallet p {
color: #a0a0a0;
font-size: 16px;
font-weight: 500;
margin: 0 0 8px 0;
}
.gogo-profile-no-wallet small {
color: #707070;
font-size: 12px;
}
/* Responsive Design */
@media (max-width: 480px) {
.gogo-profile-modal-container {
width: 95%;
margin: 20px;
}
.gogo-profile-modal-header,
.gogo-profile-modal-content {
padding: 16px;
}
.gogo-profile-address {
font-size: 12px;
}
.gogo-profile-full-address small {
font-size: 10px;
}
}