Git Product home page Git Product logo

dev-portfolio's Introduction

Personal Portfolio Website Documentation

This documentation provides an overview of the HTML and CSS code for a personal portfolio website.

HTML Code

The HTML code represents the structure and content of the website. Here are the key sections of the code:

  • The <head> section includes meta tags for defining the character encoding, viewport settings, and page title. It also links to external stylesheets and sets the favicon.

  • The <body> section contains the main content of the website. It includes sections such as the header, portfolio, services, and footer.

  • The header section displays the logo, name, and contact information. It also includes a dark mode toggle button.

  • The portfolio section showcases the tools used and current projects.

  • The services section highlights the services provided.

  • The footer section displays the copyright information.

CSS Code

The CSS code defines the styles and appearance of the website. Here are some key styles used in the code:

  • Custom CSS variables are defined in the :root selector to set color and font-related properties.

  • The darkmode class is applied to the body element to enable dark mode.

  • Various sections of the website, such as header, tools, projects, services, and footer, are styled using CSS selectors.

  • Text styles, link styles, and responsive styles for different screen sizes are also defined in the CSS code.

Dark Mode Toggle Functionality

The dark mode toggle functionality is implemented using JavaScript. The darkmode.js file handles the enable and disable functionality based on user interaction with the toggle button. When the button is clicked, the enableDarkMode or disableDarkMode function is called, which adds or removes the darkmode class from the body element and updates the darkMode setting in the localStorage.

Usage

To use this website template:

  1. Replace the content and images in the HTML code with your own information.

  2. Customize the CSS styles to match your desired design.

  3. Include the darkmode.js file in your project to enable the dark mode toggle functionality.

  4. Deploy the website to a hosting provider or web server to make it accessible to visitors.

Example

Here is an example of how the personal portfolio website can be implemented:

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">
  <title>HUSAM's Portfolio</title>
  <link rel="shortcut icon" type="image/png" href="image/favicon.png">
  <link href="main.css" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css?family=Space+Mono" rel="stylesheet">
  <link rel="stylesheet" href="https://unpkg.com/kursor/dist/kursor.css">
</head>
<body>
  <!-- Website content goes here -->
  <script src="darkmode.js"></script>
</body>
</html>

dev-portfolio's People

Contributors

husam-07 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.