-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathHome.js
More file actions
88 lines (70 loc) · 4.72 KB
/
Copy pathHome.js
File metadata and controls
88 lines (70 loc) · 4.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import React from 'react'
import "../includes/css/home.css"
import blackBg1 from '../includes/images/bgBlackMd.png'
import blackBg2 from '../includes/images/bgBlackSm.png'
import Typewriter from "typewriter-effect"
import Footer from '../components/Footer'
import TsParticles from '../components/TsParticles'
import Resume from '../documents/Resume_Anmol_Kumar_Sharma.pdf'
import { Link } from 'react-router-dom'
const Home = () => {
return (
<div className="w-full mt-[80px] ml-0 md:ml-[80px] md:mt-0">
<TsParticles />
<div className={`z-10 flex flex-col justify-end md:bg-[url('${blackBg1}')] bg-[url('${blackBg2}')] backdrop-blur-xl h-[200px] lg:bg-cover bg-left text-white`}>
<div className="path p-10">
{/* <p>Home <FontAwesomeIcon icon={faAngleRight}/> About</p> */}
<p className='text-5xl pb-3'><strong>Home</strong></p>
<button disabled className='bg-white rounded-xl mr-2 w-[50px] h-[10px]'></button>
<button disabled className='bg-white rounded-xl animate-pulse mr-2 w-[10px] h-[10px]'></button>
<button disabled className='bg-white rounded-xl animate-pulse mr-2 w-[10px] h-[10px]'></button>
<button disabled className='bg-white rounded-xl animate-pulse mr-2 w-[10px] h-[10px]'></button>
</div>
</div>
<div className='z-10 text-white px-4 md:p-2 md:mx-8 flex flex-col xl:flex-row items-center justify-between'>
<div className="programming-img w-full xl:w-[50%] p-4 mb-8 md:m-0 flex flex-col items-start gap-4 justify-center h-fit">
<div className='text-md lg:text-2xl text-xl inline-flex'><span className='text-blue-300'>Hey There!</span><div className='text-3xl wave h-fit w-fit'>👋</div></div>
<h2 className='text-md lg:text-2xl text-xl'><span className='text-slate-300'>This is, </span></h2>
<h2 className='text-md text-slate-300 lg:text-7xl text-5xl'><span className='text-yellow-500'>Anmol </span> <span className='text-yellow-700'>Sharma</span></h2>
<h2 className='text-md text-blue-300 lg:text-2xl text-xl'>I am a 3<sup>rd</sup>-year student at NIT Sikkim</h2>
<h2 className='text-md text-slate-300 lg:text-xl text-lg'>I am a web developer with good programming skills, and I am seeking internship opportunities...</h2>
</div>
<div className="z-10 m-2 border h-[300px] sm:h-[250px] w-[100%] xl:w-[50%] md:h-[250px] lg:h-[300px] text-left md:text-md lg:text-xl rounded-xl shadow-xl " style={{background:'rgba(128, 128, 128, 0.312)'}}>
<div style={{background:'rgba(128, 128, 128, 0.5)'}} className="head gap-4 rounded-t-xl shadow-xl flex flex-row-reverse items-center justify-start p-4 bg-grey-500 w-full">
<button className="rounded-[50%] flex items-center justify-center text-center bg-red-500 w-[20px] h-[20px] text-xs">x</button>
<button className="rounded-[50%] flex items-center justify-center text-center bg-green-500 w-[20px] h-[20px] text-xs">-</button>
</div>
<div className="typingText p-2">
<Typewriter
options={{
loop: false,
cursor: "|",
}}
onInit={(typewriter) => {
const stringArr = [
`<span class="text-violet-500">#include<span/> <span class="text-orange-500"> < iostream > <br/>`,
`<span class="text-violet-500">using<span/> <span class="text-blue-500">namespace<span/> <span class="text-green-800">std<span/>; <br/><br/>`,
`<span class="text-violet-500">int<span/> <span class="text-yellow-300">main<span/> <span class="text-yellow-600">() {<span/><br/>`,
` <span class="text-blue-500">cout<span/><span class="text-orange-500"><<"Welcome! This is my Portfolio!"<< <span/> <span class="text-yellow-600">endl;<span/><br/>`,
`<span class="text-violet-500">  return <span/><span class="text-yellow-300">0<span/>;<br/>`,
`<span class="text-yellow-600">}<span/>`,
]
for (let str of stringArr) {
typewriter.start()
.typeString(str)
.pauseFor(1000)
}
}}
/>
</div>
</div>
</div>
<div className="pl-4 md:pl-8 pb-12 ">
<div className="text-slate-300 my-2 pb-2 lg:text-2xl text-lg">Have a look at my <span className='text-blue-400'>Resume...</span> </div>
<div className='z-10'><Link to={Resume} target="_blank" className=' flex items-center justify-center p-3 w-[150px] relative text-xl border border-blue-400 text-blue-400 hover:bg-blue-800 hover:text-white p-2 rounded-lg'>Resume</Link></div>
</div>
<Footer/>
</div>
)
}
export default Home