Skip to content

Commit

Permalink
Merge pull request #3664 from thelostone-mc/homepage
Browse files Browse the repository at this point in the history
home: base setup
  • Loading branch information
thelostone-mc authored Feb 5, 2019
2 parents 17571ff + 7b6dbbc commit e3d9d50
Show file tree
Hide file tree
Showing 21 changed files with 748 additions and 14 deletions.
4 changes: 4 additions & 0 deletions app/assets/v2/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ span {
word-wrap: break-word;
}

a {
color: #3E00FF;
}

.nav_avatar {
width: 40px;
height: 40px;
Expand Down
4 changes: 4 additions & 0 deletions app/assets/v2/css/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ button:focus {
}
}

.btn {
border-radius: 2px;
}

.btn-gc-blue, .btn-gc-green, .btn-gc-purple {
color: white;
padding: .75rem 1.5rem;
Expand Down
2 changes: 1 addition & 1 deletion app/assets/v2/css/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--gc-blue-hover: #5b24ff;
--gc-purple: #0D0764;
--gc-purple-hover: #0b0d9d;
--gc-green: #05B66A;
--gc-green: #0ECF7C;
--gc-green-hover: #15ef91;

--text-light: #D8D8D8;
Expand Down
10 changes: 4 additions & 6 deletions app/assets/v2/css/gitcoin.css
Original file line number Diff line number Diff line change
Expand Up @@ -188,25 +188,23 @@ div.button-pink {
color: #12c971;
font-size: 2em;
font-weight: 500;
font-style: italic;
}

.header-line-contributors {
letter-spacing: 0.5px;
font-weight: 700;
font-weight: 500;
color: #fff;
}

.subheader-line {
color: #70efbe;
color: #fff;
font-size: 1.5em;
font-weight: 500;
font-style: italic;
}

.subheader-line-contributors {
color: #ffffff;
margin-top: 0.6em;
font-weight: 100;
font-weight: 400;
}

.font-weight-300 {
Expand Down
307 changes: 307 additions & 0 deletions app/assets/v2/css/home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,307 @@
.homepage .container {
padding-bottom: 4rem;
padding-top: 4rem;
}

#banner {
background-color: #0d023b;
background-size: cover;
background-position: 0px 0px;
background-repeat: no-repeat;
position: relative;
color: #fff;
padding-top: 8rem;
}

#optimize_oss p,
#realign p {
color: #4A4A4A;
}

#banner h1 {
font-weight: normal;
font-size: 2rem;
}

#banner h1,
#banner p {
margin-bottom: 2.5rem;
}

#banner .buttons {
display: flex;
justify-content: center;
}

.homepage .btn-gc-green {
color: #0D0764;
}

.watch a {
color: #0D0764;
}

#articles .article {
text-decoration: none;
}

#articles img {
max-width: 100%;
}

#articles h3 {
font-weight: bold;
font-size: 1.3rem;
min-height: 3rem;
color: #000;
}

#articles p {
color: rgba(0,0,0,.54);
}

#press img {
height: 4.25rem;
padding: 0.5rem;
filter: grayscale(100%);
transition: filter 0.3s;
}

#press img:hover {
filter: grayscale(0%);
}

#press a {
margin: auto;
}

#banner .buttons a {
flex-grow: 1;
font-weight: 600;
}

.button__home {
border: 3px solid #3E00FF;
color: #3E00FF;
font-weight: 600;
text-align: left;
padding: 1rem 1.8rem;
margin-bottom: 1.9rem;
}

.button__home i {
float: right;
position: relative;
top: 4px;
}

.button__home,
#products .btn {
width: 20rem;
}

.button__home:hover {
background-color: #3E00FF;
color: #fff !important;
border-radius: 3px;
}

.row h2 {
font-weight: 500;
font-size: 1.75rem;
margin-bottom: 0.6rem;
}

img#cards {
position: relative;
margin-top: -10rem;
margin-bottom: 3rem;
}

img.play {
max-height: 3rem;
}

#products {
background-color: #3E00FF;
margin-top: 10rem;
text-align: center;
color: #fff;
}

#realign,
#know_us {
background-color: #F8F9FA;
}

#products .bot-circle {
margin-top: -8rem;
}

#products .product {
border: 3px solid #ffff;
margin-bottom: 1rem;
font-weight: 600;
text-align: left;
padding: 1.5rem 5rem 1.5rem 2rem;
border-radius: 3px;
}

#products .product h2 {
margin-bottom: 1.5rem;
font-size: 1.25rem;
font-weight: bold;
}

#products .product h2 img {
height: 2rem;
position: relative;
top: -4px;
margin-right: 0.2rem;
}

#products .product p {
margin-bottom: 0.5rem;
}

#products .product i {
font-size: 0.8rem;
}

#products .product a {
color: #fff;
text-decoration: none;
}

#products .product a:hover {
border-bottom: 1px solid #fff;
}

#realign iframe {
max-width: 100%;
}

#realign .video-thumbnail {
z-index:300;
position:absolute;
top:-4px;
left:0;
width:100%;
height: 100%;
display:block;
}

#realign .video-frame {
z-index:100;
position: relative;
top:0;
left:0;
width:100%;
}

.button__blue {
background-color: #3E00FF;
color: #fff !important;
font-weight: 600;
}

.button__blue:hover {
background-color: #fff;
color: #3E00FF !important;
}

.button__green {
border: 3px solid #0ECF7C;
background-color: #0ECF7C;
color: #fff !important;
font-weight: 600;
}

figure {
position: relative;
overflow: hidden;
}

figure::before {
position: absolute;
top: 0;
left: -75%;
z-index: 2;
display: block;
content: '';
width: 50%;
height: 100%;
-webkit-transform: skewX(-25deg);
transform: skewX(-25deg);
}

figure:hover::before {
-webkit-animation: shine .75s;
animation: shine .75s;
background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
}

@-webkit-keyframes shine {
100% {
left: 125%;
}
}

@keyframes shine {
100% {
left: 125%;
}
}

@media (max-width: 1199.98px) {
img#cards {
margin-top: -4rem;
}

#banner img {
position: absolute;
bottom: -2px;
}
}

@media (max-width: 991.98px) {
.realign-img,
.optimize-img {
max-width: 15rem;
}

.optimize-img {
margin-top: 4rem;
}

#realign #sustainability {
margin-bottom: 10rem;
}

#realign .video-thumbnail {
height: auto;
}

.bots-img {
display: none;
}

#banner {
padding-bottom: 5rem;
}

#articles .article {
margin-bottom: 3rem;
}
}

@media (max-width: 767.98px) {

#realign #sustainability {
margin-bottom: 0rem;
}

.row h2 {
margin-bottom: 1.5rem;
}
}
1 change: 1 addition & 0 deletions app/assets/v2/images/home/bot-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/v2/images/home/bots.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/v2/images/home/bounties.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/v2/images/home/cards.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/v2/images/home/codefund.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/v2/images/home/grants.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/v2/images/home/kudos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e3d9d50

Please sign in to comment.