Skip to content

Commit d013ec4

Browse files
authored
Merge pull request #13 from fga-eps-mds/feature/#32-#33-dashboard-mestre-jogador
Feature/#32 #33 dashboard mestre jogador Fix: Responsiveness on smaller screens
2 parents 05a6094 + f16b4b3 commit d013ec4

14 files changed

+1436
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
.botoes-container {
2+
position: absolute;
3+
top: 13.5rem;
4+
left: 18%;
5+
width: 16%;
6+
display: flex;
7+
flex-direction: column;
8+
gap: 10px;
9+
z-index: 10;
10+
}
11+
12+
.btn {
13+
padding: 5% 0;
14+
width: 100%;
15+
box-sizing: border-box;
16+
font-weight: bold;
17+
border-radius: 8px;
18+
border: 1px solid #071013;
19+
font-size: 14px;
20+
cursor: pointer;
21+
transition: background 0.3s, box-shadow 0.3s;
22+
max-width: 100%;
23+
24+
/* SHADOW */
25+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
26+
}
27+
28+
.create {
29+
background-color: #F77B20;
30+
color: #071013;
31+
}
32+
33+
.create:hover {
34+
background-color: #F77B20;
35+
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
36+
}
37+
38+
.delete {
39+
background-color: #DFE0E2;
40+
color: #071013;
41+
}
42+
43+
.delete:hover {
44+
background-color: #DFE0E2;
45+
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
46+
}
47+
48+
@media (max-width: 768px) {
49+
.botoes-container {
50+
position: static;
51+
width: 90vw;
52+
margin: 0 auto;
53+
top: auto;
54+
left: auto;
55+
}
56+
57+
.btn {
58+
padding: 12px 1.5rem;
59+
font-size: 13px;
60+
}
61+
}
62+
63+
@media (max-width: 1366px) {
64+
.botoes-container {
65+
top: 9.1rem;
66+
}
67+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from 'react'
2+
import './CampaignButtons.css'
3+
4+
const CampaignButtons: React.FC = () => {
5+
return (
6+
<div className='botoes-container'>
7+
<button className='btn create'>CRIAR CAMPANHA</button>
8+
<button className='btn delete'>EXCLUIR CAMPANHA</button>
9+
</div>
10+
)
11+
}
12+
13+
export default CampaignButtons
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
.custom-scroll {
3+
scrollbar-width: thin;
4+
scrollbar-color: #DFE0E2 #071013;
5+
}
6+
7+
.custom-scroll::-webkit-scrollbar {
8+
width: 8px;
9+
}
10+
11+
.custom-scroll::-webkit-scrollbar-track {
12+
background: #071013;
13+
border-radius: 20px;
14+
}
15+
16+
.custom-scroll::-webkit-scrollbar-thumb {
17+
background-color: #DFE0E2;
18+
border-radius: 10px;
19+
border: 2px solid #071013;
20+
}

0 commit comments

Comments
 (0)