fix style card

This commit is contained in:
AntoninoP 2024-07-08 16:42:00 +02:00
parent dca9da9aa4
commit f0b3fc7137
4 changed files with 63 additions and 61 deletions

View File

@ -15,7 +15,6 @@ const CreateServer = ({ user, onCreateServer, onSubdomainUpdate }) => {
const userSubdomain = await getUserSubdomain(user.uid);
setSubdomain(userSubdomain || '');
onSubdomainUpdate(userSubdomain || '');
console.log('Subdomain:', userSubdomain);
} else {
console.error('User or user.uid is undefined');
}
@ -96,11 +95,13 @@ const CreateServer = ({ user, onCreateServer, onSubdomainUpdate }) => {
<option value="1.21">1.21</option>
<option value="1.20.6">1.20.6</option>
</select>
<div>
<button className={styles.btnServCreate} onClick={handleCreateServer}>
Créer
</button>
</div>
</div>
</div>
)}
</>
);

View File

@ -5,7 +5,7 @@
width: 100%;
}
.mainCard{
.mainCard, .mainCardSubdomain {
display: flex;
justify-content: start;
align-items: start;
@ -13,6 +13,8 @@
width: 75rem;
background-color: #1D1836;
border-radius: 1.5rem;
padding: 4rem;
margin-top: 5rem;
}
.title {
@ -51,10 +53,10 @@
cursor: pointer;
font-size: 1rem;
transition: background-color 0.3s, transform 0.3s;
margin-right: 1rem;
}
.btnSubCreate:hover, .btnServCreate:hover {
background-color: #120a8f;
transform: scale(1.05);
}

View File

@ -2,7 +2,7 @@ html, body {
margin: 0;
padding: 0;
font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
font-family: 'Poppins', system-ui, Avenir, Helvetica, Arial, sans-serif;
background-color: var(--main-bg-color);
}

View File

@ -11,7 +11,6 @@
align-items: start;
flex-direction: column;
width: 75rem;
padding: 4rem 5rem 3rem 5rem;
background-color: #1D1836;
border-radius: 1.5rem;
}