File tree Expand file tree Collapse file tree 4 files changed +128
-4
lines changed
2-desenvolvimento-front-end/DR1-mobile-first-ui/DR1-TP3.11~3.16/src Expand file tree Collapse file tree 4 files changed +128
-4
lines changed Original file line number Diff line number Diff line change 11import './global.css' ;
22import './styles.css' ;
33import './App.css' ;
4+ import Menu from './components/Menu/Menu' ;
45
56function App ( ) {
67 return (
@@ -12,9 +13,11 @@ function App() {
1213 </ div >
1314 </ header >
1415
16+ < Menu />
17+
1518 < main className = "app-main" >
1619 < div className = "container" >
17- < section className = "app-section" >
20+ < section id = "sobre" className = "app-section" >
1821 < div className = "card" >
1922 < h2 > Sobre o Projeto</ h2 >
2023 < p >
@@ -29,7 +32,7 @@ function App() {
2932 </ div >
3033 </ section >
3134
32- < section className = "app-section" >
35+ < section id = "recursos" className = "app-section" >
3336 < h2 > Recursos Principais</ h2 >
3437 < div className = "app-grid" >
3538 < div className = "card" >
@@ -47,7 +50,7 @@ function App() {
4750 </ div >
4851 </ section >
4952
50- < section className = "app-section" >
53+ < section id = "tecnologias" className = "app-section" >
5154 < div className = "card" >
5255 < h2 > Tecnologias Utilizadas</ h2 >
5356 < ul className = "app-list" >
@@ -59,7 +62,7 @@ function App() {
5962 </ div >
6063 </ section >
6164
62- < section className = "app-section" >
65+ < section id = "contato" className = "app-section" >
6366 < div className = "card" >
6467 < h2 > Formulário de Contato</ h2 >
6568 < form className = "app-form" >
Original file line number Diff line number Diff line change 1+ import './menu.css' ;
2+
3+ function Menu ( ) {
4+ return (
5+ < nav className = "menu" >
6+ < ul className = "menu-list" >
7+ < li className = "menu-item" >
8+ < a href = "#sobre" className = "menu-link" > Sobre</ a >
9+ </ li >
10+ < li className = "menu-item" >
11+ < a href = "#recursos" className = "menu-link" > Recursos</ a >
12+ </ li >
13+ < li className = "menu-item" >
14+ < a href = "#tecnologias" className = "menu-link" > Tecnologias</ a >
15+ </ li >
16+ < li className = "menu-item" >
17+ < a href = "#contato" className = "menu-link" > Contato</ a >
18+ </ li >
19+ </ ul >
20+ </ nav >
21+ ) ;
22+ }
23+
24+ export default Menu ;
Original file line number Diff line number Diff line change 1+ /* Estilos do componente Menu - Mobile First */
2+
3+ .menu {
4+ background-color : var (--bg-card );
5+ border-bottom : 1px solid var (--border-color );
6+ }
7+
8+ .menu-list {
9+ list-style : none;
10+ padding : 0 ;
11+ margin : 0 ;
12+ display : flex;
13+ flex-direction : column;
14+ }
15+
16+ .menu-item {
17+ width : 100% ;
18+ }
19+
20+ .menu-link {
21+ display : block;
22+ padding : 16px 24px ;
23+ color : var (--text-primary );
24+ text-decoration : none;
25+ font-weight : 500 ;
26+ font-size : 16px ;
27+ border-bottom : 1px solid var (--border-color );
28+ transition : all 0.2s ;
29+ }
30+
31+ .menu-link : hover {
32+ background-color : var (--bg-tertiary );
33+ color : var (--accent-primary );
34+ text-decoration : none;
35+ border-left : 3px solid var (--accent-primary );
36+ padding-left : 21px ;
37+ }
38+
39+ /* Tablets - até 992px */
40+ @media (min-width : 576px ) and (max-width : 992px ) {
41+ .menu-list {
42+ flex-direction : row;
43+ }
44+
45+ .menu-item {
46+ width : auto;
47+ flex : 1 ;
48+ }
49+
50+ .menu-link {
51+ text-align : center;
52+ border-bottom : none;
53+ border-right : 1px solid var (--border-color );
54+ }
55+
56+ .menu-item : last-child .menu-link {
57+ border-right : none;
58+ }
59+
60+ .menu-link : hover {
61+ border-left : none;
62+ border-bottom : 3px solid var (--accent-primary );
63+ padding-left : 24px ;
64+ padding-bottom : 13px ;
65+ }
66+ }
67+
68+ /* Desktop - acima de 992px */
69+ @media (min-width : 992px ) {
70+ .menu-list {
71+ flex-direction : row;
72+ justify-content : space-between;
73+ max-width : 1128px ;
74+ margin : 0 auto;
75+ padding : 0 24px ;
76+ }
77+
78+ .menu-item {
79+ width : auto;
80+ }
81+
82+ .menu-link {
83+ border-bottom : none;
84+ padding : 20px 24px ;
85+ }
86+
87+ .menu-link : hover {
88+ border-left : none;
89+ border-bottom : 3px solid var (--accent-primary );
90+ padding-left : 24px ;
91+ padding-bottom : 17px ;
92+ }
93+ }
Original file line number Diff line number Diff line change 55 box-sizing : border-box;
66}
77
8+ html {
9+ scroll-behavior : smooth;
10+ }
11+
812/* Variáveis globais - LinkedIn Dark + GitHub */
913: root {
1014 --bg-primary : # 1b1f23 ;
You can’t perform that action at this time.
0 commit comments