Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5cc5eb3
add pink-dot component and dot-pink.png file for leaders section - wip
hankeliu2015 Apr 20, 2022
618a63e
change file name and fix build error
hankeliu2015 Apr 20, 2022
f8f9217
postion pink-dot component - wip
hankeliu2015 Apr 20, 2022
cd4eb1d
correct sytax for build error
hankeliu2015 Apr 20, 2022
f04fc3e
fix build error
hankeliu2015 Apr 20, 2022
ff958ba
add styles for pink-dot section on leaders component
hankeliu2015 Apr 21, 2022
8c9cecc
adjust pink-dots positions
hankeliu2015 Apr 21, 2022
c488bd3
Merge branch 'production' of github.com:morehumaninternet/frontend in…
hankeliu2015 Apr 22, 2022
6d5a6b4
add pink-dot component and dot-pink.png file for leaders section - wip
hankeliu2015 Apr 20, 2022
49ecf92
change file name and fix build error
hankeliu2015 Apr 20, 2022
a634ec5
postion pink-dot component - wip
hankeliu2015 Apr 20, 2022
ea9a048
correct sytax for build error
hankeliu2015 Apr 20, 2022
e21636b
fix build error
hankeliu2015 Apr 20, 2022
084b763
add styles for pink-dot section on leaders component
hankeliu2015 Apr 21, 2022
6adb3b4
adjust pink-dots positions
hankeliu2015 Apr 21, 2022
3f533c8
remove png circle from pink-dot-container
hankeliu2015 Apr 26, 2022
a3eeab3
resolved local conflict change
hankeliu2015 Apr 26, 2022
c915a1a
remove pink-dot image from pink-dot container
hankeliu2015 Apr 26, 2022
7f13e7d
adjusting pink-dot container styles and add background color
hankeliu2015 Apr 27, 2022
a810292
rename pink-dot component css classes
hankeliu2015 Apr 27, 2022
96b5dd3
removed pink-dots png file from static folder
hankeliu2015 Apr 27, 2022
8f6fcef
remove old iframe and video styles. Move pink-dots section out of lea…
hankeliu2015 Apr 28, 2022
701811c
add margin at leaders section bottom to prevent pink-dot overlap with…
hankeliu2015 Apr 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/new-landing-page/leaders.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { forwardRef } from 'react'

import PinkDot from './pink-dot'

const Leaders = forwardRef(
(_, ref): JSX.Element => {
Expand All @@ -8,6 +8,7 @@ const Leaders = forwardRef(
<div className="leaders__wrapper">
<h1 className="leaders__title">Our leaders join your cause directly, working alongside you to meet your online &amp; offline goals.</h1>
</div>
<PinkDot />
</section>
)
}
Expand Down
9 changes: 9 additions & 0 deletions src/components/new-landing-page/pink-dot.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

export default function PinkDot(): JSX.Element {
return(
<div className="pink_dot__wrapper">
<h3 className="pink_dot__text">More Human Internet partners with international causes to deepen their impact and outreach</h3>
</div>
)
}
46 changes: 26 additions & 20 deletions src/styles/pages/new-landing-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@

.leaders {
background-color: $human-blue;
position: relative;
width: 100%;
padding: 4rem 0;

margin-bottom: 37.5vh;

display: grid;
// grid-template-columns: minmax(25px, 1fr) 800px minmax(25px, 1fr);
place-items: center;

> .leaders__wrapper {
margin: 0 25px;
min-width: 50%;
Expand All @@ -43,24 +45,28 @@
text-align: center;
}

// Making the iframe responsive
> .video {
position: relative;
overflow: hidden;
width: 100%;
padding-top: 56.25%; /* 16:9 Aspect Ratio */

> iframe {
margin: 0 auto;

position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
}
}
.pink_dot__wrapper {
position: absolute;
display: flex;
align-items: center;
width: 50vh;
height: 50vh;
border-radius: 50%;
padding: 5vh;
right: 15vw;
background-color: $human-pink;
text-align: center;
top: 75%;

.pink_dot__text {
color: white;
}
}
@media (max-width: 710px) {
.pink_dot__wrapper {
right: auto;
left: auto;
}
}
}
Expand Down