Skip to content

Commit

Permalink
And header is responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincharles committed Feb 13, 2023
1 parent 4a9a448 commit 38f9a02
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions src/Tools/_framework/ToolPanels/HomePanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { pageVariantInfoAtom, pageVariantPanelAtom } from '../../../_sharedRecoi
import { useRecoilState, useSetRecoilState } from 'recoil';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
faCalendarPlus,
faCalendarTimes,
// faCalendarPlus,
// faCalendarTimes,
faChevronLeft,
faChevronRight
} from '@fortawesome/free-solid-svg-icons';
Expand Down Expand Up @@ -59,14 +59,14 @@ const LinkStyling = styled.a`

const H1responsive = styled.h1`
line-height: 0.1em;
@media (max-width: 760px) {
@media (max-width: 800px) {
font-size: 1.1em;
}
`

const H4responsive = styled.h4`
line-height: 0.1em;
@media (max-width: 760px) {
@media (max-width: 800px) {
font-size: .6em;
}
`
Expand All @@ -78,7 +78,6 @@ const HPVideo = styled.video`
}
`


function Heading(props) {
return <div style={{
display: 'flex',
Expand Down Expand Up @@ -121,10 +120,6 @@ const RightChevron = styled(FontAwesomeIcon)`
}
`





function DemoCard({ imagePath, text, link }) {

let image = <p style={{ fontSize: '2em', color: 'white' }}>Loading...</p>
Expand Down Expand Up @@ -247,6 +242,19 @@ const CarouselSection = styled.div`
}
`

const HeaderSection = styled.div`
display: flex;
background: var(--mainGray);
justify-content: center;
align-items: center;
height: 175px;
position: relative;
@media (max-width: 500px) {
height: 300px;
flex-direction: column-reverse;
}
`

function HPCarousel({ data }) {
const [activeSectionNumber, setActiveSectionNumber] = useState(0);

Expand Down Expand Up @@ -313,8 +321,6 @@ function HPCarousel({ data }) {
}




export default function HomePage(props) {

let carouselData = useRef([]);
Expand Down Expand Up @@ -463,14 +469,15 @@ export default function HomePage(props) {
return <div style={props.style}>


<div style={{
{/* <div style={{
display: 'flex',
background: 'var(--mainGray)',
justifyContent: 'center',
alignItems: 'center',
height: '175px',
position: 'relative'
}}>
}}> */}
<HeaderSection>
{signInButton}
<img style={{
width: '143px'
Expand All @@ -486,7 +493,8 @@ export default function HomePage(props) {
<H1responsive>The Distributed Open Education Network</H1responsive>
<H4responsive>The free and open data-driven education technology platform</H4responsive>
</div>
</div>
</HeaderSection>
{/* </div> */}

<Heading heading="Create Content" subheading="Authors can quickly create interactive activities" />

Expand Down

0 comments on commit 38f9a02

Please sign in to comment.