Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lecture-devops-app-client
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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Sepide Jamshididana
lecture-devops-app-client
Commits
69edc8e0
Commit
69edc8e0
authored
1 year ago
by
Sepide Jamshididana
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit
parents
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
43
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/img/background.jpg
+0
-0
0 additions, 0 deletions
src/img/background.jpg
src/index.css
+376
-0
376 additions, 0 deletions
src/index.css
src/index.js
+21
-0
21 additions, 0 deletions
src/index.js
with
397 additions
and
0 deletions
src/img/background.jpg
0 → 100644
+
0
−
0
View file @
69edc8e0
43.5 KiB
This diff is collapsed.
Click to expand it.
src/index.css
0 → 100644
+
376
−
0
View file @
69edc8e0
@import
url('https://fonts.googleapis.com/css2?family=Nunito&display=swap')
;
*
{
margin
:
0
;
padding
:
0
;
box-sizing
:
border-box
;
}
/* || VARIABLES */
:root
{
/* COLORS */
--BGCOLOR
:
#0F172A
;
--BORDER-COLOR
:
#FFF
;
--COLOR
:
#FFF
;
--ERROR
:
firebrick
;
--INACTIVE
:
lightgray
;
--LINK-COLOR
:
whitesmoke
;
--LINK-HOVER
:
rgba
(
245
,
245
,
245
,
0.9
);
--Todo-BGCOLOR
:
hsla
(
240
,
64%
,
27%
,
0.65
);
--STATUS-COMPLETE
:
limegreen
;
--STATUS-OPEN
:
firebrick
;
--TABLE-BGCOLOR
:
#FFF
;
--TABLE-COLOR
:
#000
;
}
/* || UTILITY CLASSES */
.errmsg
{
display
:
inline-block
;
background-color
:
var
(
--TABLE-BGCOLOR
);
color
:
var
(
--ERROR
);
padding
:
0.25em
;
margin-bottom
:
0.5em
;
}
.errmsg
a
:any-link
{
color
:
var
(
--ERROR
);
text-decoration
:
underline
;
}
.nowrap
{
white-space
:
nowrap
;
}
.icon-button
{
width
:
48px
;
height
:
48px
;
font-size
:
2.5rem
;
background-color
:
transparent
;
border
:
none
;
color
:
var
(
--COLOR
);
display
:
grid
;
place-content
:
center
;
}
.icon-button
:hover
,
.icon-button
:focus-visible
{
transform
:
scale
(
1.2
);
}
.icon-button
[
disabled
]
{
visibility
:
hidden
;
}
/* || GENERAL STYLES */
body
{
font-family
:
'Nunito'
,
sans-serif
;
min-height
:
100vh
;
background-color
:
var
(
--BGCOLOR
);
color
:
var
(
--COLOR
);
background-image
:
url('./img/background.jpg')
;
background-size
:
cover
;
background-position
:
top
right
;
background-blend-mode
:
multiply
;
}
input
,
button
,
textarea
,
select
{
font
:
inherit
;
}
#root
{
/* React root div */
min-height
:
100vh
;
display
:
flex
;
flex-flow
:
column
nowrap
;
}
a
{
text-decoration
:
none
;
}
a
,
a
:visited
{
color
:
var
(
--LINK-COLOR
);
}
a
:hover
,
a
:focus-visible
{
color
:
var
(
--LINK-HOVER
);
}
/* || PAGES */
.public
,
.welcome
{
display
:
flex
;
flex-direction
:
column
;
gap
:
1rem
;
}
.public
{
padding
:
1em
;
flex-grow
:
1
;
}
.public__main
,
.login
{
flex-grow
:
1
;
border-top
:
2px
solid
var
(
--BORDER-COLOR
);
border-bottom
:
2px
solid
var
(
--BORDER-COLOR
);
padding
:
1em
0
;
}
.public__addr
{
margin-top
:
1em
;
}
.welcome
a
::before
{
content
:
"➜ "
}
/* || DASH HEADER, CONTAINER & FOOTER */
.dash-header
{
position
:
sticky
;
top
:
0
;
z-index
:
1
;
background-color
:
var
(
--BGCOLOR
);
padding
:
0
0.5em
;
border-bottom
:
1px
solid
var
(
--BORDER-COLOR
);
}
.dash-header__container
{
display
:
flex
;
flex-flow
:
row
nowrap
;
justify-content
:
space-between
;
align-items
:
center
;
}
.dash-header__nav
{
display
:
flex
;
flex-flow
:
row
nowrap
;
justify-content
:
flex-end
;
gap
:
0.5em
;
}
.dash-container
{
padding
:
0.75em
0.5em
0.5em
;
flex-grow
:
1
;
}
.dash-footer
{
font-size
:
1rem
;
position
:
sticky
;
bottom
:
0
;
z-index
:
1
;
background-color
:
var
(
--BGCOLOR
);
padding
:
0.5em
;
border-top
:
1px
solid
var
(
--BORDER-COLOR
);
display
:
flex
;
flex-flow
:
row
nowrap
;
justify-content
:
flex-start
;
gap
:
1em
;
}
.dash-footer__button
{
font-size
:
1rem
;
width
:
auto
;
height
:
auto
;
}
/* || TABLES - GENERAL */
thead
,
tbody
,
tr
{
display
:
contents
;
}
.table
{
font-size
:
1rem
;
width
:
100%
;
display
:
grid
;
grid-template-columns
:
1
fr
2
fr
1
fr
;
color
:
var
(
--TABLE-COLOR
);
gap
:
0.1em
;
}
.table__button
{
padding
:
0.25em
;
font-size
:
1.5rem
;
color
:
var
(
--TABLE-COLOR
);
}
.table__thead
{
position
:
sticky
;
top
:
0
;
z-index
:
1
;
}
.table__th
,
.table__cell
{
background-color
:
var
(
--TABLE-BGCOLOR
);
text-align
:
left
;
border
:
1px
solid
var
(
--TABLE-COLOR
);
padding
:
0.5em
;
}
.table__cell
:last-child
{
display
:
grid
;
place-content
:
center
;
}
.table__cell--inactive
{
background-color
:
var
(
--INACTIVE
);
}
/* || Todo */
.todo__created
,
.todo__updated
,
.todo__username
{
display
:
none
;
}
.todo__status
{
font-weight
:
bold
;
}
.todo__status--open
{
color
:
var
(
--STATUS-OPEN
);
}
.todo__status--completed
{
color
:
var
(
--STATUS-COMPLETE
);
}
/* || FORM - GENERAL */
.form
{
display
:
flex
;
flex-flow
:
column
nowrap
;
gap
:
0.75em
;
max-width
:
800px
;
}
.form__checkbox-container
{
display
:
flex
;
align-items
:
center
;
width
:
fit-content
;
gap
:
0.5em
;
}
.form__persist
{
display
:
flex
;
align-items
:
center
;
width
:
100%
;
gap
:
0.5em
;
}
.form__title-row
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
.form__input
,
.form__submit-button
{
padding
:
0.5em
;
border-radius
:
15px
;
}
.form__input--text
{
min-height
:
150px
;
}
.form__input--incomplete
{
border
:
1px
solid
red
;
outline
:
1px
solid
red
;
}
.form__checkbox
{
width
:
24px
;
height
:
24px
;
}
.form__select
{
width
:
fit-content
;
padding
:
0.25em
;
}
.form__action-buttons
{
display
:
flex
;
justify-content
:
flex-end
;
align-items
:
center
;
gap
:
0.5em
;
position
:
absolute
;
right
:
0.5em
;
}
.form__row
{
display
:
flex
;
flex-flow
:
row
nowrap
;
gap
:
2em
;
}
.form__divider
{
display
:
flex
;
flex-flow
:
column
nowrap
;
gap
:
0.5em
;
}
@media
screen
and
(
max-width
:
400px
)
{
h1
{
font-size
:
2rem
;
}
.dash-header__nav
{
gap
:
0
;
}
.icon-button
{
font-size
:
1.5rem
;
}
}
@media
screen
and
(
min-width
:
768px
)
{
body
{
font-size
:
1.25rem
;
}
.dash-header
{
padding
:
0
1em
;
}
.dash-container
{
padding
:
1em
;
}
.table
{
font-size
:
1.5rem
;
}
.table--todos
{
grid-template-columns
:
repeat
(
3
,
1
fr
)
2
fr
repeat
(
2
,
1
fr
);
}
.todo__created
,
.todo__updated
,
.todo__username
{
display
:
block
}
.form__action-buttons
{
position
:
static
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/index.js
0 → 100644
+
21
−
0
View file @
69edc8e0
import
React
from
"
react
"
;
import
ReactDOM
from
"
react-dom/client
"
;
import
"
./index.css
"
;
import
App
from
"
./App
"
;
import
{
BrowserRouter
,
Routes
,
Route
}
from
"
react-router-dom
"
;
import
{
store
}
from
"
./app/store
"
;
import
{
Provider
}
from
"
react-redux
"
;
const
root
=
ReactDOM
.
createRoot
(
document
.
getElementById
(
"
root
"
));
root
.
render
(
<
React
.
StrictMode
>
<
Provider
store
=
{
store
}
>
<
BrowserRouter
>
<
Routes
>
<
Route
path
=
"
/*
"
element
=
{
<
App
/>
}
/>
<
/Routes>
<
/BrowserRouter>
<
/Provider>
<
/React.StrictMode>
);
This diff is collapsed.
Click to expand it.
Prev
1
2
3
Next
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