|
1 | 1 | import './styles.css'
|
2 | 2 | import cdIcon from "/img/common/cd_icon_green.png"
|
3 |
| -import githubIcon from './assets/github-icon.svg' |
4 |
| -import linkedIcon from './assets/linkedin-icon.svg' |
5 |
| -import instagramIcon from './assets/instagram-icon.svg' |
| 3 | + |
6 | 4 | import {EventBus} from "../../event-bus";
|
7 | 5 | import {Events} from "../../consts/events";
|
8 | 6 | import {handlers} from "../../consts/handlers";
|
9 | 7 |
|
10 |
| -const menuTitle: string = "CD-BASH"; |
11 |
| - |
12 |
| -const githubProfile: string = "https://github.com/CD-BASH" |
13 |
| -const linkedinProfile: string = "https://www.linkedin.com/in/charlesdouc/" |
14 |
| -const instagramProfile: string = "https://www.instagram.com/charlesdouc/" |
15 |
| -const footerCopyrights: string = "© 2025 Charles Doucet - All Rights Reserved"; |
16 |
| - |
17 |
| - |
18 | 8 | const EVENT_BUS = new EventBus<Events>();
|
19 | 9 | EVENT_BUS.subscribe('button_test', handlers.button_test);
|
20 | 10 |
|
21 |
| -type SocialLink = [ |
22 |
| - socialName: string, |
23 |
| - path: string, |
24 |
| - image: string, |
25 |
| -] |
26 | 11 |
|
27 |
| -const FOO_SOCIALS = [ |
28 |
| - ["Github", githubProfile, githubIcon], |
29 |
| - ["LinkedIn", linkedinProfile, linkedIcon], |
30 |
| - ["Instagram", instagramProfile, instagramIcon] |
31 |
| -] |
32 | 12 |
|
33 | 13 | export function VerticalNav() {
|
34 | 14 | const menuBox = document.createElement("div");
|
@@ -93,36 +73,3 @@ function testButtons() {
|
93 | 73 | }
|
94 | 74 |
|
95 | 75 |
|
96 |
| -function navFooter() { |
97 |
| - const footerContainer = document.createElement("div"); |
98 |
| - const socials = document.createElement("ul"); |
99 |
| - const copyrights = document.createElement("p"); |
100 |
| - |
101 |
| - footerContainer.className = "nav-footer"; |
102 |
| - socials.className = "socials"; |
103 |
| - copyrights.className = "copyrights"; |
104 |
| - copyrights.textContent = footerCopyrights; |
105 |
| - |
106 |
| - footerContainer.appendChild(socials); |
107 |
| - footerContainer.appendChild(copyrights); |
108 |
| - |
109 |
| - FOO_SOCIALS.forEach(social => { |
110 |
| - const [name, path, image] = social; |
111 |
| - const socialLink = document.createElement("li"); |
112 |
| - const link = document.createElement("a"); |
113 |
| - const icon = document.createElement("img"); |
114 |
| - |
115 |
| - link.href = path; |
116 |
| - link.target = "_blank"; |
117 |
| - icon.src = image; |
118 |
| - |
119 |
| - socials.appendChild(socialLink); |
120 |
| - socialLink.appendChild(link); |
121 |
| - link.appendChild(icon); |
122 |
| - }) |
123 |
| - |
124 |
| - return footerContainer; |
125 |
| - |
126 |
| -} |
127 |
| - |
128 |
| - |
0 commit comments