Book Image

Hands-On Full-Stack Web Development with ASP.NET Core

By : Tamir Dresher, Amir Zuker, Shay Friedman
Book Image

Hands-On Full-Stack Web Development with ASP.NET Core

By: Tamir Dresher, Amir Zuker, Shay Friedman

Overview of this book

Today, full-stack development is the name of the game. Developers who can build complete solutions, including both backend and frontend products, are in great demand in the industry, hence being able to do so a desirable skill. However, embarking on the path to becoming a modern full-stack developer can be overwhelmingly difficult, so the key purpose of this book is to simplify and ease the process. This comprehensive guide will take you through the journey of becoming a full-stack developer in the realm of the web and .NET. It begins by implementing data-oriented RESTful APIs, leveraging ASP.NET Core and Entity Framework. Afterward, it describes the web development field, including its history and future horizons. Then, you’ll build webbased Single-Page Applications (SPAs) by learning about numerous popular technologies, namely TypeScript, Angular, React, and Vue. After that, you’ll learn about additional related concerns involving deployment, hosting, and monitoring by leveraging the cloud; specifically, Azure. By the end of this book, you’ll be able to build, deploy, and monitor cloud-based, data-oriented, RESTful APIs, as well as modern web apps, using the most popular frameworks and technologies.
Table of Contents (22 chapters)
Title Page
PacktPub.com
Contributors
Preface
Index

Header component


Now that you understand class components and JSX, implement the header component by following the next steps:

  1. Create a new folder called /src/components/common/Header.
  2. Create a new file called /src/components/common/Header/Header.css.
  3. Write the following CSS in Header.css:
    .app-header {
      height: 200px;
      border-bottom: 1px solid black;
    }

    .app-header::after {
      content: "";
      height: 200px;
      opacity: 0.5;
      background: url('../../../assets/herobg.jpg');
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      z-index: -1;   
    }

    .app-logo {
      height: 80px;
      margin-left: 50px;
    }

    .app-slogan {
      font-family: 'Comic Sans MS', 'Comic Sans', cursive;
      font-weight: bold;
      margin-left: 5px;
    }
  1. Create a new file called /src/components/common/Header/Header.js.
  2. Write the following...