Giter Site home page Giter Site logo

arch_studio's Introduction

Frontend Mentor - Arch Studio multi-page website solution

This is a solution to the Arch Studio multi-page website 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:

  • View the optimal layout for each page depending on their device's screen size
  • See hover states for all interactive elements throughout the site
  • Receive an error message when the contact form is submitted if:
    • The Name, Email or Message fields are empty should show "Can't be empty"
    • The Email is not formatted correctly should show "Please use a valid email address"
  • Bonus: View actual locations on the contact page map. The addresses we have on the design are fictional, so you'll need to add real addresses for this bonus task.

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • TainwindCSS custom properties
  • Flexbox
  • TailwindCSS Grid
  • Desktop-first workflow
  • Next.js - React framework
  • TailwindCSS - For styles
  • react-map-gl

What I learned

  • The use of live maps react-map-gl trough the module 'maplibre-gl'.
  • The application of Tailwind groups to control hover-overlays.
<div key={index} className="group relative mb-10">
  <div className="flex relative md:w-[280px] md:h-[256px] lg:w-[350px] lg:h-[320px]">
    <Image src={elm.img} alt="Jake" />
  </div>
  <div
    className="absolute inset-0 w-[310px] md:w-[280px] md:h-[256px] lg:w-[350px]
  h-0 flex flex-col justify-center items-center bg-black/50 opacity-0
  group-hover:h-[285px] group-hover:lg:h-[320px]group-hover:md:h-[256px]
  group-hover:opacity-100 duration-500"
  >
    <div className="flex items-center justify-center space-x-5 invert">
      <Image
        className="hover:animate-pulse"
        src={Linkedin}
        alt="Linkedin"
        width={40}
        height={40}
      />
      <Image
        className="hover:animate-pulse"
        src={Tweeter}
        alt="Tweeter"
        width={40}
        height={40}
      />
    </div>
  </div>
  <p className="text-lg font-bold mt-4">{elm.name}</p>
  <p>{elm.role}</p>
</div>

Continued development

  • There are a lot more options in the Maps API. This work just scratched the surface.
  • The Tailwind's 'group' feature will be more explored in the future.

Useful resources

  • Overlays - Create Image Hover Overlay Effects

Author

Acknowledgments

  • Env. variables - Handling multiple environments is an essential part of any modern application. We don’t want to mix our secrets while developing and going to production.

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.