Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIR - Visual Interactive Reading
VIR - frontend
Commits
42465888
Commit
42465888
authored
6 months ago
by
blakolukas
Browse files
Options
Download
Email Patches
Plain Diff
arrumando o estilo do componente
parent
5ca5767c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
vir/src/App.css
+0
-38
vir/src/App.css
vir/src/App.js
+6
-18
vir/src/App.js
vir/src/components/bookcard/bookcard.css
+61
-18
vir/src/components/bookcard/bookcard.css
vir/src/components/bookcard/bookcard.js
+23
-8
vir/src/components/bookcard/bookcard.js
vir/src/components/bookcard/simulacao_test.js
+1
-1
vir/src/components/bookcard/simulacao_test.js
with
91 additions
and
83 deletions
+91
-83
vir/src/App.css
View file @
42465888
.App
{
text-align
:
center
;
}
.App-logo
{
height
:
40vmin
;
pointer-events
:
none
;
}
@media
(
prefers-reduced-motion
:
no-preference
)
{
.App-logo
{
animation
:
App-logo-spin
infinite
20s
linear
;
}
}
.App-header
{
background-color
:
#282c34
;
min-height
:
100vh
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
calc
(
10px
+
2vmin
);
color
:
white
;
}
.App-link
{
color
:
#61dafb
;
}
@keyframes
App-logo-spin
{
from
{
transform
:
rotate
(
0deg
);
}
to
{
transform
:
rotate
(
360deg
);
}
}
This diff is collapsed.
Click to expand it.
vir/src/App.js
View file @
42465888
import
'
./App.css
'
;
import
React
from
'
react
'
;
import
Header
from
'
./components/bookshelf/bookshelf
'
;
import
BookReader
from
'
./components/reader/bookreader
'
;
import
Navbar
from
'
./components/footer-component/footer
'
;
import
WithLabelExample
from
'
./components/progress-bar/progress
'
;
import
'
./App.css
'
;
import
BookCard
from
'
./components/bookcard/bookcard
'
;
import
BookShelf
from
'
./components/bookshelf/bookshelf
'
;
function
App
()
{
return
(
<
div
className
=
"
App
"
>
<
main
>
<
WithLabelExample
/>
<
Navbar
><
/Navbar
>
<
main
className
=
"
main-container
"
>
<
BookCard
/>
<
BookCard
/>
<
/main
>
<
/div
>
);
}
export
default
App
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
vir/src/components/bookcard/bookcard.css
View file @
42465888
body
{
padding
:
10px
;
}
.book-card
{
display
:
flex
;
border-radius
:
15px
;
box-shadow
:
0
8px
16px
rgba
(
0
,
0
,
0
,
0.2
),
8px
0
16px
rgba
(
0
,
0
,
0
,
0.2
);
padding
:
20
px
;
box-shadow
:
0
8px
16px
rgba
(
0
,
0
,
0
,
0.2
);
padding
:
15
px
;
background-color
:
#ffece7
;
max-width
:
600px
;
margin
:
20px
auto
;
...
...
@@ -11,17 +15,26 @@
.book-image
{
width
:
120px
;
height
:
180px
;
height
:
170px
;
border
:
1.5px
solid
black
;
object-fit
:
cover
;
border-radius
:
10px
;
margin-right
:
20px
;
}
.book-details
{
position
:
relative
;
display
:
flex
;
flex
:
1
;
flex-direction
:
column
;
justify-content
:
center
;
flex-grow
:
1
;
}
.book-names
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
max-width
:
100%
;
display
:
inline-block
;
}
.book-title
{
...
...
@@ -39,45 +52,75 @@
}
.progress-container
{
position
:
relative
;
background-color
:
#ffdecf
;
display
:
flex
;
flex-direction
:
column
;
border-radius
:
10px
;
overflow
:
hidden
;
height
:
15px
;
margin-bottom
:
10px
;
}
.progress-bar
{
height
:
100%
;
background-color
:
#f4663b
;
display
:
flex
;
background-color
:
#f4663b
4
c
;
border-radius
:
10px
;
width
:
80%
;
height
:
20px
;
}
.progress-bar-done
{
background-color
:
#f4663b
;
border-radius
:
10px
;
height
:
100%
;
}
.book-progress-container
{
display
:
flex
;
align-items
:
center
;
}
.book-progress-percentage
{
display
:
flex
;
}
.progress-percentage
{
position
:
absolute
;
right
:
10px
;
top
:
-5px
;
font-size
:
14px
;
font-weight
:
bold
;
padding-left
:
10px
;
font-weight
:
400
;
color
:
black
;
}
.page-info
{
display
:
flex
;
justify-content
:
space-between
;
font-size
:
14px
;
font-size
:
0.6rem
;
margin-bottom
:
15px
;
color
:
black
;
width
:
80%
;
}
.page-info-read
{
color
:
#f4663b
;
font-weight
:
700
;
}
.button-container
{
display
:
flex
;
justify-content
:
center
;
width
:
fit-content
;
}
.continue-button
{
background-color
:
transparent
;
color
:
#f4663b
;
border
:
1px
solid
#f4663b
;
padding
:
10px
2
0px
;
padding
:
10px
3
0px
;
border-radius
:
20px
;
font-size
:
16px
;
cursor
:
pointer
;
transition
:
background-color
0.3s
ease
;
}
This diff is collapsed.
Click to expand it.
vir/src/components/bookcard/bookcard.js
View file @
42465888
...
...
@@ -32,20 +32,35 @@ const BookCard = () => {
return
(
<
div
className
=
"
book-card
"
>
<
img
src
=
{
bookData
.
image
}
alt
=
{
bookData
.
title
}
className
=
"
book-image
"
/>
<
div
className
=
"
book-details
"
>
<
h3
className
=
"
book-title
"
>
{
bookData
.
title
}
<
/h3
>
<
p
className
=
"
book-author
"
>
{
bookData
.
author
.
toUpperCase
()}
<
/p
>
<
div
className
=
'
book-names
'
>
<
h3
className
=
"
book-title
"
>
{
bookData
.
title
}
<
/h3
>
<
p
className
=
"
book-author
"
>
{
bookData
.
author
.
toUpperCase
()}
<
/p
>
<
/div
>
<
div
className
=
"
progress-container
"
>
<
div
className
=
"
progress-bar
"
style
=
{{
width
:
`
${
percentageRead
}
%`
}}
><
/div
>
<
span
className
=
"
progress-percentage
"
>
{
Math
.
round
(
percentageRead
)}
%<
/span
>
<
div
className
=
'
book-progress-container
'
>
<
div
className
=
"
progress-bar
"
>
<
div
className
=
"
progress-bar-done
"
style
=
{{
width
:
`
${
percentageRead
}
%`
}}
><
/div
>
<
/div
>
<
div
className
=
"
book-progress-percentage
"
>
<
p
className
=
"
progress-percentage
"
>
{
Math
.
round
(
percentageRead
)}
%<
/p
>
<
/div
>
<
/div
>
<
div
className
=
"
page-info
"
>
<
span
className
=
"
page-info-read
"
>
{
bookData
.
pagesRead
}
páginas
lidas
<
/span
>
<
span
className
=
'
page-info-notread
'
>
faltam
{
bookData
.
totalPages
-
bookData
.
pagesRead
}
páginas
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"
page-info
"
>
<
span
>
{
bookData
.
pagesRead
}
páginas
lidas
<
/span
>
<
span
>
faltam
{
bookData
.
totalPages
-
bookData
.
pagesRead
}
páginas
<
/span
>
<
div
className
=
'
button-container
'
>
<
button
className
=
"
continue-button
"
>
Continuar
Leitura
<
/button
>
<
/div
>
<
button
className
=
"
continue-button
"
>
Continuar
Leitura
<
/button
>
<
/div
>
<
/div
>
);
};
...
...
This diff is collapsed.
Click to expand it.
vir/src/components/bookcard/simulacao_test.js
View file @
42465888
...
...
@@ -8,7 +8,7 @@ export const fetchSimulatedBookData = async () => {
title
:
'
O Pequeno Príncipe
'
,
author
:
'
Antoine de Saint-Exupéry
'
,
totalPages
:
94
,
pagesRead
:
4
6
,
pagesRead
:
4
0
,
image
:
defaultImage
});
});
...
...
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