mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-16 17:51:43 +10:00
- recreating onyx template
- profile section complete
This commit is contained in:
68
src/templates/Onyx.js
Normal file
68
src/templates/Onyx.js
Normal file
@ -0,0 +1,68 @@
|
||||
import React, { useContext, useEffect } from "react";
|
||||
import { FaGlobeAmericas, FaPhone } from "react-icons/fa";
|
||||
import { MdEmail } from "react-icons/md";
|
||||
import TemplateContext from "../contexts/TemplateContext";
|
||||
|
||||
const Onyx = ({ data, layout, colors }) => {
|
||||
const { setSelected, setSupportedBlocks } = useContext(TemplateContext);
|
||||
|
||||
useEffect(() => {
|
||||
setSelected("Onyx");
|
||||
setSupportedBlocks(1);
|
||||
}, [setSelected, setSupportedBlocks]);
|
||||
|
||||
return (
|
||||
<div
|
||||
className="p-8 grid grid-cols-10 gap-4 items-center"
|
||||
style={{
|
||||
color: colors.textColor,
|
||||
backgroundColor: colors.backgroundColor,
|
||||
}}
|
||||
>
|
||||
<img
|
||||
className="col-span-2 rounded"
|
||||
src="https://i.imgur.com/Icr472Z.jpg"
|
||||
alt="Photograph"
|
||||
/>
|
||||
<div className="col-span-5">
|
||||
<h2
|
||||
className="text-4xl font-bold"
|
||||
style={{ color: colors.primaryColor }}
|
||||
>
|
||||
Nancy Jackson
|
||||
</h2>
|
||||
<span className="font-medium">Customer Sales Representative</span>
|
||||
|
||||
<div className="mt-5 flex flex-col">
|
||||
<span>3879 Gateway Avenue,</span>
|
||||
<span>Bakersfield,</span>
|
||||
<span>California, USA</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className="col-span-3 grid gap-4">
|
||||
<div className="flex items-center">
|
||||
<FaPhone size="14" style={{ color: colors.primaryColor }} />
|
||||
<span className="ml-4 text-sm font-medium">+1 661-808-4188</span>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center">
|
||||
<FaGlobeAmericas size="14" style={{ color: colors.primaryColor }} />
|
||||
<span className="ml-4 text-sm font-medium">nancyontheweb.com</span>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center">
|
||||
<MdEmail size="14" style={{ color: colors.primaryColor }} />
|
||||
<span className="ml-4 text-sm font-medium">
|
||||
nancyjack43@gmail.com
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr className="my-2 col-span-10" />
|
||||
|
||||
{JSON.stringify(layout)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Onyx;
|
||||
Reference in New Issue
Block a user