Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

news add modal ui (fixes: #342) #410

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open
Changes from 3 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
4fb217a
news add modal ui
SujalLama Jul 29, 2021
975df15
scss lint fix
SujalLama Jul 29, 2021
0195fb2
scss fix part 2
SujalLama Jul 29, 2021
0ca05c0
news modal: same component for course and news
SujalLama Aug 2, 2021
c1298f1
video feature added in news
SujalLama Aug 3, 2021
a99c995
video feature added in the news add
SujalLama Aug 3, 2021
49e04dc
js lint fix in content
SujalLama Aug 3, 2021
c6f4c1d
news table linked to photos, videos and texts table
SujalLama Aug 5, 2021
08e7192
js lint fix of api
SujalLama Aug 5, 2021
0885ea5
news view and news create
SujalLama Aug 5, 2021
8e2b7ac
news edit and delete feature
SujalLama Aug 6, 2021
1cb7e0d
edit content component added
SujalLama Aug 6, 2021
2f4d815
importing necessary files
SujalLama Aug 6, 2021
01a405f
changes to the text, video and image
SujalLama Aug 6, 2021
aeddcce
Action file created
SujalLama Aug 6, 2021
3eae392
changes to edit content
SujalLama Aug 6, 2021
9d05d4e
styling Image, Text and Video
SujalLama Aug 6, 2021
723caf2
delete individual text, image and video in news
SujalLama Aug 6, 2021
ad2a34e
news add configuration
SujalLama Aug 6, 2021
3adba5a
adding cover image functionality to the news-component
SujalLama Aug 9, 2021
5430f84
video actions
SujalLama Aug 9, 2021
d4a2fa3
photo action and text action added
SujalLama Aug 9, 2021
c860b62
video actions is generic
SujalLama Aug 9, 2021
956ab91
updated photo of the news
SujalLama Aug 9, 2021
0bf047c
photo edit controller configured
SujalLama Aug 9, 2021
6170eac
photo, video and text refresh on delete and update
SujalLama Aug 9, 2021
309b353
add modal error fix
SujalLama Aug 9, 2021
f6b1cd7
Merge branch 'main' into news-modal-ui
lmmrssa Aug 11, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 33 additions & 12 deletions src/components/newsCreateModal/NewsCreateModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
.last-input-variation {
width: 45%;
}

.full {
width: 100% !important;
}
Expand Down Expand Up @@ -87,13 +88,16 @@
font-size: 11px;
width: 50%;
}

.errorMsg {
color: var(--secondary-red);
margin: 0.5em 0 1em 0;
font-size: 1em;
}

.error {
border-color: var(--secondary-red);

&:focus {
border-color: var(--secondary-red) !important;
}
Expand All @@ -107,7 +111,6 @@
padding: 1.4em 1em;
border: 0.5px solid var(--primary-white);
background: var(--background-color-light);
outline: none;
cursor: pointer;
position: relative;

Expand All @@ -119,14 +122,17 @@
img.avatar {
display: none;
}

img.drag-drop-close {
right: 0;
top: 0;
}

.videoName {
color: #fff;
z-index: 1;
}

.drag-drop-icon-container {
width: 100%;
height: 100%;
Expand All @@ -151,6 +157,7 @@
}
}
}

.videoUploadBtn::-webkit-file-upload-button {
display: none;
}
Expand All @@ -160,6 +167,7 @@
flex-wrap: wrap;
text-align: center;
}

.video-row-3 > input,
span {
width: 100% !important;
Expand All @@ -184,7 +192,7 @@
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: var(--primary-black);
background-color: var(--cards);
border-radius: 0.4em;

@media (max-width: 768px) {
Expand All @@ -195,18 +203,22 @@
.toggle-container {
background: var(--cards);
}

.active + .toggle-container {
background: var(--primary-color);
}
}

.input-container {
.block {
border: 1px solid var(--primary-grey);
background-color: var(--popups);
border: 1px solid var(--dropdowns);
background-color: var(--cards);

.label {
width: 100%;
margin-left: 2.5em;
}

.inputField {
padding: 1.2em 0;
color: #fff;
Expand All @@ -217,31 +229,34 @@
}
}
}

.textarea {
margin-bottom: 1.5em;
border: 1px solid var(--primary-grey);
border: 1px solid var(--dropdowns);
outline: none;
background-color: var(--popups);
background-color: var(--cards);
color: #ffff;
font-size: 1.05em;
font-family: inherit;

&__error {
border-color: var(--secondary-red);

&:focus {
border-color: var(--secondary-red) !important;
}
}

&:focus {
border-color: var(--primary-color);
}

&::-webkit-input-placeholder {
color: var(--primary-grey);
}

&:focus {
border-color: var(--primary-color);
}
}
}

.drag-drop-container {
width: 100%;
height: 15em;
Expand All @@ -252,6 +267,7 @@
position: relative;
overflow: hidden;
}

.drag-drop {
height: 100%;
border: none;
Expand Down Expand Up @@ -280,11 +296,12 @@
margin-bottom: 1.5em;
}
}

.video-row-3 {
input {
border: 1px solid var(--primary-grey);
border: 1px solid var(--dropdowns);
outline: none;
background-color: var(--popups);
background-color: var(--cards);
color: #ffff;
font-size: 1.05em;
font-family: inherit;
Expand All @@ -302,14 +319,17 @@
margin: 0;
}
}

.dragDropText {
color: #ffff;
height: auto;
}

@media (max-width: 768px) {
span {
margin: 0.8em 0;
}

.videoUploadBtn {
width: 100% !important;

Expand All @@ -320,6 +340,7 @@
}
}
}

&__text {
.input-container {
margin-bottom: 1.5em;
Expand Down