Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AUTIS
AUTIS frontend
Commits
8d5da037
Commit
8d5da037
authored
2 years ago
by
Arthur Henrique Henz
Browse files
Options
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into screens/ListMaterialModularScreensV2.tsx
parents
c9053152
d163e84f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
src/App.tsx
+2
-0
src/App.tsx
src/components/ButtonCard.tsx
+11
-3
src/components/ButtonCard.tsx
src/components/TitleComponent.tsx
+2
-1
src/components/TitleComponent.tsx
src/containers/index.ts
+0
-1
src/containers/index.ts
src/screens/AreaAluno.tsx
+60
-0
src/screens/AreaAluno.tsx
with
75 additions
and
5 deletions
+75
-5
src/App.tsx
View file @
8d5da037
...
...
@@ -9,6 +9,7 @@ import MenuEspecialista from './screens/MenuEspecialista';
import
MenuProfessor
from
'
./screens/MenuProfessor
'
;
import
StudentList
from
'
./screens/StudentList
'
;
import
UserList
from
'
./screens/UserList
'
;
import
AreaAluno
from
'
./screens/AreaAluno
'
;
function
App
()
{
return
(
...
...
@@ -28,6 +29,7 @@ function App() {
<
Route
path
=
"/cadastrar-aluno"
element
=
{
<
CadastroAluno
/>
}
/>
<
Route
path
=
"/cadastrar-aluno/:id"
element
=
{
<
CadastroAluno
/>
}
/>
<
Route
path
=
"/cadastro-professor"
element
=
{
<
CadastroProfessor
/>
}
/>
<
Route
path
=
"/area-aluno"
element
=
{
<
AreaAluno
/>
}
/>
<
Route
path
=
"/cadastro-especialista"
element
=
{
<
CadastroEspecialista
/>
}
...
...
This diff is collapsed.
Click to expand it.
src/components/ButtonCard.tsx
View file @
8d5da037
...
...
@@ -8,6 +8,7 @@ import fontawesome from '../utils/fontawesome';
const
defaultProps
=
{
className
:
'
btn
'
,
disabled
:
false
,
margin
:
'
0em
'
,
backgroundColor
:
colors
.
theme
.
light_blue
,
text
:
'
LISTA DE ALUNOS
'
,
icon
:
fontawesome
.
icons
.
faComments
,
...
...
@@ -19,6 +20,7 @@ const defaultProps = {
disableIcon
:
false
,
iconWidth
:
'
undefined
'
,
fontWeight
:
'
900
'
,
display
:
'
flex
'
,
boxShadow
:
'
0 0 0 0
'
,
onClick
:
()
=>
{
console
.
log
(
'
clicou
'
);
...
...
@@ -30,6 +32,7 @@ const defaultProps = {
type
ButtonProps
=
{
className
?:
string
;
margin
?:
string
;
disabled
?:
boolean
;
backgroundColor
?:
string
;
text
?:
string
;
...
...
@@ -44,11 +47,13 @@ type ButtonProps = {
onClick
?:
()
=>
void
;
disableIcon
?:
boolean
;
iconWidth
?:
string
;
display
?:
string
;
onChange
?:
()
=>
void
;
}
&
typeof
defaultProps
;
function
ButtonCard
(
props
:
ButtonProps
)
{
const
{
display
,
className
,
text
,
disabled
,
...
...
@@ -62,6 +67,7 @@ function ButtonCard(props: ButtonProps) {
onClick
,
iconWidth
,
disableIcon
,
margin
,
fontWeight
,
boxShadow
,
onChange
,
...
...
@@ -69,7 +75,7 @@ function ButtonCard(props: ButtonProps) {
const
styles
=
{
button
:
{
margin
:
'
0rem
'
,
margin
,
backgroundColor
,
color
,
fontSize
:
textSize
,
...
...
@@ -80,7 +86,7 @@ function ButtonCard(props: ButtonProps) {
boxShadow
,
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
,
display
:
'
flex
'
,
display
,
},
icon
:
{
marginRight
:
'
1rem
'
,
...
...
@@ -100,7 +106,9 @@ function ButtonCard(props: ButtonProps) {
disabled
=
{
disabled
}
onClick
=
{
onClick
}
>
{
!
disableIcon
&&
<
FontAwesomeIcon
icon
=
{
icon
}
style
=
{
styles
.
icon
}
/>
}
{
!
disableIcon
&&
(
<
FontAwesomeIcon
icon
=
{
icon
}
style
=
{
styles
.
icon
}
flip
=
"vertical"
/>
)
}
<
span
style
=
{
styles
.
text
}
>
{
text
}
</
span
>
</
button
>
);
...
...
This diff is collapsed.
Click to expand it.
src/components/TitleComponent.tsx
View file @
8d5da037
...
...
@@ -19,7 +19,7 @@ type TitleProps = {
fontStyle
?:
string
;
color
?:
string
;
textSize
?:
string
;
textAlign
?:
'
center
'
;
textAlign
?:
any
;
}
&
typeof
defaultProps
;
function
TitleComponent
(
props
:
TitleProps
)
{
...
...
@@ -38,6 +38,7 @@ function TitleComponent(props: TitleProps) {
fontWeight
:
'
400
'
,
textSize
:
'
1em
'
,
textAlign
,
color
:
colors
.
theme
.
placeholder
,
},
};
return
(
...
...
This diff is collapsed.
Click to expand it.
src/containers/index.ts
View file @
8d5da037
...
...
@@ -7,4 +7,3 @@ export { default as Modal } from './Modal';
export
{
default
as
FormComponent
}
from
'
./FormComponent
'
;
export
{
default
as
FormComponentStudent
}
from
'
./FormComponentStudent
'
;
export
{
default
as
CardAluno
}
from
'
./CardAluno
'
;
export
{
default
as
FormComponentStudent
}
from
'
./FormComponentStudent
'
;
This diff is collapsed.
Click to expand it.
src/screens/AreaAluno.tsx
0 → 100644
View file @
8d5da037
import
{
ButtonCard
}
from
'
../components
'
;
import
TitleComponent
from
'
../components/TitleComponent
'
;
import
{
CardLista
,
Header
}
from
'
../containers
'
;
import
fontawesome
from
'
../utils/fontawesome
'
;
function
AreaAluno
()
{
return
(
<
div
className
=
"container"
>
<
Header
text
=
"Área do Aluno"
disableArrow
=
{
false
}
/>
<
div
className
=
"row"
style
=
{
{
padding
:
'
1em
'
}
}
>
<
div
className
=
"col-12"
style
=
{
{
marginTop
:
'
0.8em
'
}
}
>
<
TitleComponent
text
=
"Olá, Ana Julia"
textAlign
=
"left"
subtitle
=
"Turma 3B"
/>
</
div
>
<
div
className
=
"col-6"
>
<
ButtonCard
iconWidth
=
"100%"
text
=
"Relatorio"
icon
=
{
fontawesome
.
icons
.
faFilePen
}
width
=
"8em"
height
=
"8em"
sizeIcon
=
"4em"
display
=
"block"
/>
</
div
>
<
div
className
=
"col-6"
>
<
ButtonCard
iconWidth
=
"100%"
text
=
"Anotações"
icon
=
{
fontawesome
.
icons
.
faNoteSticky
}
width
=
"8em"
height
=
"8em"
sizeIcon
=
"4em"
display
=
"block"
/>
</
div
>
<
div
className
=
"col-12"
style
=
{
{
marginTop
:
'
0.8em
'
}
}
>
<
TitleComponent
text
=
"Dados do aluno"
textAlign
=
"left"
/>
</
div
>
<
div
className
=
"col-12"
style
=
{
{
marginTop
:
'
0.8em
'
}
}
>
<
ButtonCard
icon
=
{
fontawesome
.
icons
.
faSquarePlus
}
text
=
"Adicionar Característica"
width
=
"100%"
sizeIcon
=
"3em"
/>
</
div
>
<
div
className
=
"col-12"
style
=
{
{
marginTop
:
'
1.5em
'
}
}
>
<
CardLista
/>
</
div
>
</
div
>
</
div
>
);
}
export
default
AreaAluno
;
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help