Skip to content

Commit

Permalink
home page
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemek committed Feb 19, 2024
1 parent 77c503a commit 015e9d7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/components/molecules/Navigation/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ export interface NavigationProps extends ExtendableStyledComponent {
}

const GlobalStyle = createGlobalStyle`
.rc-drawer-content-wrapper {
@media (max-width: 530px) {
width: 90% !important;
}
}
svg {
transition: opacity 0.2s ease-in-out;
Expand Down
21 changes: 16 additions & 5 deletions src/components/molecules/NewCourseCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,25 @@ const StyledCourseCard = styled("div")<StyledCourseCardProps>`
}
.course-card__content {
padding: 0px 15px;
@media (max-width: 768px) {
min-height: 100px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
}
.course-title {
margin-bottom: 46px;
margin-bottom: ${(props) => (props.mobile ? "0px" : `45px`)};
}
.title {
margin-top: 12px;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
margin-bottom: 45px;
margin-bottom: ${(props) => (props.mobile ? "10px" : `45px`)};
}
.categories {
Expand Down Expand Up @@ -133,15 +141,18 @@ const StyledCourseCard = styled("div")<StyledCourseCardProps>`
}
.course-price {
transition: transform 0.3s ease-in-out;
transform: translateY(+120px);
transform: ${(props) =>
props.mobile ? "translateY(0px)" : "translateY(+120px)"};
p {
color: ${({ theme }) => theme.primaryColor};
}
}
&:hover {
border: 1px solid ${({ theme }) => theme.gray3};
box-shadow: 0px 5px 15px #00000012;
transform: translateY(-7px);
border: ${(props) =>
props.mobile ? "none" : `1px solid ${props.theme.gray3}`};
box-shadow: ${(props) =>
props.mobile ? "none" : `0px 5px 15px #00000012`};
transform: ${(props) => (props.mobile ? "none" : "translateY(-7px)")};
.image-section {
img {
Expand Down
2 changes: 2 additions & 0 deletions src/components/organisms/SearchCourses/SearchCourses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import styled from "styled-components";

const SearchWrapper = styled.div`
min-width: 300px;
input {
border-radius: 21px !important;
background-color: ${({ theme }) => theme.gray4} !important;
Expand All @@ -29,6 +30,7 @@ const ItemButton = styled(Button)`
export const SearchCourses: React.FC<{
onItemSelected: (item: API.Course) => void;
onInputSubmitted: (phrase: string) => void;
mobile?: boolean;
}> = ({ onItemSelected, onInputSubmitted }) => {
const abortController = useRef<AbortController>();
const [fetching, setFetching] = useState(false);
Expand Down

0 comments on commit 015e9d7

Please sign in to comment.