Как создать красивый сайт-портфолио используя HTML и CSS | How to Make A Personal Portfolio Website using HTML and CSS

Как создать красивый сайт-портфолио используя HTML и CSS | How to Make A Personal Portfolio Website using HTML and CSS

Всем Привет! В этом видео мы создадим красивый дизайн сайта личного портфолио (шапку для сайта) используя тёмные и оранжевые цветовые гамы. Надеюсь, это видео будет полезным для вас. Скачать коды можно по ссылке ниже.

Кроме того, если у вас есть какие-либо вопросы, предложения или отзывы, то оставьте комментарий ниже. Ваши отзывы помогают нам создавать более ценный контент.

HTML КОД:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Personal Portfolio Website</title>

    <!--font awesome(for icons)-->
    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
    />

    <!--css file-->
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
    <header>
      <h1 class="logo">emma <span>..</span></h1>

      <nav class="navbar">
        <a href="#">home</a>
        <a href="#">Products</a>
        <a href="#">service</a>
        <a href="#">contact</a>
        <span></span>
      </nav>

      <div class="links">
        <a href="#"><i class="fa-solid fa-heart"></i></a>
        <a href="#"><i class="fa-solid fa-cart-shopping"></i></a>
        <a href="#"><i class="fa-solid fa-bars"></i></a>
      </div>
    </header>

    <section class="Home">
      <div class="content">
        <h4>hello there,</h4>
        <h1>i'm <span>emma watson</span></h1>
        <h3>Certified web designer</h3>
        <p>
          I used HTML and CSS to create and design the website <br />
          If you follow the step-by-step video you will be able to make a <br />
          beautiful website using HTML & CSS
        </p>

        <a href="#" class="btn">Hire me</a>

        <div class="socials">
          <a href="#"><i class="fa-brands fa-github"></i></a>
          <a href="#"><i class="fa-brands fa-twitter"></i></a>
          <a href="#"><i class="fa-brands fa-instagram"></i></a>
          <a href="#"><i class="fa-brands fa-facebook"></i></a>
          <a href="#"><i class="fa-brands fa-youtube"></i></a>
        </div>
      </div>
      <img src="img.png" alt="" />
    </section>
  </body>
</html>

CSS КОД:

/* Google Fonts(Poppins) */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  height: 100vh;
  background: #000;
}

header {
  width: 100%;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  padding: 20px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 35px;
  font-weight: 700;
  color: #fff;
  text-transform: capitalize;
  letter-spacing: 1px;
}

header .logo span {
  color: #ffae00;
}

header .navbar {
  position: relative;
  padding: 10px 0;
  border-radius: 10px;
}

header .navbar a {
  position: relative;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  text-transform: capitalize;
  margin: 10px;
  padding: 8px 10px;
  color: #fff;
  z-index: 2;
}

header .navbar span {
  position: absolute;
  height: 100%;
  width: 100px;
  background: #ffae00;
  left: 0;
  top: 0;
  transition: 0.4s linear;
  border-radius: 10px;
}

header .navbar a:nth-child(1):hover ~ span {
  left: 0;
}

header .navbar a:nth-child(2):hover ~ span {
  left: 107px;
}

header .navbar a:nth-child(3):hover ~ span {
  left: 225px;
}

header .navbar a:nth-child(4):hover ~ span {
  left: 340px;
}

header .links a {
  font-size: 24px;
  color: #fff;
  margin-left: 20px;
  transition: 0.4s ease;
}

header .links a:hover {
  color: #ffae00;
}

.Home {
  height: 100vh;
  padding: 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.Home .content h4 {
  font-size: 20px;
  color: #fff;
  text-transform: capitalize;
  font-style: italic;
  letter-spacing: 1px;
}

.Home .content h1 {
  font-size: 60px;
  color: #fff;
  text-transform: capitalize;
  letter-spacing: 1px;
}

.Home .content h1 span {
  color: #ffae00;
}

.Home .content h3 {
  font-size: 32px;
  color: #eee;
  text-transform: capitalize;
  letter-spacing: 1px;
}

.Home .content p {
  color: #999;
  margin: 20px 0 30px;
}

.Home .content .btn {
  display: inline-block;
  padding: 8px 32px;
  border: double #ffae00 8px;
  font-size: 24px;
  font-weight: 600;
  text-transform: capitalize;
  text-decoration: none;
  color: #ffae00;
  position: relative;
  z-index: 99;
  transition: 0.4s ease;
}

.Home .content .btn:hover {
  color: #000;
}

.Home .content .btn::before {
  position: absolute;
  content: "";
  width: 0%;
  height: 100%;
  background-color: #ffae00;
  left: 0;
  top: 0;
  right: 0;
  z-index: -1;
  transition: 0.4s ease-in-out;
}

.Home .content .btn:hover::before {
  width: 100%;
}

.Home .content .socials {
  position: absolute;
  bottom: 10%;
}

.Home .content .socials a {
  display: inline-flex;
  text-decoration: none;
  width: 50px;
  height: 50px;
  border: solid 3px #ffae00;
  border-radius: 15px 0;
  justify-content: center;
  align-items: center;
  font-size: 23px;
  color: #ffae00;
  margin-left: 10px;
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
}

.Home .content .socials a:hover {
  color: #000;
}

.Home .content .socials a::before {
  position: absolute;
  content: "";
  width: 0%;
  height: 100%;
  background: #ffae00;
  left: 0;
  top: 0;
  right: 0;
  z-index: -1;
  transition: 0.4s ease-in-out;
}

.Home .content .socials a:hover::before {
  width: 100%;
}

.Home img {
  height: 600px;
  margin-top: 60px;
  cursor: pointer;
  transition: 0.4s linear;
}

.Home img:hover {
  transform: scale(1.1);
}


0 Комментарии