Code Monkey home page Code Monkey logo

artin-gh / single-page-portfolio Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5.46 MB

This is a solution to the Single-page developer portfolio challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Home Page: https://single-page-portfolio-orcin.vercel.app

License: MIT License

JavaScript 59.73% TypeScript 24.53% CSS 15.74%
challenge frontend-mentor nextjs nextjs13 portfolio postcss typescript

single-page-portfolio's Introduction

Frontend Mentor - Single-page developer portfolio solution

This is a solution to the Single-page developer portfolio challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • Receive an error message when the form is submitted if:
    • Any field is empty
    • The email address is not formatted correctly
  • View the optimal layout for the interface depending on their device's screen size
  • See hover and focus states for all interactive elements on the page
  • Bonus: Hook the form up so it sends and stores the user's enquiry (you can use a spreadsheet or Airtable to save the enquiries)
  • Bonus: Add your own details (image, skills, projects) to replace the ones in the design

Screenshot

Links

My process

Built with

  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • React - JS library
  • Next.js - React framework
  • TypeScript - Programming language
  • TailwindCSS - CSS framework
  • PostCSS - JavaScript tool for css

What I learned

I learned How to create flexible elements that keep their aspect ratio (4:3, 16:9, etc.) when resized:

<div class="container"> 
  <div class="text">Some text</div> <!-- If you want text inside the container -->
</div>
.container {
  background-color: red;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  position: relative; /* If you want text inside of it */
}

/* If you want text inside of the container */
.text {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

Above code belongs to w3schools.

Useful resources

  • How TO - Aspect Ratio - This w3schools howto helped me to learn how to maintain the aspect ratio of an element with CSS.
  • Example resource 2 - This tutorial showes the usage of the filter: hue-rotate in css.

Author

Please like and star the project on the GitHub and Frontend Mentor if you like it. โœจ๐Ÿ’›

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.