Skip to content

Commit 643dec7

Browse files
committed
Custom Class
1 parent 16262e7 commit 643dec7

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/components/Hero.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { socialLinks } from "../data";
44
const Hero = () => {
55
return (
66
<section className="bg-emerald-100">
7-
<div className="mx-auto grid max-w-7xl gap-y-8 px-8 py-24 md:grid-cols-2 md:items-center">
7+
<div className="align-element grid gap-y-8 py-24 md:grid-cols-2 md:items-center">
88
{/* Info */}
99
<article>
1010
<h1 className="text-7xl font-bold tracking-wider">{"I'm Praveen"}</h1>

src/components/Navbar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { navLinks } from "../data";
33
const Navbar = () => {
44
return (
55
<nav className="bg-emerald-100">
6-
<div className="mx-auto flex max-w-7xl flex-col px-8 py-4 sm:flex-row sm:items-center sm:gap-x-16 sm:py-8">
6+
<div className="align-element flex flex-col py-4 sm:flex-row sm:items-center sm:gap-x-16 sm:py-8">
77
<h2 className="text-3xl font-bold">
88
Web<span className="text-emerald-600">Dev</span>
99
</h2>

src/index.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
@tailwind base;
22
@tailwind components;
33
@tailwind utilities;
4+
5+
@layer components {
6+
.align-element {
7+
@apply mx-auto max-w-7xl px-8;
8+
}
9+
}

0 commit comments

Comments
 (0)