-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinks.html
More file actions
171 lines (161 loc) · 9.49 KB
/
links.html
File metadata and controls
171 lines (161 loc) · 9.49 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html class="dark" lang="en">
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<title>Saidel López</title>
<link rel="icon" href="favicon.ico">
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet" />
<link href="https://fonts.googleapis.com" rel="preconnect" />
<link crossorigin="" href="https://fonts.gstatic.com" rel="preconnect" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" rel="stylesheet" />
<script>
tailwind.config = {
darkMode: "class",
theme: {
extend: {
colors: {
"primary": "#007BFF",
"background-light": "#F8F9FA",
"background-dark": "#101922",
},
fontFamily: {
"display": ["Inter", "sans-serif"]
},
borderRadius: {
"DEFAULT": "0.25rem",
"lg": "0.5rem",
"xl": "0.75rem",
"full": "9999px"
},
},
},
}
</script>
<style>
.material-symbols-outlined {
font-variation-settings:
'FILL' 0,
'wght' 400,
'GRAD' 0,
'opsz' 24
}
</style>
</head>
<body class="bg-background-light dark:bg-background-dark font-display">
<div class="relative flex h-auto min-h-screen w-full flex-col group/design-root overflow-x-hidden">
<div class="layout-container flex h-full grow flex-col">
<div class="px-4 md:px-10 lg:px-40 flex flex-1 justify-center py-5">
<div class="layout-content-container flex flex-col max-w-[960px] flex-1">
<header
class="flex items-center justify-between whitespace-nowrap border-b border-solid border-gray-200 dark:border-b-[#233648] px-4 sm:px-10 py-3">
<div class="flex items-center gap-4 text-gray-800 dark:text-white">
<div class="size-6 text-primary">
<svg fill="none" viewbox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">
<path clip-rule="evenodd" d="M24 4H6V17.3333V30.6667H24V44H42V30.6667V17.3333H24V4Z"
fill="currentColor" fill-rule="evenodd"></path>
</svg>
</div>
<h2
class="text-gray-800 dark:text-white text-lg font-bold leading-tight tracking-[-0.015em]">
<a href=".">Saidel López</a>
</h2>
</div>
<div class="hidden sm:flex flex-1 justify-end gap-8">
<div class="flex items-center gap-9">
<a class="text-gray-600 dark:text-gray-300 hover:text-primary dark:hover:text-primary text-sm font-medium leading-normal"
href=".">Experience</a>
<a class="text-primary dark:text-primary text-sm font-medium leading-normal pointer-events-none text-gray-400"
+ href="#" aria-disabled="true" tabindex="-1" role="link">Links</a>
<a class="text-gray-600 dark:text-gray-300 hover:text-primary dark:hover:text-primary text-sm font-medium leading-normal"
href="projects.html">Projects</a>
<a class="text-gray-600 dark:text-gray-300 hover:text-primary dark:hover:text-primary text-sm font-medium leading-normal"
href="publications.html">Publications</a>
<a class="text-gray-600 dark:text-gray-300 hover:text-primary dark:hover:text-primary text-sm font-medium leading-normal"
href="achievements.html">Achievements</a>
</div>
</div>
</header>
<main class="mt-8 px-4 sm:px-6">
<h1 class="text-2xl sm:text-3xl font-bold text-gray-800 dark:text-white mb-8">Links</h1>
<div class="space-y-12" id="space-y-12">
</div>
</main>
<footer
class="flex flex-col gap-6 px-5 py-10 text-center @container border-t dark:border-t-[#233648] border-t-gray-200 mt-10">
<div
class="flex flex-wrap items-center justify-center gap-6 @[480px]:flex-row @[480px]:justify-around">
<a class="text-gray-500 dark:text-[#92adc9] text-base font-normal leading-normal min-w-40"
href=".">Experience</a>
<a class="text-gray-500 dark:text-[#92adc9] text-base font-normal leading-normal min-w-40"
href="projects.html">Projects</a>
<a class="text-gray-500 dark:text-[#92adc9] text-base font-normal leading-normal min-w-40"
href="publications.html">Publications</a>
<a class="text-gray-500 dark:text-[#92adc9] text-base font-normal leading-normal min-w-40"
href="achievements.html">Achievements</a>
</div>
<div class="flex flex-wrap justify-center gap-4">
<a title="Medium" href="https://medium.com/@saishaddai" target="_blank">
<span class="material-symbols-outlined text-gray-500 dark:text-[#92adc9]">article</span>
</a>
<a title="LinkedIn" href="https://www.linkedin.com/in/saidel-lopez/" target="_blank">
<span class="material-symbols-outlined text-gray-500 dark:text-[#92adc9]">link</span>
</a>
<a title="GitHub" href="https://github.com/saishaddai" target="_blank">
<span class="material-symbols-outlined text-gray-500 dark:text-[#92adc9]">code</span>
</a>
</div>
<p class="text-gray-500 dark:text-[#92adc9] text-sm font-normal leading-normal">© 2026 Saidel
López</p>
</footer>
</div>
</div>
</div>
</div>
<script>
fetch('../data/links.json')
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok');
}
return response.json(); // Parse the JSON from the response
})
.then(items => {
// Get the container element
const container = document.getElementById('space-y-12');
// Iterate through the array and create HTML elements for each item
items.forEach((item, index) => {
// Create a wrapper div for each item
const wrapperDiv = document.createElement('div');
wrapperDiv.className = 'flex flex-col sm:flex-row gap-4 p-6 rounded-lg hover:bg-white dark:hover:bg-gray-800/20 transition-all duration-300';
// inside wrapperDiv, create a new div for the timeline with class flex-shrink-0
const timelineDiv = document.createElement('div');
timelineDiv.className = 'flex-shrink-0';
timelineDiv.innerHTML = `
<span class="material-symbols-outlined text-gray-500 dark:text-[#92adc9]">${item.type}</span>
`;
wrapperDiv.appendChild(timelineDiv);
// Create the main content div that contains title, company link, and description
const contentDiv = document.createElement('div');
contentDiv.className = 'flex-1';
contentDiv.innerHTML = `
<h3 class="text-lg font-semibold text-gray-800 dark:text-white">${item.name}</h3>
<a class="inline-flex items-center gap-2 text-primary hover:underline" href="${item.url}" target="_blank">
${item.go_to}
<span class="material-symbols-outlined text-sm">open_in_new</span>
</a>
<p class="mt-2 text-gray-600 dark:text-gray-300 text-base leading-relaxed">${item.description}</p>
`;
wrapperDiv.appendChild(contentDiv);
container.appendChild(wrapperDiv);
});
})
.catch(error => {
console.error('There was a problem loading the JSON file:', error);
// You can add a user-friendly error message here, e.g., display in the container
document.getElementById('itemsContainer').innerHTML = '<p>Error loading data. Please check the file.</p>';
});
</script>
</body>
</html>