diff --git a/scripts/links.js b/scripts/links.js deleted file mode 100644 index 22e4286..0000000 --- a/scripts/links.js +++ /dev/null @@ -1,186 +0,0 @@ -const username = 'epicman25'; -const linkList = document.querySelector('.link-list'); -const linksSection = document.querySelector('.links'); -const filterInput = document.querySelector('.filter-links'); - -const buildIcon = (link) => { - return ` - - `; -}; - -const buildUrl = (link) => { - if (link.url.includes('http')) { - return link.url; - } - if (link.url.includes('mailto')) { - return link.url; - } - return 'https://' + link.url + username; -}; - -const displayLinks = (links) => { - filterInput.classList.remove('hide'); - for (const link of links) { - let listItem = document.createElement('li'); - listItem.classList.add('link'); - listItem.innerHTML = ` - -
-

- ${buildIcon(link)} - ${link.name} -

-

${link.description}

-
-
`; - linkList.append(listItem); - } -}; - -// dynamic search -filterInput.addEventListener('input', (e) => { - const search = e.target.value; - const links = document.querySelectorAll('.link'); - const searchLowerText = search.toLowerCase(); - - for (const link of links) { - const lowerText = link.innerText.toLowerCase(); - if (lowerText.includes(searchLowerText)) { - link.classList.remove('hide'); - } else { - link.classList.add('hide'); - } - } -}); - -const links = [ - { - name: 'Mail', - description: 'Want to talk? Write me a mail', - url: 'mailto:tejeshwarreddydevalapalli@gmail.com', - icon: 'fa-brands fa-gmail', - color: '#0088cc' - }, - { - name: 'GitHub', - description: 'My favourite place :)', - url: 'github.com/epicman25', - icon: 'fa-brands fa-github', - color: '#fff' - }, - { - name: 'Resume', - description: 'What I have done so far', - url: 'https://github.com/epicman25/epicman25.github.io/blob/main/TejeshwarReddy_Resume.pdf', - icon: 'fa-brands fa-wpforms', - color: '#008abd' - }, - { - name: 'Twitter', - description: 'Tech, rants, philosophy, memes', - url: 'twitter.com/ep1cman25', - icon: 'fa-brands fa-twitter', - color: '#1da1f2' - }, - { - name: 'YouTube', - description: 'I make tooling videos for devs', - url: 'youtube.com/c/', - icon: 'fa-brands fa-youtube', - color: '#ff0000' - }, - { - name: 'LinkedIn', - description: 'Career updates and thoughts', - url: 'linkedin.com/in/', - icon: 'fa-brands fa-linkedin', - color: '#0077B5' - }, - { - name: 'Blog', - description: 'About things I build and learn', - url: 'https://2kabhishek.github.io/blog', - icon: 'fa-brands fa-blogger', - color: '#f57c00' - }, - { - name: 'Portfolio', - description: '/home/2kabhishek', - url: 'https://2kabhishek.github.io', - icon: 'fa-brands fa-fort-awesome', - color: '#1688f0' - }, - { - name: 'Projects', - description: 'All my projects!', - url: 'https://2kabhishek.github.io/projects', - icon: 'fa-brands fa-product-hunt', - color: '#da552f' - }, - { - name: 'Instagram', - description: 'Glimpse of my life and journey', - url: 'https://instagram.com/iam2kabhishek', - icon: 'fa-brands fa-instagram', - color: '#e1306c' - }, - { - name: 'Reddit', - description: 'Lurk mostly, sometimes I post', - url: 'reddit.com/user/', - icon: 'fa-brands fa-reddit', - color: '#ff4500' - }, - { - name: 'Dev', - description: 'Where I connect with Devs', - url: 'dev.to/', - icon: 'fa-brands fa-dev', - color: '#ccc' - }, - { - name: 'HackerRank', - description: 'For problem solving skills', - url: 'hackerrank.com/', - icon: 'fa-brands fa-hackerrank', - color: '#1ba94c' - }, - { - name: 'Exercism', - description: 'For learning new languages', - url: 'exercism.org/profiles/', - icon: 'fa-brands fa-font-awesome', - color: '#1b51d2' - }, - { - name: 'freeCodeCamp', - description: 'Where I started web dev', - url: 'freecodecamp.org/', - icon: 'fa-brands fa-free-code-camp', - color: '#006400' - }, - { - name: 'Twitch', - description: 'I stream my side projects!', - url: 'twitch.tv/', - icon: 'fa-brands fa-twitch', - color: '#6441a5' - }, - { - name: 'Leetcode', - description: 'More problem solving', - url: 'leetcode.com/', - icon: 'fa-brands fa-black-tie', - color: '#e08b32' - }, - { - name: 'Codepen', - description: 'For trying out design ideas', - url: 'codepen.io/', - icon: 'fa-brands fa-codepen', - color: '#888' - } -]; - -displayLinks(links); \ No newline at end of file diff --git a/scripts/projects.js b/scripts/projects.js index a8dc677..c6bc21b 100644 --- a/scripts/projects.js +++ b/scripts/projects.js @@ -248,7 +248,7 @@ const links = [ { name: 'Resume', description: 'What I have done so far', - url: 'https://github.com/2kabhishek/resume/blob/main/resume.pdf', + url: 'https://github.com/epicman25/epicman25.github.io/blob/main/Tejeshwar_Reddy.pdf', icon: 'fa-brands fa-wpforms', color: '#008abd' },