Skip to content

Commit

Permalink
Basic Structure
Browse files Browse the repository at this point in the history
  • Loading branch information
vishal035 committed Aug 26, 2022
1 parent 4e19d61 commit 727a768
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 2 deletions.
16 changes: 16 additions & 0 deletions components/Buttons/Default/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react';

const Button = () => {
return (
<div className="relative hover:-translate-x-1 hover:-translate-y-1 active:translate-y-0 active:translate-x-0 transition-all ease-in-out">
<a
href="#"
className="px-12 py-6 tracking-widest bg-primary-black text-primary hover:bg-primary-black hover:text-primary "
>
Resume
</a>
</div>
);
};

export default Button;
2 changes: 1 addition & 1 deletion components/Header/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const NavBar = () => {
<>
<div className="navbar bg-primary">
<div className="flex-1">
<a className="btn text-primary-black btn-ghost hover:bg-primary-black hover:text-primary normal-case text-xl">
<a href="#" className=" text-primary-black uppercase text-xl">
VK
</a>
</div>
Expand Down
31 changes: 31 additions & 0 deletions components/HeroSection/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React from 'react';
import Button from '../Buttons/Default';

const HeroSection = () => {
return (
<main className="relative w-full h-full flex flex-col items-center">
<section className="ralative h-2/4 w-full flex flex-col items-center text-primary mix-blend-difference ">
<h1 className="relative top-4 font-black text-6xl tracking-wider">
Hi
</h1>
<h2 className="relative top-8 font-bold text-4xl tracking-widest">
I&apos;m Vishal Kumar
</h2>
<h3 className="relative top-8 text-4xl font-bold tracking-widest">
A Self Taught
</h3>
<h4 className="relative top-16 text-4xl font-semibold tracking-widest">
FullStack Developer
</h4>
<p className="relative top-16 tracking-[2.2px]">
on the way to become Senior of MySelf 🔥
</p>
</section>
<section className="relative w-full h-full flex flex-col justify-center items-center">
<Button />
</section>
</main>
);
};

export default HeroSection;
4 changes: 3 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { NextPage } from 'next';
import Head from 'next/head';
import NavBar from '../components/Header/Navbar';
import HeroSection from '../components/HeroSection';

const Home: NextPage = () => {
return (
Expand All @@ -10,8 +11,9 @@ const Home: NextPage = () => {
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main className="absolute top-0 left-0 w-full h-full bg-primary">
<main className="absolute top-0 left-0 w-screen h-screen bg-primary overflow-hidden">
<NavBar />
<HeroSection />
</main>
</>
);
Expand Down
1 change: 1 addition & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;200;300;400;500;600;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ module.exports = {
],
theme: {
extend: {
fontFamily: {
sans: 'Josefin Sans',
},
colors: {
primary: '#E7E7E5',
'primary-black': '#2A2A2A',
Expand Down

1 comment on commit 727a768

@vercel
Copy link

@vercel vercel bot commented on 727a768 Aug 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.