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
Harbor 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
7c060da3
Commit
7c060da3
authored
1 month ago
by
Guilherme Eduardo
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#287
: UPDATE mecred statistics on about page
parent
b7caf4b4
No related branches found
No related tags found
No related merge requests found
Pipeline
#41883
failed
1 month ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/components/About.js
+37
-10
37 additions, 10 deletions
src/app/components/About.js
src/app/components/numbers.js
+52
-0
52 additions, 0 deletions
src/app/components/numbers.js
with
89 additions
and
10 deletions
src/app/components/About.js
+
37
−
10
View file @
7c060da3
...
@@ -52,23 +52,23 @@ export default function AboutComponent() {
...
@@ -52,23 +52,23 @@ export default function AboutComponent() {
const
Statistics
=
()
=>
{
const
Statistics
=
()
=>
{
return
(
return
(
<
div
className
=
"
flex max-sm:flex-col mb-10
"
>
<
div
className
=
"
flex max-sm:flex-col mb-10
gap-x-[60px]
"
>
<
StatisticInfo
<
StatisticInfo
name
=
{
<
p
>
Recursos
<
br
/>
Disponíveis
<
/p>
}
name
=
{
<
p
>
Recursos
Disponíveis
<
/p>
}
data
=
{
statistics
[
"
count
"
]}
data
=
{
statistics
[
"
count
"
]}
color
=
{{
text
:
"
text-
orange
-HC-white
"
,
bg
:
"
bg-orange-HC-white
"
}}
color
=
{{
text
:
"
text-
darkGray
-HC-white
"
,
bg
:
"
bg-orange-HC-white
"
}}
icon
=
"
/redigitais.svg
"
icon
=
"
/redigitais.svg
"
/>
/>
<
StatisticInfo
<
StatisticInfo
name
=
{
<
p
>
Recursos
<
br
/>
Visualiz
ados
<
br
/>
por
mês
<
/p>
}
name
=
{
<
p
>
Recursos
Acess
ados
<
br
/>
por
mês
<
/p>
}
data
=
{
statistics
[
"
month_downloads
"
]}
data
=
{
statistics
[
"
month_downloads
"
]}
color
=
{{
text
:
"
text-
violet
-HC-white
"
,
bg
:
"
bg-violet-HC-white
"
}}
color
=
{{
text
:
"
text-
darkGray
-HC-white
"
,
bg
:
"
bg-violet-HC-white
"
}}
icon
=
"
/download.svg
"
icon
=
"
/download.svg
"
/>
/>
<
StatisticInfo
<
StatisticInfo
name
=
{
<
p
>
Usuários
<
br
/>
Cadastrados
<
/p>
}
name
=
{
<
p
>
Usuários
Cadastrados
<
/p>
}
data
=
"
31207
"
data
=
{
statistics
[
"
unique_users
"
]}
color
=
{{
text
:
"
text-
pink
-HC-white
"
,
bg
:
"
bg-pink-HC-white
"
}}
color
=
{{
text
:
"
text-
darkGray
-HC-white
"
,
bg
:
"
bg-pink-HC-white
"
}}
icon
=
"
/seguir.svg
"
icon
=
"
/seguir.svg
"
/>
/>
<
/div
>
<
/div
>
...
@@ -92,6 +92,30 @@ export default function AboutComponent() {
...
@@ -92,6 +92,30 @@ export default function AboutComponent() {
);
);
};
};
const
MecredStats
=
()
=>
{
return
(
<
div
>
<
div
className
=
"
mx-8 my-10
"
>
<
h1
className
=
"
flex justify-center font-bold text-2xl text-darkGray-HC-white mx-10
"
>
A
MEC
RED
é
uma
rede
para
você
se
conectar
com
pessoas
interessadas
em
Educação
!
<
/h1
>
<
/div
>
<
div
>
<
h1
className
=
"
flex text-xl justify-center text-darkGray-HC-white text-wrap max-md:mx-10 mx-[100px] my-7
"
>
Construa
conosco
a
sua
rede
de
conhecimentos
,
interagindo
com
pessoas
envolvidas
com
experiência
educacionais
que
ocorrem
em
todo
o
Brasil
!
<
/h1
>
<
/div
>
<
div
>
<
div
className
=
"
flex flex-row justify-center
"
>
<
Statistics
/>
<
/div
>
<
/div
>
<
/div
>
);
}
const
Actors
=
()
=>
{
const
Actors
=
()
=>
{
return
(
return
(
<>
<>
...
@@ -333,6 +357,9 @@ export default function AboutComponent() {
...
@@ -333,6 +357,9 @@ export default function AboutComponent() {
<
Title
/>
<
Title
/>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"
flex flex-col mt-12 text-center items-center rounded-lg bg-white-HC-dark outline outline-1 outline-ice-HC-white
"
>
<
MecredStats
/>
<
/div
>
<
div
className
=
"
flex flex-col text-center items-center mt-12 rounded-lg bg-white-HC-dark max-sm:hidden outline outline-1 outline-ice-HC-white
"
>
<
div
className
=
"
flex flex-col text-center items-center mt-12 rounded-lg bg-white-HC-dark max-sm:hidden outline outline-1 outline-ice-HC-white
"
>
<
Actors
/>
<
Actors
/>
<
/div
>
<
/div
>
...
...
This diff is collapsed.
Click to expand it.
src/app/components/numbers.js
0 → 100644
+
52
−
0
View file @
7c060da3
export
default
function
({
profileData
})
{
const
data
=
[
{
name
:
"
Recursos disponíveis
"
,
src
:
"
/redigitais.svg
"
,
value
:
"
444
"
,
},
{
name
:
"
Recursos Acessados
"
,
src
:
"
/download.svg
"
,
value
:
"
444
"
,
},
{
name
:
"
Usuários Cadastrados
"
,
src
:
"
/seguir.svg
"
,
value
:
"
444
"
,
},
]
return
(
<>
<
div
>
<
div
>
<
h1
className
=
"
flex font-bold text-3xl text-darkGray-HC-white my-10 mx-8
"
>
A
MEC
RED
é
uma
rede
para
você
se
coonectar
com
pessoas
interessadas
em
Educação
!
<
/h1
>
<
/div
>
<
div
>
<
h1
className
=
"
flex-xl text-darkTurquoise-HC-white text-wrap text-center
"
>
Construa
conosco
a
sua
rede
de
conhecimentos
,
interagindo
com
pessoas
envolvidas
com
experiência
educacionais
que
ocorrem
em
todo
o
Brasil
!
<
/h1
>
<
/div
>
<
div
>
<
div
className
=
"
flex flex-row
"
>
{
data
.
map
((
item
,
index
)
=>
{
<
div
key
=
{
index
}
className
=
""
>
<
img
src
=
{
item
.
src
}
alt
=
{
item
.
name
}
/
>
<
h1
>
{
item
.
value
}
<
/h1
>
<
/div
>
})}
<
/div
>
<
/div
>
<
/div
>
<
/
>
)
}
\ 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