diff --git a/src/components/SUGGESTION_BOX.tsx b/src/components/SUGGESTION_BOX.tsx index a28b963..51b6358 100644 --- a/src/components/SUGGESTION_BOX.tsx +++ b/src/components/SUGGESTION_BOX.tsx @@ -18,6 +18,7 @@ const StyledSuggestion = styled.div` const StyledTitle = styled(Title)` text-align: center; + background: red; font: normal normal normal 50px/50px Abolition; letter-spacing: 0.5px; color: #fff; diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 4047248..42cfe7e 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -41,7 +41,7 @@ export default function App({ Component, pageProps }: AppProps) { - + {/* */} diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 1ffd9c5..5177726 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -51,27 +51,10 @@ const Home: NextPage = ({ lectures }) => { margin-top: 0; object-fit: cover; object-position: 50% 50%; + background-repeat: no-repeat; opacity: 0.9; - -webkit-transition: all 1s ease-out; - -moz-transition: all 1s ease-out; - -o-transition: all 1s ease-out; - -ms-transition: all 1s ease-out; - transition: all 0.5s ease-out; - width: 100%; - display: flex; - margin-left: auto; - margin-right: auto; - &:hover { - object-position: 50% 50%; - -webkit-transition: all 1s ease; - -moz-transition: all 1s ease; - -o-transition: all 1s ease; - -ms-transition: all 1s ease; - transition: all 0.5s ease-in; - opacity: 1; - }; -} - `; + } + `; const CaptionFrame = styled.div` margin: 0% 15% 0% 15%; @@ -96,7 +79,6 @@ const Home: NextPage = ({ lectures }) => { align-items: bottom; justify-content: end; padding-bottom: 5%; - `; const MostRecentCaption = styled(Title)` @@ -110,7 +92,7 @@ const Home: NextPage = ({ lectures }) => { const Wrapper = styled.div` position: relative; height: 100%; - ` + `; const SlideWrapper = styled.div` position: absolute; z-index: 4; @@ -118,19 +100,22 @@ const Home: NextPage = ({ lectures }) => { display: flex; background: transparent; height: 100%; - zIndex: 1; - ` + zindex: 1; + `; const AcademicTrainingDecoration = styled.div` // margin-top: 25%; - margin-left: -3%` // because of too big academic training logo (too wide); big screen 35 nit 25 + margin-left: -3%; + `; // because of too big academic training logo (too wide); big screen 35 nit 25 const StyledDivider = styled(Divider)` - background: linear-gradient(-90deg, #ffffffd0 0%, transparent 100%) no-repeat - padding-box; + background: linear-gradient(-90deg, #ffffffd0 0%, transparent 100%) + no-repeat padding-box; height: 3px; + width: auto; border-radius: 50px; margin-bottom: 20px; - float: right;` + float: right; + `; return ( @@ -150,24 +135,59 @@ const Home: NextPage = ({ lectures }) => { - + {photos.map((photo) => { return (
-
+
); })} - {/*
- MOST RECENT +
+
+ MOST RECENT +
+ -
*/} - - - + {lectures.map((lecture) => { + return ( + + + + } + > + + + ); + })} + +
+ +
+
); }; @@ -188,29 +208,27 @@ export const getServerSideProps: GetServerSideProps< export default Home; const VideoCard = styled(Card)` - &&& { - border-radius: 5px; - height: 200px; - object-fit: cover; - object-position: 50% 10%; - -o-filter: blur(1px); - -moz-filter: blur(1px); - -ms-filter: blur(1px); - filter: brightness(70%); - z-index: 2; + border-radius: 5px; + height: 200px; + object-fit: cover; + object-position: 50% 10%; + -o-filter: blur(1px); + -moz-filter: blur(1px); + -ms-filter: blur(1px); + filter: brightness(70%); + z-index: 2; + transition: 0.5s; + filter: brightness(100%); + transition: all 0.5s; + background-color: transparent; + border-radius: 5px; + min-height: 150px; + &:hover { + filter: drop-shadow(1px 1px 10px #00194e); + font-size: 3.8em; + transition: 0.3s; + max-height: 10px; transition: 0.5s; - filter: brightness(100%); - transition: all 0.5s; - background-color: transparent; - border-radius: 5px; - min-height: 150px; - &:hover { - filter: drop-shadow(1px 1px 10px #00194e); - font-size: 3.8em; - transition: 0.3s; - max-height: 10px; - transition: 0.5s; - } } `; const VideoCardContent = styled(Card.Grid)` @@ -250,7 +268,7 @@ const AntCardCover = styled.img` border-radius: 5px; height: 200px; object-fit: cover; - object-position: 50% 10%; + object-position: 50% 50%; -o-filter: blur(1px); -moz-filter: blur(1px); -ms-filter: blur(1px);