Skip to content

Sherrisa/sherrisa

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server: npm run dev Open http://localhost:3000 with your browser to see the result. You can start editing the page by modifying app/page.js. The page auto-updates as you edit the file.

My Development Process

  • Create high-fidelity mockups of mobile first and then desktop in Figma.
  • Installation - Create a new Next.js app using create-next-app.
  • Remove everything between the main tags in page.js & change the title metadata in layout.js.
  • remove everything in the globals.css file except the three lines of @tailwind code; Add a max-width and padding to the body and center it.
  • Setup fonts.js file with exports of heading, subheading, and body fonts & import the body font into layout.js file.
  • Add an images folder inside the public folder; place all home page above-the-fold images in the folder; add these images to the page in the page.js file.
  • Set up the pages for the first sprint of the project with their page.tsx files in the app folder. Add a components folder inside the app folder.
  • Build the navbar and the footer.

Installing Multiple Custom Google Fonts

Font Optimization: Using Multiple Fonts

Set Up the Color Palette

Using Custom Colors

Footer & Font Awesome

  • VS Code shortcut to make a React export default function => rfc; make the function semantic by changing the
    to
  • In layout.js import the Footer component and add to the RootLayer component
  • Review the Font Awesome Set Up with React
  • Add SVG Core: npm i --save @fortawesome/fontawesome-svg-core
  • Add Icon Packages: npm i --save @fortawesome/free-solid-svg-icons
  • Add the React Component: npm i --save @fortawesome/react-fontawesome@latest
  • Review the troubleshooting page on Using the Font Awesome React component with Next.js and Typescript
  • Note: The three lines of code this article indicates putting in an app.js file goes at the top of the layout.js file
  • Add the code: Add the Link import and links for the email & phone; Make the "text" for each link be a Font Awesome icon
  • Add the Tailwind styling: Give it a background color, a padding top & bottom of 2rem (py-8), center the icons (flex, justify-center)

Footer & React-Icon

I decided to switch over to from Font Awesome to react-icons for my icons.

Navbar

I learned how to create a navbar with Tailwind and Next.js from the video Creating a Navigation Bar with Next.js & Tailwind CSS: A Step-by-Step Guide.

Using v0.dev, Shadcn.ui & ChatGPT

I used v0.dev for ideas for the home page layout. This is where I learned about shadcn.ui.

Grid Layout

I learned grid layout with Tailwind for this project.

Project Mockup Images

To give my project images a more professional feel, I used mockup templates from stock.adobe.com and Photoshop.

  • The video How to Use Mockup Templates with Photoshop showed me how to do this.
  • I used the Go Full Page Chrome extension to take screenshots of the browser window.
  • I then cropped these images to the dimensions indicated in the mockup templates using Photoshop.
  • I was inspired by looking atSofie Brittain's Website, which I found by reading blogposts about the best portfolio websites.

Initial Testing

  • I tested every link.
  • I viewed every page with the Chrome developer tools on each of the following dimensions: iPhone 12 Pro, iPad Pro, and Desktop in Full Screen mode.
  • I changed the desktop viewport size in and out on all pages to see how the responsive design appeared at varying widths.

Pushing to GitHub & Deploying to Vercel

  • Create repository
  • git init
  • git add .
  • git commit -m "First commit"
  • git branch -M main
  • git remote add origin https://github.com/sherrisa/sherrisa
  • git push -u origin main
  • Login to vercel
  • Click new project => import the project => click deploy
  • Note: The project will build at this time

Deploy a Next JS Application by Code Commerce has a great tutorial on this process.

Deploy on Vercel Documentation

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

To add the custom domain sherrisa.com, read this documentation: Adding and Configuring a Custom Domain

Adding Open Graph Image

  • Create an image 1200 x 630
  • Name it opengraph-image.jpg or opengraph-image.png
  • Place it in the app folder
  • Add the following openGraph code to the layout.tsx file
    export const metadata: Metadata = {
      metadataBase: new URL("https://sherrisa.com"),
      title: "Sherrisa's Portfolio",
      description:
        "Projects in videography, UX design, instructional design, and app development",
      openGraph: {
        title: "Sherrisa's Portfolio",
        description: "Sample instructional design and app development projects",
        images: "/opengraph-image.jpg",
      },
    };
    
    Next.js SEO metadata - A complete guide helped me with the layout.tsx code and Setting Up a Static OG Image in Next.js showed me where to put the image. The Open Graph Protocol documentation can be found here: Open Graph Protocol.

Image Optimization

Optimization was necessary for speed and SEO.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Releases

No releases published

Packages

No packages published