CREATING THE LANDING PAGE

 CREATED A NAV BAR AND LANDING PAGE'S CONTENT.

LANDINGPAGE.JSX

import React from "react";
import "../App.css";
import {Link} from "react-router-dom";
export default function LandingPage() {
  return (
    <>
      <div className="landingContainer">
        <nav>
          <div className="navHeader">
            <h2>Logo and title</h2>
          </div>
          <div className="navLinks">
            <a>Register</a>
            <a>Login</a>
          </div>
        </nav>
        <div className="menu">
          <div>
            <h2>
              <span style={{ color: "orange" }}>Connect</span> with your desired
              ones
            </h2>
            <p>just a few clicks away!</p>
            <div role="button">
              <Link to="">Get started</Link>
            </div>
          </div>
          <div>
            <img src="/mobile.png" />
          </div>
        </div>
      </div>
    </>
  );
}

APP.CSS

.landingContainer {
  height: 100vh;
  width: 100vw;
  background: url("public/bgPr2.png");
  background-repeat: no-repeat;
  background-size: cover;
}
.landingContainer a{
    color: white;
}
.landingContainer nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.landingContainer .navHeader {
  font-size: 1rem;
  font-weight: 700;
}
.landingContainer nav .navLinks {
  padding: 1rem;
  text-decoration: none;
  display: flex;
  gap: 1rem;
  cursor: pointer;
}
.menu {
  display: flex;
  justify-content: space-between;
  padding-inline: 2rem;
  align-items: center;
  height: 50vh;
}
.menu > div:nth-child(1) h2 {
  font-size: 2rem;
}
.menu > div:nth-child(1) p {
  font-size: 1.2rem;
  font-family: Arial, Helvetica, sans-serif;
}

.menu > div:nth-child(1) div[role="button"] {
  font-size: 1rem;
  background-color: orange;
  width: fit-content;
  padding: 0.5rem;
  border-radius: 1rem;
}
.menu > div:nth-child(2) img {
  height: 60vh;
  margin-top: 5rem;
  width: auto;
}




Comments

Popular posts from this blog

MIDDLEWARE.JS

MODELS

AUTHENTICATION PAGE