Skip to content

Commit

Permalink
homepage header
Browse files Browse the repository at this point in the history
  • Loading branch information
pextech committed Dec 7, 2021
1 parent 1295bdd commit e536b6a
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 30 deletions.
32 changes: 32 additions & 0 deletions components/HomePageNewTopSection.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import React from "react";

const HomepageNewTopSection = () => {
return (
<>
<section className="tw-flex tw-flex-row homepage__hero tw-w-full tw-h-full lg:tw-flex-col-reverse">
<div className="tw-flex tw-flex-col tw-px-10 tw-pt-64 lg:tw-pt-2">
{/* content sections */}
<div className="tw-w-1/3 tw-mt-4">
<p className="tw-text-4xl tw-font-bold">Minority Programmers Associations</p>
</div>
<div className="tw-mt-4 tw-font-medium">
<p className="tw-text-xl lg:tw-text-sm">We are an International network of developers unifying together to build socially impactful projects and spread STEM education to marginalized communities.</p>
</div>
<div className="tw-mt-4">
<a href="/join">
<button class="tw-bg-blue-600 hover:tw-bg-blue-700 tw-text-white tw-font-bold tw-py-2 tw-px-4 tw-rounded">
JOIN NOW
</button>
</a>
</div>
</div>
<div className="tw-w-11/12 tw-p-10 lg:tw-p-2 lg:tw-pt-10">
{/* image sections */}
<img src="/assets/images/meta.png" alt="" className="tw-w-full tw-h-full" />
</div>
</section>
</>
);
};

export default HomepageNewTopSection;
27 changes: 0 additions & 27 deletions components/HomepageHeader.js

This file was deleted.

4 changes: 2 additions & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState, useRef, useEffect } from "react";
import Layout from "../components/Layout";
import HomepageNav from "../components/HomepageNav";
import Footer from "../components/Footer";
import HomepageHeader from "../components/HomepageHeader";
import HomePageNewTopSection from "../components/HomePageNewTopSection";
import HomepageAbout from "../components/HomepageAbout";
import HomepageApp from "../components/HomepageApp";
import HomepageCore from "../components/HomepageCore";
Expand Down Expand Up @@ -63,7 +63,7 @@ const HomepageFour = () => {
handleClick={handleClick}
/>
{hide == false && <ComingSoon closeClick={handleClick} />}
<HomepageHeader />
<HomePageNewTopSection />
<HomepageAbout />
{/* <HomepageBuyMinority />*/}
<HomepageApp />
Expand Down
11 changes: 10 additions & 1 deletion public/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7614,7 +7614,7 @@ html {
/* Hero */
.homepage__hero {
position: relative;
padding: 120px 0;
padding-top: 60px;
font-family: 'Red Hat Display', sans-serif;
color: #fff;
background: linear-gradient(90deg, #ff00b8 0%, #ff655b 50.8%, #ffc700 100%);
Expand Down Expand Up @@ -8359,6 +8359,9 @@ html {
}

@media screen and (max-width: 768px) {
.homepage__hero{
padding-top: 5px;
}
.popup_bg-core {
max-width: 36em;
}
Expand All @@ -8369,6 +8372,9 @@ html {
}

@media screen and (max-width: 480px) {
.homepage__hero{
padding-top: 5px;
}
.popup_bg-core {
padding: 1em;
padding-top: 3em;
Expand Down Expand Up @@ -8518,6 +8524,9 @@ html {
}

@media only screen and (max-width: 375px) {
.homepage__hero{
padding-top: 5px;
}
.card-body-custom p,
.card-body-app p {
font-size: 1rem;
Expand Down
Binary file added public/assets/images/meta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e536b6a

Please sign in to comment.