-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscript.js
More file actions
152 lines (134 loc) · 7.23 KB
/
script.js
File metadata and controls
152 lines (134 loc) · 7.23 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
const projects = [
{
name: "RediSafe",
description: "Modern app for monitoring your health data offline and prevent contracting COVID.",
image: "https://i.imgur.com/RR2rEan.png",
link: "https://www.behance.net/gallery/119608771/Redisafe"
},
{
name: "Sahay",
description: "Sahay allows hospitals to work together and share resources during shortages.",
image: "https://i.imgur.com/9x5I6Z6.png",
link: "https://www.behance.net/gallery/118691091/Sahay-Consolidating-the-Healthcare-system?mv=email"
},
{
name: "Marketune",
description: "Improves customer call-retention by replacing annoying on-hold music with effective tunes/ads made by verified content creators.",
image: "https://i.imgur.com/kPCjLjK.png",
link: "https://www.behance.net/gallery/127690931/Marketune-Pitch-Deck-UIUX"
},
{
name: "SurveyDonkey",
description: "A decentralized platform that increases your survey reach and helps diversify responses.",
image: "https://i.imgur.com/YWNf6cz.png",
link: "https://devpost.com/software/surveydonkey"
},
{
name: "MerryDining",
description: "Make reservations at restaurants/bars matching your dietary restrictions, and connect with foodies who have similar taste!.",
image: "https://i.imgur.com/yfXq4aY.png",
link: "https://devpost.com/software/merrydining"
},
{
name: "Harry Potter Redesign",
description: "Complete revamp of novel book covers, page layouts, new posters, website UI/UX and a trailer video!",
image: "",
link: "https://www.behance.net/gallery/124344065/Harry-Potter-Series-Design-Revamp"
},
{
name: "Hlo+",
description: "Smart hyperlocalisation and crowd control system using 5G. UI/UX and workflow.",
image:"https://i.imgur.com/RR2rEan.png",
link: "https://www.behance.net/gallery/119577627/Hlo-UIUX"
},
{
name: "NFTZ",
description: "Demystifying NFT creation and trading for the layman.",
image: "https://challengepost-s3-challengepost.netdna-ssl.com/photos/production/software_photos/001/505/759/datas/medium.png",
link: "https://nfteasy.us/"
},
{
name: "Potus",
description: "Concept Kanye West Album; Complete branding and app UI/UX Design",
image: "https://i.imgur.com/gWxQiQB.png",
link: "https://www.behance.net/gallery/108134777/POTUS-Concept-Kanye-West-Album-and-UIUX"
},
{
name: "SayLore",
description: "Concept fashion brand based on Saylor Twift. Branding, shop 3D models and app UI/UX . ",
image: "https://i.imgur.com/9x5I6Z6.png",
link: "https://www.behance.net/gallery/90181055/SayLor-Beauty-Products"
},
{
name: "Cryptocracy",
description: "International 48-hour Cryptic Hunt. Complete branding and website/platform UI",
image: "https://i.imgur.com/Rw19KGO.png",
link: "https://cryptichunt.com"
},
{
name: "CORE",
description: "Website for CORE, the computers society of Delhi Public School, Dwarka",
image: "https://i.imgur.com/Ay6yWtA.png",
link: "https://hailcore.co"
}
];
document.querySelector('.container').innerHTML=`${
projects.map(project => {
if (project.name==="Harry Potter Redesign"){
return (
`
<a target="__blank" href="${project.link}">
<div class="card" id="hpbox" style="background-image:url(./projects/hpredes/cover.png) ">
<div class="text" id="${project.name}text">
<h1> ${project.name} </h1>
<p> ${project.description} </p>
</div>
</div> </a>`
)
}
else{
return (`
<a target="__blank" href="${project.link}">
<div class="card" id="${project.name}box" style="background-image:url(./projects/${project.name.toLowerCase()}/cover.png) ">
<div class="text" id="${project.name}text">
<h1> ${project.name} </h1>
<p> ${project.description} </p>
</div>
</div> </a>`)
}
}).join('')
}`;
function navopen(){
document.querySelector('.navmob').style.display = 'block'
}
function navclose(){
document.querySelector('.navmob').style.display = 'none'
}
document.querySelector('#bars').addEventListener('click', navopen)
document.querySelector('#cross').addEventListener('click', navclose)
document.querySelectorAll('.navel').forEach(
navel=>{
navel.addEventListener('click', navclose)
}
)
const expand = document.querySelector(".expand")
// expand.onmouseover = ()=>{
// document.querySelector("#expand-icon").style.transform = "translateY(10px)"
// }
// expand.onmouseout = ()=>{
// document.querySelector("#expand-icon").style.transform = "translateY(-10px)"
// }
document.getElementsByTagName("form")[0].setAttribute("action", "https://formspree.io/f/xvodrwln")
const skills = [
{
skill: "bruh",
desc: "5 stars"
}
]
const devpostIcon = document.querySelector('.devpost')
devpostIcon.onmouseover(
devpostIcon.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="24" height="24" viewBox="0 0 226 226" style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,226v-226h226v226z" fill="none"></path><g fill="#ff6b11"><path d="M56.5,18.83333l-50.61458,94.16667l50.61458,94.16667h113l51.38704,-94.16667l-51.38704,-94.16667zM75.33333,65.91667l48.37077,0.07357c12.58007,1.76563 36.37923,13.79394 36.37923,47.00976c0,33.21582 -23.79916,45.24415 -36.37923,46.97298l-0.66211,0.11035h-47.70866zM94.16667,84.75v56.5h27.44076c3.45768,-0.6989 19.64257,-5.2233 19.64257,-28.25c0,-22.91634 -15.96419,-27.51432 -19.67936,-28.25z"></path></g></g></svg>'
);
devpostIcon.onmouseout(
devpostIcon.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="24" height="24" viewBox="0 0 226 226" style="transform: translateY(5px); fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,226v-226h226v226z" fill="none"></path><g fill="#ffffff"><path d="M56.5,18.83333l-50.61458,94.16667l50.61458,94.16667h113l51.38704,-94.16667l-51.38704,-94.16667zM75.33333,65.91667l48.37077,0.07357c12.58007,1.76563 36.37923,13.79394 36.37923,47.00976c0,33.21582 -23.79916,45.24415 -36.37923,46.97298l-0.66211,0.11035h-47.70866zM94.16667,84.75v56.5h27.44076c3.45768,-0.6989 19.64257,-5.2233 19.64257,-28.25c0,-22.91634 -15.96419,-27.51432 -19.67936,-28.25z"></path></g></g></svg>'
);