diff --git a/src/views/Home/index.scss b/src/views/Home/index.scss
index 53171d0..4b1420a 100644
--- a/src/views/Home/index.scss
+++ b/src/views/Home/index.scss
@@ -5,9 +5,6 @@
@import './Footer/index.scss';
@import './Header/index.scss';
-.home {
-
-}
@media screen and (min-width: 641px) and (max-width: 1007px){
.home{
diff --git a/src/views/Home/index.tsx b/src/views/Home/index.tsx
index 0b01e48..1771054 100644
--- a/src/views/Home/index.tsx
+++ b/src/views/Home/index.tsx
@@ -13,7 +13,7 @@ import scroll from "../../util/scroll";
import Loader from "../../components/Loader";
import { connect } from "react-redux";
import { book, publicApi } from "../../redux/actions";
-import _ from 'lodash';
+import _ from "lodash";
function Home({
courseList,
@@ -28,7 +28,7 @@ function Home({
getHeader,
bookLoading,
publicLoading,
- theme
+ theme,
}: any) {
const [grade, setGrade] = useState(null);
const [vocal, setVocal] = useState(false);
@@ -49,7 +49,13 @@ function Home({
return (
<>
-
+
-
+
@@ -100,7 +112,7 @@ export default connect(
headerData: state.publicApi.header,
bookLoading: state.book.loading,
publicLoading: state.publicApi.loading,
- theme : state.publicApi.theme,
+ theme: state.publicApi.theme,
}),
{
getCourseList: book.list,
diff --git a/src/views/Subscription/SubscribeRadio/index.scss b/src/views/Subscription/SubscribeRadio/index.scss
index f649354..01311d4 100644
--- a/src/views/Subscription/SubscribeRadio/index.scss
+++ b/src/views/Subscription/SubscribeRadio/index.scss
@@ -1,111 +1,165 @@
-.subscribe-radio{
+.subscribe-radio {
width: 100%;
- border : 1px solid $gray7;
+ border: 1px solid $gray7;
margin-bottom: 15px;
border-radius: 10px;
cursor: pointer;
transition: all 0.5s;
-
- &__name{
+ &-active {
+ box-shadow: 0px 0px 6px $green !important;
+ background-color: $green !important;
+ border: none;
+ .subscribe-radio__factor {
+ background-color: rgba(255, 255, 255, 0.18);
+ }
+ h2,p,b, strong,i {
+ color: white !important;
+ }
+ }
+ &-light {
+ .subscribe-radio {
+ &__name {
+ h2 {
+ color: $gray5;
+ }
+ }
+ &__factor {
+ background-color: rgba(255, 255, 255, 0.18);
+
+ strong,
+ b {
+ color: $gray5;
+ }
+ &--tag {
+ background-color: $yellow;
+ }
+ &--finalPrice {
+ i {
+ color: $gray5;
+ }
+ }
+ &--off {
+ color: #707070;
+ b {
+ color: #707070;
+ span {
+ background-color: rgb(211, 211, 211);
+ }
+ }
+ }
+ }
+ }
+ }
+ &-dark {
+ .subscribe-radio {
+ &__name {
+ h2 {
+ color: white;
+ }
+ }
+ &__factor {
+ background-color: rgba(255, 255, 255, 0.18);
+
+ strong,
+ b {
+ color: white;
+ }
+ &--tag {
+ background-color: $yellow;
+ }
+ &--finalPrice {
+ i {
+ color: white;
+ }
+ }
+ &--off {
+ color: #707070;
+ b {
+ color: #707070;
+ span {
+ background-color: rgb(211, 211, 211);
+ }
+ }
+ }
+ }
+ &-active {
+ box-shadow: 0px 0px 6px $green;
+ background-color: $green;
+ .subscribe-radio__factor {
+ background-color: rgba(255, 255, 255, 0.18);
+ }
+ }
+ }
+ }
+ &__name {
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
- h2{
- color: white;
+ h2 {
margin-bottom: 0px;
}
-
}
- &__factor{
+ &__factor {
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
- background-color: rgba(255, 255, 255, 0.18);
-
- strong, b{
- color: white;
- }
- &--tag{
- background-color: $yellow;
+ &--tag {
padding: 4px 20px;
border-radius: 30px;
width: fit-content;
letter-spacing: -1px;
}
- &--finalPrice{
- i{
- color: white;
+ &--finalPrice {
+ i {
margin-right: 10px;
}
}
- &--off{
- color: #707070;
- b{
- color: #707070;
+ &--off {
+ b {
position: relative;
- span{
+ span {
position: absolute;
width: 100%;
height: 2px;
top: 50%;
left: 0px;
transform: translateY(-50%) rotate(-15deg);
- background-color: rgb(211, 211, 211);
opacity: 0.5;
}
}
- i{
+ i {
margin-right: 10px;
}
}
}
- &-active{
- box-shadow: 0px 0px 6px $green;
- background-color: $green;
- .subscribe-radio__factor{
- background-color: rgba(255, 255, 255, 0.18);
- }
- }
- &__light{
- h2{
- color: black !important;
- }
- .subscribe-radio{
- &-active{
- h2{
- color: white !important;
- }
- }
- }
- }
}
@media screen and (min-width: 1441px) {
- .subscribe-radio{
+ .subscribe-radio {
min-height: 60px;
- &__name{
+ &__name {
flex: 7;
- h2{
+ h2 {
font-size: 20px;
margin-right: 40px;
}
}
- &__factor{
+ &__factor {
flex: 3;
- &--tag{
+ &--tag {
font-size: 11px;
}
- &--off{
- b{
+ &--off {
+ b {
font-size: 16px;
}
- i{
+ i {
font-size: 10px;
}
}
- &--finalPrice{
- i{
+ &--finalPrice {
+ i {
font-size: 12px;
}
- strong{
+ strong {
font-size: 26px;
}
}
@@ -114,33 +168,33 @@
}
@media screen and (min-width: 1008px) and (max-width: 1440px) {
- .subscribe-radio{
+ .subscribe-radio {
min-height: 60px;
- &__name{
+ &__name {
flex: 7;
- h2{
+ h2 {
font-size: calc(100vw / 70);
margin-right: 40px;
}
}
- &__factor{
+ &__factor {
flex: 3;
- &--tag{
+ &--tag {
font-size: calc(100vw / 130);
}
- &--off{
- b{
+ &--off {
+ b {
font-size: calc(100vw / 80);
}
- i{
+ i {
font-size: calc(100vw / 115);
}
}
- &--finalPrice{
- i{
+ &--finalPrice {
+ i {
font-size: calc(100vw / 125);
}
- strong{
+ strong {
font-size: calc(100vw / 74);
}
}
@@ -149,33 +203,33 @@
}
@media screen and (min-width: 641px) and (max-width: 1007px) {
- .subscribe-radio{
+ .subscribe-radio {
min-height: 70px;
- &__name{
+ &__name {
flex: 7;
- h2{
+ h2 {
font-size: calc(100vw / 40);
margin-right: 10px;
}
}
- &__factor{
+ &__factor {
flex: 3;
- &--tag{
+ &--tag {
font-size: calc(100vw / 55);
}
- &--off{
- b{
+ &--off {
+ b {
font-size: calc(100vw / 50);
}
- i{
+ i {
font-size: calc(100vw / 60);
}
}
- &--finalPrice{
- i{
+ &--finalPrice {
+ i {
font-size: calc(100vw / 45);
}
- strong{
+ strong {
font-size: calc(100vw / 38);
}
}
@@ -184,36 +238,36 @@
}
@media screen and (max-width: 640px) {
- .subscribe-radio{
+ .subscribe-radio {
min-height: 70px;
- &__name{
+ &__name {
flex: 7;
- h2{
+ h2 {
font-size: calc(100vw / 25);
margin-right: 10px;
}
}
- &__factor{
+ &__factor {
flex: 3;
- &--tag{
+ &--tag {
font-size: calc(100vw / 45);
}
- &--off{
- b{
+ &--off {
+ b {
font-size: calc(100vw / 30);
}
- i{
+ i {
font-size: calc(100vw / 45);
}
}
- &--finalPrice{
- i{
+ &--finalPrice {
+ i {
font-size: calc(100vw / 45);
}
- strong{
+ strong {
font-size: calc(100vw / 20);
}
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/views/Subscription/SubscribeRadio/index.tsx b/src/views/Subscription/SubscribeRadio/index.tsx
index 70cd279..a02bfdb 100644
--- a/src/views/Subscription/SubscribeRadio/index.tsx
+++ b/src/views/Subscription/SubscribeRadio/index.tsx
@@ -21,7 +21,7 @@ function SubscribeRadio({ data, selectedVOD, selectVOD, theme }: any) {
[
"subscribe-radio d-flex",
selectedVOD?.id === data.id ? "subscribe-radio-active" : "",
- light ? "subscribe-radio__light" : "subscribe-radio__dark",
+ light ? "subscribe-radio-light" : "subscribe-radio-dark",
],
" "
)}
diff --git a/src/views/Subscription/index.scss b/src/views/Subscription/index.scss
index 1af7046..02fd86a 100644
--- a/src/views/Subscription/index.scss
+++ b/src/views/Subscription/index.scss
@@ -2,15 +2,29 @@
@import './SubscribeRadio/index.scss';
.subscription {
- main {
- h1,h2{
- color: $gray;
+ &-dark{
+ main {
+ h1,h2{
+ color: $gray;
+ }
+ p{
+ color : $gray;
+ margin : 10px 0px 35px;
+ }
}
- p{
- color : $gray;
- margin : 10px 0px 35px;
+ }
+ &-light{
+ main {
+ h1,h2{
+ color: $gray5;
+ }
+ p{
+ color : $gray5;
+ margin : 10px 0px 35px;
+ }
}
}
+
}
@media screen and (min-width : 1441px) {
@@ -33,7 +47,7 @@
main{
margin-top: 20px;
max-width: 700px;
- transform: scale(0.8) translateY(-80px);
+ transform: scale(0.9) translateY(-30px);
h1{
font-size: calc(100vw / 50);
}
diff --git a/src/views/Subscription/index.tsx b/src/views/Subscription/index.tsx
index 5614ef9..1f3e809 100644
--- a/src/views/Subscription/index.tsx
+++ b/src/views/Subscription/index.tsx
@@ -28,6 +28,7 @@ function Subscription({
className={_.join(
[
"subscription main d-flex flex-column",
+ light ? 'subscription-light bg-white' : 'subscription-dark bg-black'
],
" "
)}
diff --git a/src/views/VideoTube/LessonPlayList/index.scss b/src/views/VideoTube/LessonPlayList/index.scss
index 3dcac33..f20be7f 100644
--- a/src/views/VideoTube/LessonPlayList/index.scss
+++ b/src/views/VideoTube/LessonPlayList/index.scss
@@ -1,105 +1,130 @@
-.lesson-playlist{
+.lesson-playlist {
width: 100%;
- padding-bottom : 10px;
- &__light{
- .lesson-playlist{
- h3{
- background-color : inherit !important;
- border: 1px solid $gray9 !important;
- }
- &__item{
- *{
+ padding-bottom: 10px;
+ &-light {
+ header {
+ background-color: inherit !important;
+ h3 {
+ background-color: $gray12;
+ }
+ }
+ .lesson-playlist {
+ &__item {
+ * {
color: black !important;
}
+ &--active{
+ background-color: $gray13;
+ }
+ }
+ }
+ }
+ &-dark {
+ header {
+ background-color: inherit !important;
+ h3 {
+ background-color: $gray7;
+ }
+ span {
+ background-color: $gray7;
+ }
+ }
+ .lesson-playlist {
+
+ &__item {
+ &--count {
+ color: white;
+ }
+ &--active {
+ background: rgba($gray12, 0.21);
+ }
+ &--text {
+ h4 {
+ color: white;
+ }
+ p {
+ color: $gray7;
+ }
+ }
+ &--video {
+ span {
+ background-color: #0000006d;
+ color: white;
+ }
+ }
}
}
-
}
- header{
- background-color: inherit !important;
+ header {
margin-bottom: 5px;
- h3{
- background-color : $gray7;
+ h3 {
padding: 5px 10px;
margin: 0px;
}
- span{
- background-color : $gray7;
+ span {
display: flex;
flex: 1;
- height : 1px;
+ height: 1px;
}
}
- &__item{
- &--count{
- color: white;
- }
- &--active{
- background: rgba($gray12, 0.21);
- }
- &--text{
+ &__item {
+ &--text {
padding: 15px 10px;
- h4{
- color: white;
+ h4 {
margin: 0px;
}
- p{
- color: $gray7;
+ p {
margin: 0px;
}
}
- &--video{
- span{
- background-color : #0000006d;
+ &--video {
+ span {
padding: 0px 5px;
position: absolute;
left: 5px;
bottom: 10px;
- color: white;
}
}
}
}
-
@media screen and (min-width: 1441px) {
- .lesson-playlist{
+ .lesson-playlist {
width: 100%;
- header{
- padding: 10px 40px 0px 0px !important;
- h3{
+ header {
+ padding: 10px 40px 0px 0px !important;
+ h3 {
font-size: 16px;
}
- span{
-
+ span {
}
}
- &__item{
+ &__item {
padding: 10px 0px 5px 0px;
cursor: pointer;
- &--count{
+ &--count {
font-size: 18px;
- width : 40px;
+ width: 40px;
text-align: center;
}
- &--text{
+ &--text {
max-width: 55%;
- h4{
+ h4 {
font-size: 17px;
}
- p{
+ p {
font-size: 14px;
}
}
- &--video{
+ &--video {
width: 142px;
height: 90px;
position: relative;
- img{
+ img {
width: 100%;
height: 100%;
}
- span{
+ span {
font-size: 18px;
}
}
@@ -108,44 +133,43 @@
}
@media screen and (min-width: 1008px) and (max-width: 1440px) {
- .lesson-playlist{
+ .lesson-playlist {
width: 100%;
- header{
- padding: 10px 40px 0px 0px !important;
- h3{
+ header {
+ padding: 10px 40px 0px 0px !important;
+ h3 {
font-size: calc(100vw / 95);
}
- span{
-
+ span {
}
}
- &__item{
+ &__item {
padding: 10px 0px 5px 0px;
cursor: pointer;
- &--count{
+ &--count {
font-size: calc(100vw / 72);
- width : 40px;
+ width: 40px;
text-align: center;
}
- &--text{
+ &--text {
max-width: 55%;
- h4{
+ h4 {
font-size: calc(100vw / 90);
}
- p{
+ p {
font-size: calc(100vw / 100);
}
}
- &--video{
+ &--video {
width: 132px;
height: 90px;
position: relative;
- img{
- width : 100%;
- height : 100%;
+ img {
+ width: 100%;
+ height: 100%;
}
- span{
- font-size: calc(100vw / 100);
+ span {
+ font-size: calc(100vw / 100);
}
}
}
@@ -153,44 +177,43 @@
}
@media screen and (min-width: 641px) and (max-width: 1007px) {
- .lesson-playlist{
+ .lesson-playlist {
width: 100%;
- header{
- padding: 10px 50px 0px 0px !important;
- h3{
+ header {
+ padding: 10px 50px 0px 0px !important;
+ h3 {
font-size: calc(100vw / 45);
}
- span{
-
+ span {
}
}
- &__item{
+ &__item {
padding: 10px 0px 5px 0px;
cursor: pointer;
- &--count{
+ &--count {
font-size: calc(100vw / 35);
- width : 50px;
+ width: 50px;
text-align: center;
}
- &--text{
+ &--text {
max-width: 55%;
- h4{
+ h4 {
font-size: calc(100vw / 45);
}
- p{
+ p {
font-size: calc(100vw / 50);
}
}
- &--video{
+ &--video {
width: 182px;
// height: 90px;
position: relative;
- img{
- width : 100%;
- height : 100%;
+ img {
+ width: 100%;
+ height: 100%;
}
- span{
- font-size: calc(100vw / 45);
+ span {
+ font-size: calc(100vw / 45);
}
}
}
@@ -198,46 +221,45 @@
}
@media screen and (max-width: 640px) {
- .lesson-playlist{
+ .lesson-playlist {
width: 100%;
- header{
- padding: 10px 40px 0px 0px !important;
- h3{
+ header {
+ padding: 10px 40px 0px 0px !important;
+ h3 {
font-size: calc(100vw / 38);
}
- span{
-
+ span {
}
}
- &__item{
+ &__item {
padding: 10px 0px 5px 0px;
cursor: pointer;
- &--count{
+ &--count {
font-size: calc(100vw / 25);
- width : 40px;
+ width: 40px;
text-align: center;
}
- &--text{
+ &--text {
max-width: 55%;
- h4{
+ h4 {
font-size: calc(100vw / 35);
}
- p{
+ p {
font-size: calc(100vw / 40);
}
}
- &--video{
+ &--video {
width: 132px;
height: 90px;
position: relative;
- img{
- width : 100%;
- height : 100%;
+ img {
+ width: 100%;
+ height: 100%;
}
- span{
- font-size: calc(100vw / 40);
+ span {
+ font-size: calc(100vw / 40);
}
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/views/VideoTube/LessonPlayList/index.tsx b/src/views/VideoTube/LessonPlayList/index.tsx
index 4b32221..e214b59 100644
--- a/src/views/VideoTube/LessonPlayList/index.tsx
+++ b/src/views/VideoTube/LessonPlayList/index.tsx
@@ -43,7 +43,7 @@ function LessonPlayList({
className={_.join(
[
"lesson-playlist d-flex flex-column",
- light ? "lesson-playlist__light" : "lesson-playlist__dark",
+ light ? "lesson-playlist-light" : "lesson-playlist-dark",
],
" "
)}
diff --git a/src/views/VideoTube/index.scss b/src/views/VideoTube/index.scss
index d64d4f0..6a14cc2 100644
--- a/src/views/VideoTube/index.scss
+++ b/src/views/VideoTube/index.scss
@@ -4,7 +4,8 @@
@import "./LessonPlayList/index.scss";
.video-tube {
- &__light {
+ &-light {
+ background-color: white;
h1,
p {
color: black !important;
@@ -13,21 +14,142 @@
&__content {
&--comments {
color: black !important;
+ header{
+ background-color: inherit !important;
+ h2{
+ color: $green !important;
+ }
+ }
+ button{
+ color: $green !important;
+ background-color: inherit;
+ }
}
&--addComment {
textarea {
- background-color: white !important;
+ background-color: $gray13;
color: black !important;
+ border: none;
}
}
}
- &__sidebar{
- header{
- background-color: white !important;
- *{
+ &__sidebar {
+ header {
+ background-color: $gray12;
+ * {
color: black !important;
}
}
+ &--playlist{
+ border: 1px solid $gray7;
+ border-top: none;
+ }
+ &--suggests{
+ border : none;
+ &__list{
+ background-color: inherit;
+ }
+ }
+ &--attachments{
+ border: none;
+ }
+ }
+ }
+ }
+ &-dark {
+ .video-tube{
+ &__content {
+ &--display {
+ border-bottom: 1px solid $gray8;
+ video {
+ border: 1px solid $gray8;
+ }
+ span {
+ color: $green4;
+ }
+ h1 {
+ color: white;
+ }
+ p {
+ color: white;
+ }
+ }
+ &--comments {
+ color: white;
+ border-bottom: 1px solid $gray8;
+ header {
+ h2 {
+ color: white;
+ }
+ }
+ button {
+ background-color: inherit;
+ color: $green;
+ }
+ }
+ &--addComment {
+ textarea {
+ background-color: $gray8;
+ color: white;
+ &::placeholder {
+ color: $gray4;
+ }
+ }
+ }
+ }
+ &__sidebar {
+ &--playlist {
+ border: 1px solid $gray8;
+ header {
+ color: white;
+ }
+ &___list {
+ /* Track */
+ &::-webkit-scrollbar-track {
+ box-shadow: inset 0 0 5px inherit;
+ }
+
+ /* Handle */
+ &::-webkit-scrollbar-thumb {
+ background: $gray;
+ }
+
+ /* Handle on hover */
+ &::-webkit-scrollbar-thumb:hover {
+ background: white;
+ }
+ }
+ }
+ &--attachments {
+ border: 1px solid $gray8;
+ header {
+ color: white;
+ }
+ &___list {
+ /* Track */
+ &::-webkit-scrollbar-track {
+ box-shadow: inset 0 0 5px inherit;
+ }
+ /* Handle */
+ &::-webkit-scrollbar-thumb {
+ background: $gray10;
+ }
+ /* Handle on hover */
+ &::-webkit-scrollbar-thumb:hover {
+ background: white;
+ }
+ }
+ }
+ &--suggests {
+ border: 1px solid $gray8;
+ header {
+ color: white;
+ span {
+ background-color: #00fff74f;
+ color: $blue2;
+ }
+ }
+ }
}
}
}
@@ -35,26 +157,19 @@
margin-left: 15px;
&--display {
- border-bottom: 1px solid $gray8;
padding-bottom: 30px;
video {
- border: 1px solid $gray8;
}
span {
- color: $green4;
padding: 15px 0px;
}
h1 {
- color: white;
margin-bottom: 20px;
}
p {
- color: white;
}
}
&--comments {
- color: white;
- border-bottom: 1px solid $gray8;
padding-bottom: 30px;
header {
padding: 20px 0px;
@@ -63,9 +178,7 @@
}
}
button {
- background-color: inherit;
border: none;
- color: $green;
}
}
&--addComment {
@@ -74,25 +187,18 @@
textarea {
width: 100%;
border-radius: 12px;
- background-color: $gray8;
padding: 10px;
- color: white;
&:focus {
outline: none;
}
- &::placeholder {
- color: $gray4;
- }
}
}
}
&__sidebar {
&--playlist {
- border: 1px solid $gray8;
margin-bottom: 30px;
header {
width: 100%;
- color: white;
h2,
p {
margin: 0px;
@@ -110,28 +216,23 @@
/* Track */
&::-webkit-scrollbar-track {
- box-shadow: inset 0 0 5px inherit;
border-radius: 10px;
}
/* Handle */
&::-webkit-scrollbar-thumb {
- background: $gray;
border-radius: 10px;
}
/* Handle on hover */
&::-webkit-scrollbar-thumb:hover {
- background: white;
}
}
}
&--attachments {
- border: 1px solid $gray8;
margin-bottom: 30px;
header {
width: 100%;
- color: white;
h2,
p {
margin: 0px;
@@ -148,33 +249,26 @@
/* Track */
&::-webkit-scrollbar-track {
- box-shadow: inset 0 0 5px inherit;
border-radius: 10px;
}
/* Handle */
&::-webkit-scrollbar-thumb {
- background: $gray10;
border-radius: 10px;
}
/* Handle on hover */
&::-webkit-scrollbar-thumb:hover {
- background: white;
}
}
}
&--suggests {
- border: 1px solid $gray8;
header {
width: 100%;
- color: white;
h2 {
margin: 0px;
}
span {
- background-color: #00fff74f;
- color: $blue2;
padding: 5px 8px;
}
}
@@ -571,7 +665,6 @@
}
&___list {
padding: 15px 12px;
- background-color: #08793d58;
}
}
}
diff --git a/src/views/VideoTube/index.tsx b/src/views/VideoTube/index.tsx
index 9984008..858f0ba 100644
--- a/src/views/VideoTube/index.tsx
+++ b/src/views/VideoTube/index.tsx
@@ -52,7 +52,7 @@ function VodTube({
className={_.join(
[
"video-tube main d-flex flex-column",
- light ? "video-tube__light" : "video-tube__dark",
+ light ? "video-tube-light bg-white" : "video-tube-dark bg-black",
],
" "
)}