Skip to content

Commit

Permalink
add typejs
Browse files Browse the repository at this point in the history
  • Loading branch information
Renstrio24p committed Jul 3, 2023
1 parent 2f7904f commit b8ed32a
Show file tree
Hide file tree
Showing 7 changed files with 160 additions and 27 deletions.
106 changes: 103 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
},
"dependencies": {
"classnames": "^2.3.2",
"mini-css-extract-plugin": "^2.7.6"
"mini-css-extract-plugin": "^2.7.6",
"typed.js": "^2.0.16",
"typewriter-effect": "^2.20.1"
}
}
16 changes: 16 additions & 0 deletions src/components/Home/functions/type.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Typed from "typed.js";

export default function typeJS(){
const typed = new Typed('#type-text', {
strings: [`I'm a Front-End Developer`,
`I'm building React projects.`,
`I'm building Typescript \nand Javascript Projects.`,
`I'm a template creator of React,\n Javascript , typescript using Webpack `
],
typeSpeed: 20,
backSpeed: 5,
smartBackspace: true,
loop: true,
contentType: 'html'
});
}
3 changes: 3 additions & 0 deletions src/components/rightbar/rightlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export default function RightbarList(RList){
<li>
<p>item 3</p>
</li>
<li>
<p>item 4</p>
</li>
</ul>
`

Expand Down
2 changes: 1 addition & 1 deletion src/components/sidebar/functions/donut.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export default function DonutFunctions(){
}

animateDonutChart('donut-segment', 'donut-text', 75);
animateDonutChart('donut-segment2', 'donut-text2', 60);
animateDonutChart('donut-segment2', 'donut-text2', 95);

}
44 changes: 22 additions & 22 deletions src/pages/Home.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import typeJS from "../components/Home/functions/type";
import Home_Render from "../render/Home/home.render";
import { style_main } from "../start";

export default function HomePage(Home) {
Home.innerHTML = `
<div class=${style_main('home')}>
<div class=${style_main('overlay')}>
<div class=${style_main('profile-home')}>
<h1>Design something Amazing with React!!</h1>
<div class=${style_main('type-line')}>
<span class=${style_main('type-code')} id="type-start">&lt;<p class=${style_main('types')}>type</p>&gt;</span>
<span id="type-text"></span>
<span class=${style_main('type-code')} id="type-end">&lt;<p class=${style_main('types')}>/type</p>&gt;</span>
</div>
<div id='Hire-me'></div>
</div>
<div id='repo'></div>
<div id='services'></div>
<footer id='footer'></footer>
</div>
</div>
`;

Home.innerHTML = (
`
<div class=${style_main('home')}>
<div class=${style_main('overlay')}>
<div class=${style_main('profile-home')}>
<h1>Design something Amazing with React!!</h1>
<span>&lt;type&gt;</span>
DOM
<span>&lt;/type&gt;</span>
<div id='Hire-me'></div>
</div>
<div id='repo'></div>
<div id='services'></div>
<footer id='footer'></footer>
</div>
</div>
`
)

Home_Render();

}
Home_Render();
typeJS();
}
12 changes: 12 additions & 0 deletions src/sass/modules/app.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@
color: white;
}

.types {
color: cyan
}

.type-line,.type-code {
display: flex;
}

.type-line {
width: 60%;
}

.home {
width: 100%;
background-image: url("../../images/background.webp");
Expand Down

0 comments on commit b8ed32a

Please sign in to comment.