-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
117 lines (108 loc) · 3.8 KB
/
Copy pathscript.js
File metadata and controls
117 lines (108 loc) · 3.8 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
const cards = [
{
image: 'assets/images/color.png',
title: 'Random Color',
description: 'A random color generator',
projLink: 'RandomColor/index.html',
codeLink: 'https://github.com/ThisIsSahaj/Js-Projects/tree/main/RandomColor',
},
{
image: 'assets/images/texttospeech.png',
title: 'Text to Speech Converter',
description: 'Convert any text to Speech, with a range of voices to select from',
projLink: 'TextToSpeech/index.html',
codeLink: 'https://github.com/ThisIsSahaj/Js-Projects/tree/main/TextToSpeech',
},
{
image: 'assets/images/github.png',
title: 'Github Search',
description: 'Search for a github profile',
projLink: 'GitHubSearch/index.html',
codeLink: 'https://github.com/ThisIsSahaj/Js-Projects/tree/main/GitHubSearch',
},
{
image: 'assets/images/calculator.png',
title: 'Basic Calculator',
description: 'A simple calculator',
projLink: 'Calculator/index.html',
codeLink: 'https://github.com/ThisIsSahaj/Js-Projects/tree/main/Calculator',
},
{
image: 'assets/images/tictactoe.png',
title: 'Tic Tac Toe',
description: 'An easy Tic Tac Toe game',
projLink: 'TicTacToe/index.html',
codeLink: 'https://github.com/ThisIsSahaj/Js-Projects/tree/main/TicTacToe',
},
{
image: 'assets/images/qrcode.png',
title: 'QR Code Generator',
description: 'Generate a QR Code for a Text or URL',
projLink: 'QRcodeGen/index.html',
codeLink: 'https://github.com/ThisIsSahaj/Js-Projects/tree/main/QRcodeGen',
},
{
image: 'assets/images/todolist.png',
title: 'To Do List',
description: 'Create, Delete, Refresh',
projLink: 'ToDoList/index.html',
codeLink: 'https://github.com/ThisIsSahaj/Js-Projects/tree/main/ToDoList',
},
{
image: 'assets/images/password.png',
title: 'Strong Password Generator',
description: 'Generate a strong random password',
projLink: 'PasswordGenerator/index.html',
codeLink: 'https://github.com/ThisIsSahaj/Js-Projects/tree/main/PasswordGenerator',
},
{
image: 'assets/images/urlshortner.png',
title: 'URL Shortner',
description: 'Shorten your long URL',
projLink: 'URLshortner/index.html',
codeLink: 'https://github.com/ThisIsSahaj/Js-Projects/tree/main/URLshortner',
},
{
image: 'assets/images/weather.png',
title: 'Weather App',
description: 'Get LIVE weather data of a city',
projLink: 'WeatherAPp/index.html',
codeLink: 'https://github.com/ThisIsSahaj/Js-Projects/tree/main/WeatherAPp',
},
]
cards.forEach( (curEle) => {
const container = document.querySelector('.container');
const htmlData =
`
<div class="card">
<div class='main'>
<div class='projImage'>
<a href="${curEle.projLink}" target="_blank">
<img src="${curEle.image}" alt="project image" />
</a>
</div>
<h2>${curEle.title}</h2>
<p class='description'>${curEle.description}</p>
<div class='projInfo'>
<a href="${curEle.projLink}" target="_blank">
<div class="viewProj">
<p><i class="fa-solid fa-eye"></i> View</p>
</div>
</a>
<a href="${curEle.codeLink}" target="_blank">
<div class="projCode">
<p><i class="fa-solid fa-code"></i> Code</p>
</div>
</a>
</div>
<hr />
<a href="https://github.com/ThisIsSahaj">
<div class='creator'>
<p><ins>Created by</ins> thisissahaj</p>
</div>
</a>
</div>
</div>
`
container.insertAdjacentHTML('afterbegin', htmlData);
});