reza added some light mode

master
Reza 3 years ago
parent 952355c1cd
commit fcb57a8c66
  1. BIN
      src/assets/icons/document-green.png
  2. BIN
      src/assets/icons/play-green.png
  3. 4
      src/components/Navbar/index.scss
  4. 2
      src/components/Navbar/index.tsx
  5. 25
      src/components/StyledRating/index.tsx
  6. 2
      src/constants/colors.scss
  7. 8
      src/custom.scss
  8. 105
      src/views/Course/Lesson/index.scss
  9. 24
      src/views/Course/Lesson/index.tsx
  10. 145
      src/views/Course/index.scss
  11. 4
      src/views/Course/index.tsx
  12. 70
      src/views/Faq/index.scss
  13. 2
      src/views/Faq/index.tsx
  14. 3
      src/views/Home/index.scss
  15. 24
      src/views/Home/index.tsx
  16. 232
      src/views/Subscription/SubscribeRadio/index.scss
  17. 2
      src/views/Subscription/SubscribeRadio/index.tsx
  18. 28
      src/views/Subscription/index.scss
  19. 1
      src/views/Subscription/index.tsx
  20. 232
      src/views/VideoTube/LessonPlayList/index.scss
  21. 2
      src/views/VideoTube/LessonPlayList/index.tsx
  22. 163
      src/views/VideoTube/index.scss
  23. 2
      src/views/VideoTube/index.tsx

Binary file not shown.

After

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

@ -7,7 +7,6 @@
left: 0px; left: 0px;
z-index: 150; z-index: 150;
&-light{ &-light{
background-color: white;
.nav___share{ .nav___share{
background-color: inherit !important; background-color: inherit !important;
border: 1px solid $green1 !important; border: 1px solid $green1 !important;
@ -20,9 +19,6 @@
color: $gray5 !important; color: $gray5 !important;
} }
} }
&-dark{
background-color: black;
}
&__container{ &__container{
width: 100%; width: 100%;
font-family: numeralLight; font-family: numeralLight;

@ -70,7 +70,7 @@ function Navbar(props: any) {
className={_.join( className={_.join(
[ [
"nav align-items-center justify-content-center", "nav align-items-center justify-content-center",
theme === "light" ? "nav-light" : "nav-dark", theme === "light" ? "nav-light bg-white" : "nav-dark bg-black",
], ],
" " " "
)} )}

@ -1,19 +1,24 @@
import React from 'react' import React from "react";
import StarIcon from '@mui/icons-material/Star'; import StarIcon from "@mui/icons-material/Star";
import Rating from '@mui/material/Rating'; import Rating from "@mui/material/Rating";
export default function StyledRating({ rate, theme }: any) {
export default function StyledRating({rate} : any) {
return ( return (
<> <>
<Rating <Rating
name="customized-color" name="customized-color"
defaultValue={rate} defaultValue={rate}
precision={0.5} precision={0.5}
icon={<StarIcon style={{ fontSize : 25, color : '#FFED00' }} />} icon={<StarIcon style={{ fontSize: 25, color: "#FFED00" }} />}
emptyIcon={<StarIcon style={{ fontSize : 25, color : '#494949' }} />} emptyIcon={
<StarIcon
style={{
fontSize: 25,
color: theme === "dark" ? "#494949" : "#777",
}}
/>
}
/> />
</> </>
) );
} }

@ -20,7 +20,7 @@ $green2 : #6cbe44;
$green3 : #00cc69; $green3 : #00cc69;
$green4 : #84de56; $green4 : #84de56;
$green5 : #9cdf52; $green5 : #9cdf52;
$green6 : #08793d;
// blue // blue
$blue : #a2b4cb; $blue : #a2b4cb;
$blue1 : #505a82; $blue1 : #505a82;

@ -31,6 +31,14 @@
display: flex; display: flex;
} }
.bg-black{
background-color: black !important;
}
.bg-white{
background-color: white !important;
}
p { p {
line-height: 1.5; line-height: 1.5;
} }

@ -2,32 +2,87 @@
transition: all 0.3s; transition: all 0.3s;
overflow : hidden; overflow : hidden;
border-bottom: 1px solid $gray9; border-bottom: 1px solid $gray9;
&__light{ &-light {
header{ header {
background-color : white !important; background-color : $gray13;
border: 1px solid $gray9; border: 1px solid $gray9;
h4 {
color: $green6;
}
div {
color: $gray5;
}
}
.lesson{
&__files{
border-left: 1px solid $gray9;
border-right: 1px solid $gray9;
p{
color: $gray5;
background-color: $gray12;
}
&--sample{
&:hover{
background-color: $gray12;
}
color: $gray5;
a{
color: $gray5;
}
}
&--active{
// border-bottom: 1px solid $gray11;
}
}
}
}
&-dark{
header {
background-color: #414141;
h4 {
color: $green;
}
div {
color: $gray10;
}
} }
.lesson__files *{ .lesson{
color: black !important;
&__files{
border-left: 1px solid $gray9;
border-right: 1px solid $gray9;
p{
color: white;
background-color: $gray1;
}
&--sample{
&:hover{
background-color: rgb(58, 58, 58);
}
color: white;
a{
color: white;
}
}
&--active{
// border-bottom: 1px solid $gray9;
}
}
} }
} }
&__active{ &__active{
border-bottom-left-radius: 10px; // border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px; // border-bottom-right-radius: 10px;
} }
header { header {
background-color: #414141;
// border: 1px solid $gray9 !important; // border: 1px solid $gray9 !important;
border-top-right-radius: 5px !important;
border-top-left-radius: 5px;
padding: 5px 15px !important; padding: 5px 15px !important;
cursor: pointer; cursor: pointer;
h4 { h4 {
color: $green;
margin: 0px; margin: 0px;
}
div {
color: $gray10;
} }
img{ img{
width: 40px; width: 40px;
@ -35,14 +90,10 @@
} }
&__files{ &__files{
padding : 0px !important; padding : 0px !important;
border-left: 1px solid $gray9; transition: all 0.15s ease-in;
border-right: 1px solid $gray9;
transition: all 0.4s ease-in;
overflow: hidden; overflow: hidden;
p{ p{
color: white;
padding: 10px 20px; padding: 10px 20px;
background-color: $gray1;
margin: 0px !important; margin: 0px !important;
} }
& img{ & img{
@ -53,17 +104,10 @@
transition: all 0.5s; transition: all 0.5s;
cursor: pointer; cursor: pointer;
padding: 5px 0px; padding: 5px 0px;
&:hover{
background-color: rgb(58, 58, 58);
}
&___active{ &___active{
transition: all 0.5s; transition: all 0.5s;
transform: scale(1.3); transform: scale(1.3);
} }
color: white;
a{
color: white;
}
li{ li{
text-align: center; text-align: center;
} }
@ -72,9 +116,6 @@
margin-bottom: 0px; margin-bottom: 0px;
} }
} }
&--active{
border-bottom: 1px solid $gray9;
}
} }
} }
@ -196,7 +237,7 @@
@media screen and (max-width: 640px) { @media screen and (max-width: 640px) {
.lesson { .lesson {
border-radius: 10px; // border-radius: 10px;
margin-bottom: 15px; margin-bottom: 15px;
header { header {
border-top-right-radius: 10px; border-top-right-radius: 10px;
@ -216,8 +257,8 @@
text-align: center; text-align: center;
} }
&__files{ &__files{
border-bottom-left-radius: 10px; // border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px; // border-bottom-right-radius: 10px;
padding: 0px !important; padding: 0px !important;
&--sample{ &--sample{
img{ img{

@ -1,6 +1,8 @@
import React, { useState } from "react"; import React, { useState } from "react";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import whiteDropdown from "../../../assets/icons/white-dropdown.png"; import whiteDropdown from "../../../assets/icons/white-dropdown.png";
import greenPlay from "../../../assets/icons/play-green.png";
import greenDocument from "../../../assets/icons/document-green.png";
import whitePlay from "../../../assets/icons/white-play.png"; import whitePlay from "../../../assets/icons/white-play.png";
import document from "../../../assets/icons/document.png"; import document from "../../../assets/icons/document.png";
import { connect } from "react-redux"; import { connect } from "react-redux";
@ -33,10 +35,10 @@ function Lesson({
const light = theme === "light"; const light = theme === "light";
return ( return (
<div <div
className={_.join([ className={_.join(
"lesson d-flex flex-column", ["lesson d-flex flex-column", light ? "lesson-light" : "lesson-dark"],
light ? "lesson__light" : "lesson__dark", " "
], " ")} )}
> >
<header <header
className="desktop justify-content-between align-items-center" className="desktop justify-content-between align-items-center"
@ -107,8 +109,18 @@ function Lesson({
} }
> >
<div className="d-flex align-items-center"> <div className="d-flex align-items-center">
{data.type === "video" && <img src={whitePlay} alt="" />} {data.type === "video" &&
{data.type === "pdf" && <img src={document} alt="" />} (light ? (
<img src={greenPlay} alt="" />
) : (
<img src={whitePlay} alt="" />
))}
{data.type === "pdf" &&
(light ? (
<img src={greenDocument} alt="" />
) : (
<img src={document} alt="" />
))}
<img <img
className={ className={
selectedLesson === data.id selectedLesson === data.id

@ -1,18 +1,119 @@
@import "./Lesson/index.scss"; @import "./Lesson/index.scss";
.course { .course {
&__light { &-light{
.course__options--rate { .course{
color: black; &__header {
border-bottom: 2px solid $gray12;
}
&__info {
&--description {
a {
color: $gray5;
}
li {
color: $gray5;
}
h1 {
color: $gray5;
}
p {
color: $gray6;
}
.course-info-items {
background-color: #9cdf5222;
i {
color: $green;
}
}
}
}
&__options {
&--rate {
border: none;
background-color: $gray12;
box-shadow: none;
color: $gray5;
}
&--button {
background-color: $gray12;
border: none;
color: $gray5;
transition: all 0.3s;
&:hover {
color: $gray5;
background-color: $gray;
}
}
}
&__list {
&--header {
h2 {
color: $green;
}
p {
color: $gray7;
}
}
}
} }
.course__options--button { }
background-color: white !important; &-dark{
color: black; .course{
&__header {
border-bottom: 2px solid $gray5;
}
&__info {
&--description {
a {
color: $gray5;
}
h1{
color: white;
}
li {
color: $gray5;
}
p {
color: $gray6;
}
.course-info-items {
background-color: #08793d23;
i {
color: $green;
}
}
}
}
&__options {
&--rate {
border: 2px solid $gray7;
box-shadow: 0px 0px 20px #f7ff0179;
color: white;
}
&--button {
background-color: #313131;
border: 1px solid $gray7;
color: white;
&:hover {
color: white;
}
}
}
&__list {
&--header {
h2 {
color: $green;
}
p {
color: $gray7;
}
}
}
} }
} }
&__header { &__header {
padding: 30px 0px 45px; padding: 30px 0px 45px;
border-bottom: 2px solid $gray5;
} }
&__info { &__info {
&--image { &--image {
@ -26,63 +127,35 @@
} }
&--description { &--description {
padding-top: 5px; padding-top: 5px;
a {
color: $gray5;
}
li {
color: $gray5;
}
h1 { h1 {
color: white;
margin-top: 12px; margin-top: 12px;
} }
p { p {
color: $gray6;
margin-top: 25px; margin-top: 25px;
} }
.course-info-items { .course-info-items {
padding: 10px; padding: 10px;
background-color: #08793d23;
border-radius: 10px; border-radius: 10px;
i {
color: $green;
}
} }
} }
} }
&__options { &__options {
&--rate { &--rate {
border: 2px solid $gray7;
box-shadow: 0px 0px 20px #f7ff0179;
border-radius: 15px; border-radius: 15px;
padding-top: 20px; padding-top: 20px;
color: white;
} }
&--button { &--button {
background-color: #313131;
border: 1px solid $gray7;
color: white;
padding: 8px; padding: 8px;
text-align: center; text-align: center;
margin-top: 15px; margin-top: 15px;
&:hover {
color: white;
}
} }
} }
&__list { &__list {
margin-bottom: 30px; margin-bottom: 30px;
border-radius: 10px; border-radius: 10px;
&--header { &--header {
padding: 20px 0px 20px !important; padding: 20px 0px 20px !important;
border: 0px !important; border: 0px !important;
h2 {
color: $green;
}
p {
color: $gray7;
}
} }
} }
} }
@ -266,7 +339,6 @@
@media screen and (min-width: 641px) and (max-width: 1007px) { @media screen and (min-width: 641px) and (max-width: 1007px) {
.course { .course {
background: black;
main { main {
max-width: 900px; max-width: 900px;
padding: 0px 20px; padding: 0px 20px;
@ -364,7 +436,6 @@
@media screen and (max-width: 640px) { @media screen and (max-width: 640px) {
.course { .course {
background: black;
margin-top: 20px; margin-top: 20px;
&__header { &__header {
padding: 0px; padding: 0px;

@ -43,7 +43,7 @@ function Course({ getInfo, info, categories, loading, theme }: any) {
className={_.join( className={_.join(
[ [
"course main d-flex flex-column", "course main d-flex flex-column",
light ? "course__light" : "course__dark", light ? "course-light bg-white" : "course-dark bg-black",
], ],
" " " "
)} )}
@ -96,7 +96,7 @@ function Course({ getInfo, info, categories, loading, theme }: any) {
</div> </div>
<span>از 288 رای</span> <span>از 288 رای</span>
</div> </div>
<StyledRating rate={info?.rate} /> <StyledRating rate={info?.rate} theme={theme} />
<h2>میانگین رای کاربران</h2> <h2>میانگین رای کاربران</h2>
</div> </div>
<button className="course__options--button d-flex align-items-center justify-content-between"> <button className="course__options--button d-flex align-items-center justify-content-between">

@ -1,41 +1,84 @@
.faq { .faq {
&__light{ &-light{
header{
h1{
color: $gray5;
}
input{
background-color: $gray12;
}
button{
background-color: $gray1;
border-radius: 5px;
}
}
.faq{ .faq{
&__list{ &__list{
li{ li{
background-color: white !important; background-color: $gray13 !important;
border: 1px solid black !important;
p{ p{
color: black !important; color: $gray5 !important;
}
strong{
color: $green6;
} }
} }
} }
} }
} }
&-dark{
header {
h1 {
color: white;
}
p {
color: $gray11;
}
input {
background-color: $gray5;
color: white;
&::placeholder {
color: $gray11;
}
}
button {
background-color: $gray1;
}
}
&__list {
li{
background-color: $gray5;
}
&--itemHeader {
strong {
color: $green;
}
}
&--itemBody {
p {
color: white;
}
}
}
}
header { header {
width: 100%; width: 100%;
margin: 0px auto; margin: 0px auto;
padding-top: 40px; padding-top: 40px;
h1 { h1 {
color: white;
margin-bottom: 15px; margin-bottom: 15px;
} }
p { p {
color: $gray11;
} }
input { input {
background-color: $gray5;
border-top-right-radius: 10px; border-top-right-radius: 10px;
border-bottom-right-radius: 10px; border-bottom-right-radius: 10px;
border: none; border: none;
color: white;
flex: 1; flex: 1;
&::placeholder { &::placeholder {
color: $gray11;
} }
} }
button { button {
background-color: $gray1;
border: none; border: none;
margin-right: 2px; margin-right: 2px;
width: 70px; width: 70px;
@ -49,7 +92,6 @@
margin: 0px auto !important; margin: 0px auto !important;
padding-top: 30px !important; padding-top: 30px !important;
li{ li{
background-color: $gray5;
margin-bottom: 15px; margin-bottom: 15px;
cursor: pointer; cursor: pointer;
border-radius: 5px; border-radius: 5px;
@ -58,9 +100,6 @@
border-top-right-radius: 5px; border-top-right-radius: 5px;
border-top-left-radius: 5px; border-top-left-radius: 5px;
padding: 10px; padding: 10px;
strong {
color: $green;
}
img{ img{
width: 30px; width: 30px;
} }
@ -69,9 +108,6 @@
border-bottom-right-radius: 5px; border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px; border-bottom-left-radius: 5px;
padding:0px 10px 30px; padding:0px 10px 30px;
p {
color: white;
}
} }
} }
} }

@ -28,7 +28,7 @@ function Faq({
<div <div
className={_.join([ className={_.join([
"faq main d-flex flex-column", "faq main d-flex flex-column",
light ? "faq__light" : "faq__dark", light ? "faq-light bg-white" : "faq-dark bg-black",
], " ")} ], " ")}
> >
<Navbar /> <Navbar />

@ -5,9 +5,6 @@
@import './Footer/index.scss'; @import './Footer/index.scss';
@import './Header/index.scss'; @import './Header/index.scss';
.home {
}
@media screen and (min-width: 641px) and (max-width: 1007px){ @media screen and (min-width: 641px) and (max-width: 1007px){
.home{ .home{

@ -13,7 +13,7 @@ import scroll from "../../util/scroll";
import Loader from "../../components/Loader"; import Loader from "../../components/Loader";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { book, publicApi } from "../../redux/actions"; import { book, publicApi } from "../../redux/actions";
import _ from 'lodash'; import _ from "lodash";
function Home({ function Home({
courseList, courseList,
@ -28,7 +28,7 @@ function Home({
getHeader, getHeader,
bookLoading, bookLoading,
publicLoading, publicLoading,
theme theme,
}: any) { }: any) {
const [grade, setGrade] = useState(null); const [grade, setGrade] = useState(null);
const [vocal, setVocal] = useState(false); const [vocal, setVocal] = useState(false);
@ -49,7 +49,13 @@ function Home({
return ( return (
<> <>
<div <div
className={_.join(["home main d-flex flex-column", theme === 'dark' ? 'main__dark' : 'main__light'], " ")} className={_.join(
[
"home main d-flex flex-column",
theme === "dark" ? "home-dark bg-black" : "home-light bg-white",
],
" "
)}
style={{ style={{
filter: vocal || bookLoading || publicLoading ? "blur(8px)" : "", filter: vocal || bookLoading || publicLoading ? "blur(8px)" : "",
}} }}
@ -65,7 +71,10 @@ function Home({
setInputValue={setInputValue} setInputValue={setInputValue}
theme={theme} theme={theme}
/> />
<Courses courses={sortFilterCourse ? sortFilterCourse : courseList} theme={theme} /> <Courses
courses={sortFilterCourse ? sortFilterCourse : courseList}
theme={theme}
/>
<GradeFilter <GradeFilter
grades={grades} grades={grades}
grade={grade} grade={grade}
@ -74,7 +83,10 @@ function Home({
setGradeDropdown={setGradeDropdown} setGradeDropdown={setGradeDropdown}
theme={theme} theme={theme}
/> />
<Books list={gradeFilterBooks ? gradeFilterBooks : courseList} theme={theme} /> <Books
list={gradeFilterBooks ? gradeFilterBooks : courseList}
theme={theme}
/>
<Blogs theme={theme} /> <Blogs theme={theme} />
<AppDownload theme={theme} /> <AppDownload theme={theme} />
<Footer /> <Footer />
@ -100,7 +112,7 @@ export default connect(
headerData: state.publicApi.header, headerData: state.publicApi.header,
bookLoading: state.book.loading, bookLoading: state.book.loading,
publicLoading: state.publicApi.loading, publicLoading: state.publicApi.loading,
theme : state.publicApi.theme, theme: state.publicApi.theme,
}), }),
{ {
getCourseList: book.list, getCourseList: book.list,

@ -1,111 +1,165 @@
.subscribe-radio{ .subscribe-radio {
width: 100%; width: 100%;
border : 1px solid $gray7; border: 1px solid $gray7;
margin-bottom: 15px; margin-bottom: 15px;
border-radius: 10px; border-radius: 10px;
cursor: pointer; cursor: pointer;
transition: all 0.5s; transition: all 0.5s;
&-active {
&__name{ 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-top-right-radius: 10px;
border-bottom-right-radius: 10px; border-bottom-right-radius: 10px;
h2{ h2 {
color: white;
margin-bottom: 0px; margin-bottom: 0px;
} }
} }
&__factor{ &__factor {
border-top-left-radius: 10px; border-top-left-radius: 10px;
border-bottom-left-radius: 10px; border-bottom-left-radius: 10px;
background-color: rgba(255, 255, 255, 0.18); &--tag {
strong, b{
color: white;
}
&--tag{
background-color: $yellow;
padding: 4px 20px; padding: 4px 20px;
border-radius: 30px; border-radius: 30px;
width: fit-content; width: fit-content;
letter-spacing: -1px; letter-spacing: -1px;
} }
&--finalPrice{ &--finalPrice {
i{ i {
color: white;
margin-right: 10px; margin-right: 10px;
} }
} }
&--off{ &--off {
color: #707070; b {
b{
color: #707070;
position: relative; position: relative;
span{ span {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 2px; height: 2px;
top: 50%; top: 50%;
left: 0px; left: 0px;
transform: translateY(-50%) rotate(-15deg); transform: translateY(-50%) rotate(-15deg);
background-color: rgb(211, 211, 211);
opacity: 0.5; opacity: 0.5;
} }
} }
i{ i {
margin-right: 10px; 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) { @media screen and (min-width: 1441px) {
.subscribe-radio{ .subscribe-radio {
min-height: 60px; min-height: 60px;
&__name{ &__name {
flex: 7; flex: 7;
h2{ h2 {
font-size: 20px; font-size: 20px;
margin-right: 40px; margin-right: 40px;
} }
} }
&__factor{ &__factor {
flex: 3; flex: 3;
&--tag{ &--tag {
font-size: 11px; font-size: 11px;
} }
&--off{ &--off {
b{ b {
font-size: 16px; font-size: 16px;
} }
i{ i {
font-size: 10px; font-size: 10px;
} }
} }
&--finalPrice{ &--finalPrice {
i{ i {
font-size: 12px; font-size: 12px;
} }
strong{ strong {
font-size: 26px; font-size: 26px;
} }
} }
@ -114,33 +168,33 @@
} }
@media screen and (min-width: 1008px) and (max-width: 1440px) { @media screen and (min-width: 1008px) and (max-width: 1440px) {
.subscribe-radio{ .subscribe-radio {
min-height: 60px; min-height: 60px;
&__name{ &__name {
flex: 7; flex: 7;
h2{ h2 {
font-size: calc(100vw / 70); font-size: calc(100vw / 70);
margin-right: 40px; margin-right: 40px;
} }
} }
&__factor{ &__factor {
flex: 3; flex: 3;
&--tag{ &--tag {
font-size: calc(100vw / 130); font-size: calc(100vw / 130);
} }
&--off{ &--off {
b{ b {
font-size: calc(100vw / 80); font-size: calc(100vw / 80);
} }
i{ i {
font-size: calc(100vw / 115); font-size: calc(100vw / 115);
} }
} }
&--finalPrice{ &--finalPrice {
i{ i {
font-size: calc(100vw / 125); font-size: calc(100vw / 125);
} }
strong{ strong {
font-size: calc(100vw / 74); font-size: calc(100vw / 74);
} }
} }
@ -149,33 +203,33 @@
} }
@media screen and (min-width: 641px) and (max-width: 1007px) { @media screen and (min-width: 641px) and (max-width: 1007px) {
.subscribe-radio{ .subscribe-radio {
min-height: 70px; min-height: 70px;
&__name{ &__name {
flex: 7; flex: 7;
h2{ h2 {
font-size: calc(100vw / 40); font-size: calc(100vw / 40);
margin-right: 10px; margin-right: 10px;
} }
} }
&__factor{ &__factor {
flex: 3; flex: 3;
&--tag{ &--tag {
font-size: calc(100vw / 55); font-size: calc(100vw / 55);
} }
&--off{ &--off {
b{ b {
font-size: calc(100vw / 50); font-size: calc(100vw / 50);
} }
i{ i {
font-size: calc(100vw / 60); font-size: calc(100vw / 60);
} }
} }
&--finalPrice{ &--finalPrice {
i{ i {
font-size: calc(100vw / 45); font-size: calc(100vw / 45);
} }
strong{ strong {
font-size: calc(100vw / 38); font-size: calc(100vw / 38);
} }
} }
@ -184,36 +238,36 @@
} }
@media screen and (max-width: 640px) { @media screen and (max-width: 640px) {
.subscribe-radio{ .subscribe-radio {
min-height: 70px; min-height: 70px;
&__name{ &__name {
flex: 7; flex: 7;
h2{ h2 {
font-size: calc(100vw / 25); font-size: calc(100vw / 25);
margin-right: 10px; margin-right: 10px;
} }
} }
&__factor{ &__factor {
flex: 3; flex: 3;
&--tag{ &--tag {
font-size: calc(100vw / 45); font-size: calc(100vw / 45);
} }
&--off{ &--off {
b{ b {
font-size: calc(100vw / 30); font-size: calc(100vw / 30);
} }
i{ i {
font-size: calc(100vw / 45); font-size: calc(100vw / 45);
} }
} }
&--finalPrice{ &--finalPrice {
i{ i {
font-size: calc(100vw / 45); font-size: calc(100vw / 45);
} }
strong{ strong {
font-size: calc(100vw / 20); font-size: calc(100vw / 20);
} }
} }
} }
} }
} }

@ -21,7 +21,7 @@ function SubscribeRadio({ data, selectedVOD, selectVOD, theme }: any) {
[ [
"subscribe-radio d-flex", "subscribe-radio d-flex",
selectedVOD?.id === data.id ? "subscribe-radio-active" : "", selectedVOD?.id === data.id ? "subscribe-radio-active" : "",
light ? "subscribe-radio__light" : "subscribe-radio__dark", light ? "subscribe-radio-light" : "subscribe-radio-dark",
], ],
" " " "
)} )}

@ -2,15 +2,29 @@
@import './SubscribeRadio/index.scss'; @import './SubscribeRadio/index.scss';
.subscription { .subscription {
main { &-dark{
h1,h2{ main {
color: $gray; h1,h2{
color: $gray;
}
p{
color : $gray;
margin : 10px 0px 35px;
}
} }
p{ }
color : $gray; &-light{
margin : 10px 0px 35px; main {
h1,h2{
color: $gray5;
}
p{
color : $gray5;
margin : 10px 0px 35px;
}
} }
} }
} }
@media screen and (min-width : 1441px) { @media screen and (min-width : 1441px) {
@ -33,7 +47,7 @@
main{ main{
margin-top: 20px; margin-top: 20px;
max-width: 700px; max-width: 700px;
transform: scale(0.8) translateY(-80px); transform: scale(0.9) translateY(-30px);
h1{ h1{
font-size: calc(100vw / 50); font-size: calc(100vw / 50);
} }

@ -28,6 +28,7 @@ function Subscription({
className={_.join( className={_.join(
[ [
"subscription main d-flex flex-column", "subscription main d-flex flex-column",
light ? 'subscription-light bg-white' : 'subscription-dark bg-black'
], ],
" " " "
)} )}

@ -1,105 +1,130 @@
.lesson-playlist{ .lesson-playlist {
width: 100%; width: 100%;
padding-bottom : 10px; padding-bottom: 10px;
&__light{ &-light {
.lesson-playlist{ header {
h3{ background-color: inherit !important;
background-color : inherit !important; h3 {
border: 1px solid $gray9 !important; background-color: $gray12;
} }
&__item{ }
*{ .lesson-playlist {
&__item {
* {
color: black !important; 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{ header {
background-color: inherit !important;
margin-bottom: 5px; margin-bottom: 5px;
h3{ h3 {
background-color : $gray7;
padding: 5px 10px; padding: 5px 10px;
margin: 0px; margin: 0px;
} }
span{ span {
background-color : $gray7;
display: flex; display: flex;
flex: 1; flex: 1;
height : 1px; height: 1px;
} }
} }
&__item{ &__item {
&--count{ &--text {
color: white;
}
&--active{
background: rgba($gray12, 0.21);
}
&--text{
padding: 15px 10px; padding: 15px 10px;
h4{ h4 {
color: white;
margin: 0px; margin: 0px;
} }
p{ p {
color: $gray7;
margin: 0px; margin: 0px;
} }
} }
&--video{ &--video {
span{ span {
background-color : #0000006d;
padding: 0px 5px; padding: 0px 5px;
position: absolute; position: absolute;
left: 5px; left: 5px;
bottom: 10px; bottom: 10px;
color: white;
} }
} }
} }
} }
@media screen and (min-width: 1441px) { @media screen and (min-width: 1441px) {
.lesson-playlist{ .lesson-playlist {
width: 100%; width: 100%;
header{ header {
padding: 10px 40px 0px 0px !important; padding: 10px 40px 0px 0px !important;
h3{ h3 {
font-size: 16px; font-size: 16px;
} }
span{ span {
} }
} }
&__item{ &__item {
padding: 10px 0px 5px 0px; padding: 10px 0px 5px 0px;
cursor: pointer; cursor: pointer;
&--count{ &--count {
font-size: 18px; font-size: 18px;
width : 40px; width: 40px;
text-align: center; text-align: center;
} }
&--text{ &--text {
max-width: 55%; max-width: 55%;
h4{ h4 {
font-size: 17px; font-size: 17px;
} }
p{ p {
font-size: 14px; font-size: 14px;
} }
} }
&--video{ &--video {
width: 142px; width: 142px;
height: 90px; height: 90px;
position: relative; position: relative;
img{ img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
span{ span {
font-size: 18px; font-size: 18px;
} }
} }
@ -108,44 +133,43 @@
} }
@media screen and (min-width: 1008px) and (max-width: 1440px) { @media screen and (min-width: 1008px) and (max-width: 1440px) {
.lesson-playlist{ .lesson-playlist {
width: 100%; width: 100%;
header{ header {
padding: 10px 40px 0px 0px !important; padding: 10px 40px 0px 0px !important;
h3{ h3 {
font-size: calc(100vw / 95); font-size: calc(100vw / 95);
} }
span{ span {
} }
} }
&__item{ &__item {
padding: 10px 0px 5px 0px; padding: 10px 0px 5px 0px;
cursor: pointer; cursor: pointer;
&--count{ &--count {
font-size: calc(100vw / 72); font-size: calc(100vw / 72);
width : 40px; width: 40px;
text-align: center; text-align: center;
} }
&--text{ &--text {
max-width: 55%; max-width: 55%;
h4{ h4 {
font-size: calc(100vw / 90); font-size: calc(100vw / 90);
} }
p{ p {
font-size: calc(100vw / 100); font-size: calc(100vw / 100);
} }
} }
&--video{ &--video {
width: 132px; width: 132px;
height: 90px; height: 90px;
position: relative; position: relative;
img{ img {
width : 100%; width: 100%;
height : 100%; height: 100%;
} }
span{ span {
font-size: calc(100vw / 100); font-size: calc(100vw / 100);
} }
} }
} }
@ -153,44 +177,43 @@
} }
@media screen and (min-width: 641px) and (max-width: 1007px) { @media screen and (min-width: 641px) and (max-width: 1007px) {
.lesson-playlist{ .lesson-playlist {
width: 100%; width: 100%;
header{ header {
padding: 10px 50px 0px 0px !important; padding: 10px 50px 0px 0px !important;
h3{ h3 {
font-size: calc(100vw / 45); font-size: calc(100vw / 45);
} }
span{ span {
} }
} }
&__item{ &__item {
padding: 10px 0px 5px 0px; padding: 10px 0px 5px 0px;
cursor: pointer; cursor: pointer;
&--count{ &--count {
font-size: calc(100vw / 35); font-size: calc(100vw / 35);
width : 50px; width: 50px;
text-align: center; text-align: center;
} }
&--text{ &--text {
max-width: 55%; max-width: 55%;
h4{ h4 {
font-size: calc(100vw / 45); font-size: calc(100vw / 45);
} }
p{ p {
font-size: calc(100vw / 50); font-size: calc(100vw / 50);
} }
} }
&--video{ &--video {
width: 182px; width: 182px;
// height: 90px; // height: 90px;
position: relative; position: relative;
img{ img {
width : 100%; width: 100%;
height : 100%; height: 100%;
} }
span{ span {
font-size: calc(100vw / 45); font-size: calc(100vw / 45);
} }
} }
} }
@ -198,46 +221,45 @@
} }
@media screen and (max-width: 640px) { @media screen and (max-width: 640px) {
.lesson-playlist{ .lesson-playlist {
width: 100%; width: 100%;
header{ header {
padding: 10px 40px 0px 0px !important; padding: 10px 40px 0px 0px !important;
h3{ h3 {
font-size: calc(100vw / 38); font-size: calc(100vw / 38);
} }
span{ span {
} }
} }
&__item{ &__item {
padding: 10px 0px 5px 0px; padding: 10px 0px 5px 0px;
cursor: pointer; cursor: pointer;
&--count{ &--count {
font-size: calc(100vw / 25); font-size: calc(100vw / 25);
width : 40px; width: 40px;
text-align: center; text-align: center;
} }
&--text{ &--text {
max-width: 55%; max-width: 55%;
h4{ h4 {
font-size: calc(100vw / 35); font-size: calc(100vw / 35);
} }
p{ p {
font-size: calc(100vw / 40); font-size: calc(100vw / 40);
} }
} }
&--video{ &--video {
width: 132px; width: 132px;
height: 90px; height: 90px;
position: relative; position: relative;
img{ img {
width : 100%; width: 100%;
height : 100%; height: 100%;
} }
span{ span {
font-size: calc(100vw / 40); font-size: calc(100vw / 40);
} }
} }
} }
} }
} }

@ -43,7 +43,7 @@ function LessonPlayList({
className={_.join( className={_.join(
[ [
"lesson-playlist d-flex flex-column", "lesson-playlist d-flex flex-column",
light ? "lesson-playlist__light" : "lesson-playlist__dark", light ? "lesson-playlist-light" : "lesson-playlist-dark",
], ],
" " " "
)} )}

@ -4,7 +4,8 @@
@import "./LessonPlayList/index.scss"; @import "./LessonPlayList/index.scss";
.video-tube { .video-tube {
&__light { &-light {
background-color: white;
h1, h1,
p { p {
color: black !important; color: black !important;
@ -13,21 +14,142 @@
&__content { &__content {
&--comments { &--comments {
color: black !important; color: black !important;
header{
background-color: inherit !important;
h2{
color: $green !important;
}
}
button{
color: $green !important;
background-color: inherit;
}
} }
&--addComment { &--addComment {
textarea { textarea {
background-color: white !important; background-color: $gray13;
color: black !important; color: black !important;
border: none;
} }
} }
} }
&__sidebar{ &__sidebar {
header{ header {
background-color: white !important; background-color: $gray12;
*{ * {
color: black !important; 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; margin-left: 15px;
&--display { &--display {
border-bottom: 1px solid $gray8;
padding-bottom: 30px; padding-bottom: 30px;
video { video {
border: 1px solid $gray8;
} }
span { span {
color: $green4;
padding: 15px 0px; padding: 15px 0px;
} }
h1 { h1 {
color: white;
margin-bottom: 20px; margin-bottom: 20px;
} }
p { p {
color: white;
} }
} }
&--comments { &--comments {
color: white;
border-bottom: 1px solid $gray8;
padding-bottom: 30px; padding-bottom: 30px;
header { header {
padding: 20px 0px; padding: 20px 0px;
@ -63,9 +178,7 @@
} }
} }
button { button {
background-color: inherit;
border: none; border: none;
color: $green;
} }
} }
&--addComment { &--addComment {
@ -74,25 +187,18 @@
textarea { textarea {
width: 100%; width: 100%;
border-radius: 12px; border-radius: 12px;
background-color: $gray8;
padding: 10px; padding: 10px;
color: white;
&:focus { &:focus {
outline: none; outline: none;
} }
&::placeholder {
color: $gray4;
}
} }
} }
} }
&__sidebar { &__sidebar {
&--playlist { &--playlist {
border: 1px solid $gray8;
margin-bottom: 30px; margin-bottom: 30px;
header { header {
width: 100%; width: 100%;
color: white;
h2, h2,
p { p {
margin: 0px; margin: 0px;
@ -110,28 +216,23 @@
/* Track */ /* Track */
&::-webkit-scrollbar-track { &::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px inherit;
border-radius: 10px; border-radius: 10px;
} }
/* Handle */ /* Handle */
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
background: $gray;
border-radius: 10px; border-radius: 10px;
} }
/* Handle on hover */ /* Handle on hover */
&::-webkit-scrollbar-thumb:hover { &::-webkit-scrollbar-thumb:hover {
background: white;
} }
} }
} }
&--attachments { &--attachments {
border: 1px solid $gray8;
margin-bottom: 30px; margin-bottom: 30px;
header { header {
width: 100%; width: 100%;
color: white;
h2, h2,
p { p {
margin: 0px; margin: 0px;
@ -148,33 +249,26 @@
/* Track */ /* Track */
&::-webkit-scrollbar-track { &::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px inherit;
border-radius: 10px; border-radius: 10px;
} }
/* Handle */ /* Handle */
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
background: $gray10;
border-radius: 10px; border-radius: 10px;
} }
/* Handle on hover */ /* Handle on hover */
&::-webkit-scrollbar-thumb:hover { &::-webkit-scrollbar-thumb:hover {
background: white;
} }
} }
} }
&--suggests { &--suggests {
border: 1px solid $gray8;
header { header {
width: 100%; width: 100%;
color: white;
h2 { h2 {
margin: 0px; margin: 0px;
} }
span { span {
background-color: #00fff74f;
color: $blue2;
padding: 5px 8px; padding: 5px 8px;
} }
} }
@ -571,7 +665,6 @@
} }
&___list { &___list {
padding: 15px 12px; padding: 15px 12px;
background-color: #08793d58;
} }
} }
} }

@ -52,7 +52,7 @@ function VodTube({
className={_.join( className={_.join(
[ [
"video-tube main d-flex flex-column", "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",
], ],
" " " "
)} )}

Loading…
Cancel
Save