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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MECRED
Frontend-MECRED
Commits
1f2d5f5f
Commit
1f2d5f5f
authored
Jul 12, 2024
by
mcs22
Browse files
Options
Downloads
Patches
Plain Diff
issue
#132
: FIX responsive profile
parent
3d0bff03
No related branches found
No related tags found
1 merge request
!130
issue #132: FIX responsive profile
Pipeline
#38355
passed
Jul 12, 2024
Stage: build
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/perfil/[id]/components/GroupButton.js
+5
-5
5 additions, 5 deletions
src/app/perfil/[id]/components/GroupButton.js
src/app/perfil/[id]/components/UserCard.js
+8
-8
8 additions, 8 deletions
src/app/perfil/[id]/components/UserCard.js
with
13 additions
and
13 deletions
src/app/perfil/[id]/components/GroupButton.js
+
5
−
5
View file @
1f2d5f5f
...
...
@@ -85,8 +85,8 @@ export default function GroupButton({ profileData, idLogin }) {
return
(
<>
<
div
className
=
'
pb-4 flex flex-row
justify-between
mr-10
'
>
<
div
className
=
'
flex flex-row gap-4
'
>
<
div
className
=
'
pb-4 flex flex-row
max-lg:flex-col justify-between max-lg:items-center max-lg:pt-8 max-lg:mr-0
mr-10
'
>
<
div
className
=
'
flex flex-row gap-4
max-sm:flex-col max-sm:items-center
'
>
{
idLogin
==
profileData
[
"
id
"
]
?
<
button
className
=
{
`text-[16px] rounded-[10px] normal-case h-10 font-bold w-48 text-white bg-secondary hover:bg-secondary-hover `
}
...
...
@@ -105,7 +105,7 @@ export default function GroupButton({ profileData, idLogin }) {
{
follow
?
"
Seguindo o perfil
"
:
"
Seguir o perfil
"
}
<
/button
>
}
<
div
className
=
'
max-[1024px]:grid max-[1024px]:justify-items-center
'
>
<
div
className
=
''
>
<
button
className
=
"
border text-[16px] outline outline-1 pr-2 outline-outlineColor text-text-filter border-main rounded-[10px] normal-case h-10 font-semibold w-52 hover:bg-main-hover
"
onClick
=
{()
=>
setShareOpen
(
true
)}
...
...
@@ -116,7 +116,7 @@ export default function GroupButton({ profileData, idLogin }) {
<
/button
>
<
/div
>
<
/div
>
<
div
className
=
''
>
<
div
>
{
idLogin
!==
profileData
[
"
id
"
]
&&
<
button
className
=
"
text-[16px] hover:bg-transparent hover:text-red text-main-text rounded-[10px] normal-case h-10 font-bold
"
...
...
This diff is collapsed.
Click to expand it.
src/app/perfil/[id]/components/UserCard.js
+
8
−
8
View file @
1f2d5f5f
...
...
@@ -170,7 +170,7 @@ export default function UserCard({ profileData, idLogin }) {
return
(
<>
<
div
className
=
'
flex pt-[5%] flex-col mx-[5%]
'
>
<
div
className
=
'
flex rounded-2xl gap-4 bg-white outline outline-1 outline-outlineColor
'
>
<
div
className
=
'
flex
max-lg:flex-col
rounded-2xl gap-4
max-lg:items-center
bg-white outline outline-1 outline-outlineColor
'
>
<
div
className
=
'
p-10 h-full items-center
'
>
{
/*a imagem do usuário tem nomes diferentes no backend se for usuário público ou não */
}
{
profileData
[
"
avatar
"
]
?
...
...
@@ -180,20 +180,20 @@ export default function UserCard({ profileData, idLogin }) {
}
<
/div
>
<
div
className
=
'
flex flex-col pt-12 pb-6 justify-between w-full
'
>
<
div
className
=
'
flex flex-col pt-12
max-lg:pt-2
pb-6 justify-between w-full
'
>
<
div
className
=
'
flex flex-col justify-start
'
>
<
div
className
=
'
flex flex-row items-center text-main-text font-bold text-4xl mb-6
'
>
<
div
className
=
'
bg-gray-color rounded-full w-[28px] h-[28px] mx-4 aspect-square
'
/>
{
profileData
[
"
name
"
]}
<
div
className
=
'
flex flex-row items-center text-main-text font-bold
max-sm:text-3xl
text-4xl mb-6
'
>
<
div
className
=
'
bg-gray-color
shrink-0
rounded-full
max-lg:w-[20px] max-lg:h-[20px]
w-[28px] h-[28px] mx-4 aspect-square
'
/>
{
profileData
[
"
name
"
]}
<
/div
>
{
profileData
[
"
email
"
]
&&
<
div
className
=
'
mb-3 flex flex-row items-center text-text-filter text-2xl
'
>
<
div
className
=
'
bg-gray-color rounded-full w-[28px] h-[28px] mx-4 aspect-square
'
/>
{
profileData
[
"
email
"
]
&&
<
div
className
=
'
mb-3
truncate
flex flex-row items-center text-text-filter
max-sm:text-base
text-2xl
'
>
<
div
className
=
'
bg-gray-color
shrink-0
rounded-full w-[28px] h-[28px]
max-lg:w-[20px] max-lg:h-[20px]
mx-4 aspect-square
'
/>
{
profileData
[
"
email
"
]}
<
/div>
}
<
div
className
=
'
mb-3
'
>
{
translateItems
&&
<
div
className
=
'
flex flex-row items-center mt-1 text-text-filter text-xl
'
>
<
div
className
=
'
bg-gray-color rounded-full w-[28px] h-[28px] mx-4 aspect-square
'
/>
<
div
className
=
'
flex flex-row items-center mt-1 text-text-filter
max-sm:text-base
text-xl
'
>
<
div
className
=
'
bg-gray-color
shrink-0
rounded-full w-[28px] h-[28px]
max-lg:w-[20px] max-lg:h-[20px]
mx-4 aspect-square
'
/>
{
translateItems
}
<
/div
>
}
<
/div
>
...
...
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