Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frontend-MECRED
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MECRED
Frontend-MECRED
Commits
11053b8e
Commit
11053b8e
authored
1 year ago
by
Richard Fernando Heise Ferreira
Browse files
Options
Downloads
Plain Diff
Merge branch 'issue/13-create-user-card' into 'develop'
Issue
#13
: CREATE user card See merge request
!2
parents
5064733e
65a2406f
Branches
Branches containing commit
No related tags found
1 merge request
!2
Issue #13: CREATE user card
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/perfil/components/UserCard.js
+46
-0
46 additions, 0 deletions
src/app/perfil/components/UserCard.js
src/app/perfil/page.js
+7
-0
7 additions, 0 deletions
src/app/perfil/page.js
with
53 additions
and
0 deletions
src/app/perfil/components/UserCard.js
0 → 100644
+
46
−
0
View file @
11053b8e
"
use client
"
import
*
as
React
from
'
react
'
;
import
Card
from
'
@mui/material/Card
'
;
import
CheckBoxOutlineBlankSharpIcon
from
'
@mui/icons-material/CheckBoxOutlineBlankSharp
'
;
import
useMediaQuery
from
'
@mui/material/useMediaQuery
'
;
import
Grid
from
'
@mui/material/Grid
'
;
export
default
function
UserCard
()
{
const
matches
=
useMediaQuery
(
'
(min-width:600px)
'
)
return
(
<
div
className
=
'
flex justify-center pt-[10%]
'
>
<
Card
className
=
'
rounded-md min-w-[200px] min-h-[170px] pr-5
'
>
<
Grid
container
>
{
/* ao mudar para imagem manter proporções parecidas */
}
<
Grid
sm
=
{
4
}
xs
=
{
12
}
>
<
CheckBoxOutlineBlankSharpIcon
className
=
'
bg-[#00bacc] text-[#00bacc] rounded-full m-5 mt-[20%] min-w-[100px] min-h-[100px]
'
/>
<
/Grid
>
<
Grid
sm
=
{
8
}
xs
=
{
12
}
>
<
div
className
=
'
pt-5
'
>
<
h2
className
=
'
max-[600px]:flex max-[600px]:justify-center text-gray-500 font-bold text-2xl
'
>
Nome
do
Usuário
<
/h2
>
<
p
className
=
'
max-[600px]:flex max-[600px]:justify-center text-[#00bacc] text-sm
'
>
@
username
<
/p
>
<
p
className
=
"
max-[600px]:flex max-[600px]:justify-center text-gray-500
"
>
Professor
na
E
.
E
.
Ludovino
Ferreira
<
/p
>
<
p
className
=
"
max-[600px]:flex max-[600px]:justify-center text-sm text-gray-400
"
>
Marabá
(
PA
)
<
/p
>
<
div
className
=
'
max-[600px]:flex max-[600px]:justify-center
'
>
<
p
className
=
'
inline text-[#00bacc] font-bold
'
>
59
<
/p
>
<
p
className
=
'
inline pl-1 text-sm text-gray-500
'
>
Seguindo
<
/p
>
<
p
className
=
'
inline pl-2 text-[#00bacc] font-bold
'
>
59
<
/p
>
<
p
className
=
'
inline pl-1 text-sm text-gray-500
'
>
Seguidores
<
/p
>
<
p
className
=
'
inline pl-2 text-[#00bacc] font-bold
'
>
59
<
/p
>
<
p
className
=
'
inline pl-1 text-sm text-gray-500
'
>
Grupos
<
/p
>
<
/div
>
<
/div
>
<
/Grid
>
<
/Grid
>
<
/Card
>
<
/div
>
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/app/perfil/page.js
0 → 100644
+
7
−
0
View file @
11053b8e
import
UserCard
from
"
./components/UserCard
"
export
default
function
Perfil
(){
return
(
<
UserCard
/>
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment