Skip to content

Commit

Permalink
replace img with nextjs Image component (#20)
Browse files Browse the repository at this point in the history
* replace img with nextjs Image component

* Hotfix: fix linting issue
  • Loading branch information
RafaelCaso authored Aug 21, 2024
1 parent dcc418b commit d907403
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import Image from "next/image";
import profileUrl from "./_assets/RolandTheFrank.jpg";
import { GitHubIcon, LinkedInIcon, TwitterIcon, YouTubeIcon } from "./profileLinks";
import type { NextPage } from "next";
import { Address } from "~~/components/scaffold-eth";

const profileUrl = "https://pbs.twimg.com/media/Ey8oK6gXMAUKrEX.jpg";

const RolandTheFrank: NextPage = () => {
return (
<div className="flex items-center flex-col flex-grow pt-10">
<div className="w-96 px-6 py-6 text-center bg-gray-800 rounded-lg lg:mt-0 xl:px-10">
<div className="space-y-4 xl:space-y-6 pt-8">
<img className="mx-auto rounded-full h-36 w-36" src={profileUrl} alt="author avatar" />
<div className="mx-auto rounded-full h-36 w-36 overflow-hidden">
<Image alt="author avatar" width={144} height={144} src={profileUrl} className="object-cover" />
</div>
<div className="space-y-2">
<div className="flex justify-center items-center flex-col space-y-3 text-lg font-medium leading-6">
<h3 className="text-amber-50">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from "react";
import Image from "next/image";
import { NextPage } from "next";
import { NextPage } from "next";

const Zeze : NextPage = () => {
const Zeze: NextPage = () => {
return (
<>
<div className="basis-full md:basis-1/2 flex justify-center items-center h-screen">
Expand Down Expand Up @@ -52,4 +52,4 @@ const Zeze : NextPage = () => {
);
};

export default Zeze
export default Zeze;

0 comments on commit d907403

Please sign in to comment.