Skip to content

Commit

Permalink
add contact inputs for resume builder
Browse files Browse the repository at this point in the history
  • Loading branch information
iNeso1984 committed Sep 10, 2022
1 parent 145a6ea commit 3d471eb
Show file tree
Hide file tree
Showing 2 changed files with 194 additions and 98 deletions.
223 changes: 130 additions & 93 deletions src/assets/css/resume-builder.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
/* Global Styling between components */

.resume-wrapper {
width:auto;
max-width:1300px;
margin:0 auto;
height:auto;
display:flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: auto;
max-width: 1300px;
margin: 0 auto;
height: auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

/* .btn {
Expand All @@ -42,145 +42,182 @@

/* .btn-ld : add extra link / description */
.btn-ld {
height:26px;
width:auto;
background-color: var(--blue);
font-size: 11px;
height: 26px;
width: auto;
background-color: var(--blue);
font-size: 11px;
}

/* .btn-gr : get started / generate resume */
.btn-gr {
color: var(--element-4);
text-transform: uppercase;
font-weight: 700;
border-radius: 4px;
background-color: var(--primary-1);
color: var(--element-4);
text-transform: uppercase;
font-weight: 700;
border-radius: 4px;
background-color: var(--primary-1);
margin-left:20px;
}

/* .btn-cr : create resume */
/* .btn-cr : create resume */
.btn-cr {
width:auto;
height:auto;
padding:6px 12px;
text-transform: uppercase;
font-weight: 700;
border-radius: 4px;
color: var(--element-4);
background-color: var(--primary-1);
width: auto;
height: auto;
padding: 6px 12px;
text-transform: uppercase;
font-weight: 700;
border-radius: 4px;
color: var(--element-4);
background-color: var(--primary-1);
}


/* Landing Page start */

.landing-text {
width:100%;
max-width: 800px;
padding:1rem 1.5rem;
width: 100%;
max-width: 800px;
padding: 1rem 1.5rem;
}

/* .landing-text h1 span{
display: block;
} */


.landing-text h1 {
text-align: center;
margin-bottom:2rem;
text-align: center;
margin-bottom: 2rem;
}

.landing-text p {
font-size: 1.3125rem;
margin-bottom:1rem;
line-height: 1.3;
font-size: 1.3125rem;
margin-bottom: 1rem;
line-height: 1.3;
}

.landing-image {
padding:1rem 1.5rem;
width:auto;
display:none;
padding: 1rem 1.5rem;
width: auto;
display: none;
}

.landing-btn{
width:auto;
height:auto;
.landing-btn {
width: auto;
height: auto;
}

.landing-btn button img#right-arrow {
width:15%;
margin-left:10px;
}

@media only screen and (min-width:768px){
.resume-wrapper{
margin-top:72px;
}
.landing-image {
display: block;
}

}

@media only screen and (min-width:1024px){
.resume-wrapper{
flex-direction: row;
justify-content: space-between;
}
.landing-text h1 {
text-align: left;
}

.landing-btn {
width:100%;
display: flex;
justify-content: flex-start;
}
}

@media only screen and (min-width:1440px){
.landing-text h1 span {
display: inline-block;
}
.resume-wrapper {
height:calc(100vh - 200px);

}
width: 15%;
margin-left: 10px;
}

@media only screen and (min-width: 768px) {
.resume-wrapper {
margin-top: 72px;
}
.landing-image {
display: block;
}
}

@media only screen and (min-width: 1024px) {
.resume-wrapper {
flex-direction: row;
justify-content: space-between;
}
.landing-text h1 {
text-align: left;
}

.landing-btn {
width: 100%;
display: flex;
justify-content: flex-start;
}
}

@media only screen and (min-width: 1440px) {
.landing-text h1 span {
display: inline-block;
}
.resume-wrapper {
height: calc(100vh - 200px);
}
}
/* Landing page end */

/* ResumeInput start*/
label {
margin-left: 20px;
}

.rb-section {
display: grid;
grid-template-columns: 100px 220px 100px 220px 100px 220px;
}
input {
border-radius: 7px;
border-style: solid 1px rgb(195, 189, 189);
padding: 12px 16px;
margin-bottom: 10px;
border-style: none;
border: 2px solid rgb(235, 232, 232);
}
.doc {
position: relative;
top: 60%;
right: 300%;
width: 600px;
height: 800px;
}
@media (max-width: 1240px) {
/*breakpoint*/
.rb-section {
grid-template-columns: none;
}
.doc {
position: relative;
left: 40%;
top: 0%;
}
button {
position: relative;
top: 0;
}
}

/* ResumeInput end*/

/* Confirmation start */

.rc-response, .dwnld-error {
padding:1rem 1.5rem;
text-align: center;
.rc-response,
.dwnld-error {
padding: 1rem 1.5rem;
text-align: center;
}

.rc-response h1 {
text-transform: uppercase;
margin:1rem 0;
text-transform: uppercase;
margin: 1rem 0;
}

.rc-response h3 {
line-height: 1.2;
line-height: 1.2;
}

.rc-response__action {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.rc-response__action a {
margin:1rem 0;
margin: 1rem 0;
}

.dwnld-error a#dwnld-error__link {
color:var(--hashflag-red);
color: var(--hashflag-red);
}
/* Confirmation end */

/* Error start*/
/* Error end*/
/* Error end*/
69 changes: 64 additions & 5 deletions src/pages/resume-input.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,81 @@
import Link from 'next/link'
import React, { useState } from 'react'
import { NextSeo } from 'next-seo'
import PageHeader from '@/components/PageHeader'

const ResumeInput = () => {
const [fullName, setFullName] = useState('')
const [email, setEmail] = useState('')
const [phone, setPhone] = useState('')
const [location, setLocation] = useState('')
const [linkedin, setLinkedin] = useState('')
const [github, setGitHub] = useState('')
const [portfolio, setPortfolio] = useState('')
const [other, setOther] = useState('')
return (
<>
<NextSeo title="Resume Information" />
<PageHeader />
<div className="container">
<div class="resume-wrapper">
<h1>Contact</h1>
<Link href="/confirmation" passHref>
<button className="btn btn-gr">Next</button>
</Link>
<h1 className="contact-heading">Contact</h1>
<form>
<div className="rb-section">
<label>Full Name</label>
<input
type="text"
required
value={fullName}
onChange={e => setFullName(e.target.value)}
/>

<label>Email</label>
<input type="text" required value={email} onChange={e => setEmail(e.target.value)} />
<label>Phone</label>
<input type="text" required value={phone} onChange={e => setPhone(e.target.value)} />
</div>
<div className="rb-section">
<label>Location</label>
<input
type="text"
required
value={location}
onChange={e => setLocation(e.target.value)}
/>

<label>LinkedIn Profile</label>
<input type="text" value={linkedin} onChange={e => setLinkedin(e.target.value)} />
<label>GitHub</label>
<input type="text" value={github} onChange={e => setGitHub(e.target.value)} />
<label>Portfolio</label>
<input type="text" value={portfolio} onChange={e => setPortfolio(e.target.value)} />
</div>
<div className="rb-section">
<label>Other URL</label>
<input type="text" value={other} onChange={e => setOther(e.target.value)} />
</div>
</form>
<div className="rb-section">
<div className="doc">
<h3>{fullName}</h3>
<p>
{email} {phone} {location}
</p>
<p>
{linkedin} {github} {portfolio} {other}
</p>
<Link href="/resume-builder" passHref>
<button className="btn btn-gr">Back</button>
</Link>
<Link href="/confirmation" passHref>
<button className="btn btn-gr">Next</button>
</Link>
</div>
</div>
</div>
</div>
</>
)
}

export default ResumeInput
export default ResumeInput

0 comments on commit 3d471eb

Please sign in to comment.