Created CV Section #6
2
dist/css/main.css
vendored
2
dist/css/main.css
vendored
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
File diff suppressed because one or more lines are too long
170
src/css/main.css
170
src/css/main.css
@ -5,13 +5,17 @@
|
||||
/****** Root Style ******/
|
||||
:root {
|
||||
/* Colours */
|
||||
--primaryDefault: hsla(79, 62%, 51%, 1);
|
||||
--primaryHover: hsla(79, 75%, 41%, 1);
|
||||
--errorDefault: hsla(0, 62%, 51%, 1);
|
||||
--mainHue: 79;
|
||||
--mainSat: 62%;
|
||||
--mainLight: 51%;
|
||||
--primaryDefault: hsla(var(--mainHue), var(--mainSat), var(--mainLight), 1);
|
||||
--primaryHover: hsla(var(--mainHue), var(--mainSat), calc(var(--mainLight) - 10%), 1);
|
||||
--timelineItemBrdr: hsla(var(--mainHue), var(--mainSat), calc(var(--mainLight) - 20%), 1);
|
||||
--errorDefault: hsla(0, var(--mainSat), var(--mainLight), 1);
|
||||
--grey: hsla(0, 0%, 39%, 1);
|
||||
--mutedGrey: hsla(0, 0%, 67%, 0.58);
|
||||
--mutedBlack: hsla(0, 0%, 0%, 0.25);
|
||||
--navBack: hsl(0, 0%, 30%);
|
||||
--navBack: hsla(0, 0%, 30%, 1);
|
||||
|
||||
/* Font Sizes */
|
||||
--titleFS: 2.25rem;
|
||||
@ -79,7 +83,6 @@ a.btnOutline {
|
||||
|
||||
a.btnPrimary:hover, form input[type="submit"]:hover {
|
||||
background: var(--primaryHover);
|
||||
|
||||
}
|
||||
|
||||
a.btn:active, form input[type="submit"]:active {
|
||||
@ -98,6 +101,10 @@ a.btn:active, form input[type="submit"]:active {
|
||||
text-shadow: 0 6px 4px var(--mutedBlack);
|
||||
}
|
||||
|
||||
section#about, section#curriculumvitae h1 {
|
||||
padding: 0 5rem;
|
||||
}
|
||||
|
||||
/*** Navigation Styles **/
|
||||
|
||||
header {
|
||||
@ -122,6 +129,7 @@ nav {
|
||||
|
||||
nav.scrolled {
|
||||
background-color: var(--navBack);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
nav #nav-check {
|
||||
@ -203,20 +211,149 @@ div h1 span {
|
||||
|
||||
/***** About Styles *****/
|
||||
|
||||
section#about {
|
||||
padding: 0 5em;
|
||||
}
|
||||
|
||||
section#about div {
|
||||
padding: 0.1em 5em;
|
||||
}
|
||||
|
||||
/****** CV Styles *******/
|
||||
|
||||
section#curriculumvitae{
|
||||
background-color: var(--primaryDefault);
|
||||
color: #FFFFFF;
|
||||
padding: 2em 0;
|
||||
}
|
||||
|
||||
section#curriculumvitae .cvGrid {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding: 0 1.5rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
section#curriculumvitae .cvGrid > div {
|
||||
width: 45%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100%;
|
||||
|
||||
}
|
||||
|
||||
#curriculumvitae .cvGrid h2 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#curriculumvitae .timeline {
|
||||
position: relative;
|
||||
max-width: 30em;
|
||||
gap: 1em;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0 auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#curriculumvitae .timeline:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
border: 4px var(--timelineItemBrdr) solid;
|
||||
/*border-bottom: 4;*/
|
||||
right: 194px;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
#curriculumvitae .timeline:after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#curriculumvitae .timelineItem {
|
||||
border: 2px solid var(--timelineItemBrdr);
|
||||
-webkit-border-radius: 10px;
|
||||
-moz-border-radius: 10px;
|
||||
border-radius: 10px;
|
||||
padding: 0 1rem;
|
||||
width: 50%;
|
||||
position: relative;
|
||||
background-color: var(--primaryHover);
|
||||
}
|
||||
|
||||
#curriculumvitae .timelineItem:before, .timelineItem:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
#curriculumvitae .timelineItem:before{
|
||||
content: '';
|
||||
right: -20px;
|
||||
top: calc(50% - 5px);
|
||||
border-style: solid;
|
||||
border-color: var(--timelineItemBrdr) var(--timelineItemBrdr) transparent transparent;
|
||||
border-width: 20px;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
#curriculumvitae .timelineItem:nth-child(2n) {
|
||||
margin-left: 21em;
|
||||
}
|
||||
|
||||
#curriculumvitae .timelineItem:nth-child(2n):before {
|
||||
right: auto;
|
||||
left: -20px;
|
||||
border-color: transparent transparent var(--timelineItemBrdr) var(--timelineItemBrdr);
|
||||
}
|
||||
|
||||
#curriculumvitae .timelineItem h3 {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#curriculumvitae .timelineItem span {
|
||||
color: hsl(0, 0%, 90%);
|
||||
}
|
||||
|
||||
/**** Media Queries *****/
|
||||
|
||||
@media screen and (max-width: 90em) {
|
||||
|
||||
/****** CV Styles *******/
|
||||
|
||||
section#curriculumvitae .cvGrid {
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
section#curriculumvitae .cvGrid > div {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
section#curriculumvitae .cvGrid > div:first-child {
|
||||
padding-bottom: 2.5em;
|
||||
margin-bottom: 2.5em;
|
||||
border-bottom: 5px #FFFFFF solid;
|
||||
}
|
||||
|
||||
section#curriculumvitae .cvGrid h2 {
|
||||
margin-left: 5em;
|
||||
}
|
||||
|
||||
section#curriculumvitae .cvGrid .timeline {
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 75em) {
|
||||
|
||||
/*** Template Styles ****/
|
||||
|
||||
section#about, section#curriculumvitae h1 {
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
/*** Navigation Styles **/
|
||||
|
||||
/** Default Nav Styles **/
|
||||
|
||||
nav {
|
||||
display: block;
|
||||
height: 50px;
|
||||
@ -380,16 +517,19 @@ section#about div {
|
||||
|
||||
/***** About Styles *****/
|
||||
|
||||
section#about {
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
section#about div {
|
||||
padding: 0.1em 2.5em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 31em) {
|
||||
|
||||
/*** Template Styles ****/
|
||||
|
||||
section#about, section#curriculumvitae h1 {
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
/*** Navigation Styles **/
|
||||
|
||||
header div h1 {
|
||||
@ -399,10 +539,6 @@ section#about div {
|
||||
|
||||
/***** About Styles *****/
|
||||
|
||||
section#about {
|
||||
padding: 0 0.5em;
|
||||
}
|
||||
|
||||
section#about div {
|
||||
padding: 0.1em 1em;
|
||||
}
|
||||
|
@ -26,7 +26,7 @@
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="#about" class="textShadow active"><span><</span>about<span>></span></a></li>
|
||||
<li><a href="#curiculumvitae" class="textShadow"><span><</span>cv<span>></span></a></li>
|
||||
<li><a href="#curriculumvitae" class="textShadow"><span><</span>cv<span>></span></a></li>
|
||||
<li><a href="#projects" class="textShadow"><span><</span>projects<span>></span></a></li>
|
||||
<li><a href="#contact" class="textShadow"><span><</span>contact<span>></span></a></li>
|
||||
<li><a href="#" class="textShadow"><span><</span>blog<span>></span></a></li>
|
||||
@ -52,16 +52,59 @@
|
||||
<a href="other/rohitpaicv.pdf" class="btn btnOutline boxShadowIn boxShadowOut" download>Download CV</a>
|
||||
</div>
|
||||
</section>
|
||||
<section id="curiculumvitae">
|
||||
<section id="curriculumvitae">
|
||||
<h1>curriculum vitae</h1>
|
||||
<div class="cvGrid">
|
||||
<!-- https://codepen.io/keithwyland/pen/wqNqvy -->
|
||||
<div>
|
||||
<h2>Education</h2>
|
||||
<div>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Autem ipsum nobis officia sequi. Beatae hic molestiae quibusdam repellendus vero voluptatem!</div>
|
||||
<div class="timeline">
|
||||
<div class="timelineItem">
|
||||
<h3 class="timelineHeader">Sep 2016 - July 2018</h3>
|
||||
<span>Grade: D*D*D*</span>
|
||||
<p class="timelineText">Chelmsford College - BTEC Level 3 in IT</p>
|
||||
</div>
|
||||
<div class="timelineItem">
|
||||
<h3 class="timelineHeader">Sep 2016 - July 2018</h3>
|
||||
<span>Grade: D*D*D*</span>
|
||||
<p class="timelineText">Chelmsford College - BTEC Level 3 in IT</p>
|
||||
</div>
|
||||
<div class="timelineItem">
|
||||
<h3 class="timelineHeader">Sep 2016 - July 2018</h3>
|
||||
<span>Grade: D*D*D*</span>
|
||||
<p class="timelineText">Chelmsford College - BTEC Level 3 in IT</p>
|
||||
</div>
|
||||
<div class="timelineItem">
|
||||
<h3 class="timelineHeader">Sep 2016 - July 2018</h3>
|
||||
<span>Grade: D*D*D*</span>
|
||||
<p class="timelineText">Chelmsford College - BTEC Level 3 in IT</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h2>Work</h2>
|
||||
<div>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid aperiam atque blanditiis doloribus labore minima odio recusandae tempore. Totam, ut!</div>
|
||||
<div class="timeline">
|
||||
<div class="timelineItem">
|
||||
<h3 class="timelineHeader">Sep 2016 - July 2018</h3>
|
||||
<span>Grade: D*D*D*</span>
|
||||
<p class="timelineText">Chelmsford College - BTEC Level 3 in IT</p>
|
||||
</div>
|
||||
<div class="timelineItem">
|
||||
<h3 class="timelineHeader">Sep 2016 - July 2018</h3>
|
||||
<span>Grade: D*D*D*</span>
|
||||
<p class="timelineText">Chelmsford College - BTEC Level 3 in IT</p>
|
||||
</div>
|
||||
<div class="timelineItem">
|
||||
<h3 class="timelineHeader">Sep 2016 - July 2018</h3>
|
||||
<span>Grade: D*D*D*</span>
|
||||
<p class="timelineText">Chelmsford College - BTEC Level 3 in IT</p>
|
||||
</div>
|
||||
<div class="timelineItem">
|
||||
<h3 class="timelineHeader">Sep 2016 - July 2018</h3>
|
||||
<span>Grade: D*D*D*</span>
|
||||
<p class="timelineText">Chelmsford College - BTEC Level 3 in IT</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -46,39 +46,49 @@ document.addEventListener('DOMContentLoaded', () =>
|
||||
|
||||
// type one text in the typwriter
|
||||
// keeps calling itself until the text is finished
|
||||
function typeWriter(text, i, fnCallback) {
|
||||
function typeWriter(text, i, fnCallback)
|
||||
{
|
||||
// chekc if text isn't finished yet
|
||||
if (i < (text.length)) {
|
||||
if (i < (text.length))
|
||||
{
|
||||
// add next character to h1
|
||||
document.querySelector("header div h1").innerHTML = text.substring(0, i+1) +'<span aria-hidden="true">_</span>';
|
||||
document.querySelector("header div h1").innerHTML = text.substring(0, i + 1) + "<span aria-hidden=\"true\">_</span>";
|
||||
|
||||
// wait for a while and call this function again for next character
|
||||
setTimeout(function() {
|
||||
setTimeout(function ()
|
||||
{
|
||||
typeWriter(text, i + 1, fnCallback)
|
||||
}, 100);
|
||||
}
|
||||
// text finished, call callback if there is a callback function
|
||||
else if (typeof fnCallback == 'function') {
|
||||
else if (typeof fnCallback == "function")
|
||||
{
|
||||
// call callback after timeout
|
||||
setTimeout(fnCallback, 700);
|
||||
}
|
||||
}
|
||||
|
||||
// start a typewriter animation for a text in the dataText array
|
||||
function StartTextAnimation(i) {
|
||||
if (typeof dataText[i] === 'undefined'){
|
||||
setTimeout(function() {
|
||||
function StartTextAnimation(i)
|
||||
{
|
||||
if (typeof dataText[i] === "undefined")
|
||||
{
|
||||
setTimeout(function ()
|
||||
{
|
||||
StartTextAnimation(0);
|
||||
}, 1500);
|
||||
// StartTextAnimation(0);
|
||||
}
|
||||
else if (i < dataText[i].length) {
|
||||
else if (i < dataText[i].length)
|
||||
{
|
||||
// text exists! start typewriter animation
|
||||
typeWriter(dataText[i], 0, function(){
|
||||
typeWriter(dataText[i], 0, function ()
|
||||
{
|
||||
// after callback (and whole text has been animated), start next text
|
||||
setTimeout(StartTextAnimation, 1500, i + 1);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// start the text animation
|
||||
StartTextAnimation(0);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user