-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.html
95 lines (90 loc) · 4.18 KB
/
project.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Project Details</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/uikit@3.6.22/dist/css/uikit.min.css" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/uikit@3.6.22/dist/js/uikit.min.js"></script>
<style>
.link-icon {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.link-icon img {
width: 20px;
height: 20px;
margin-right: 10px;
}
.uk-modal-body {
padding: 20px;
position: relative;
}
.modal-image {
width: 100%;
height: auto;
display: block;
margin-bottom: 15px;
}
</style>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-1G2N3K97HJ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-1G2N3K97HJ');
</script>
</head>
<body>
<div id="project-modal" uk-modal>
<div class="uk-modal-dialog">
<button class="uk-modal-close-default" type="button" uk-close></button>
<div class="uk-modal-body">
<h4 class="uk-modal-title" id="project-title" style="font-size: large;">Project Title</h4>
<img id="project-image" src="#" alt="Project Image" class="modal-image">
<p id="project-status"><strong>Status: </strong><span id="status-text" class="badge-status"></span></p>
<p id="project-tech-stack"><strong>Tech Stack: </strong><span id="tech-stack-text"></span></p>
<div id="project-website-container" class="link-icon">
<p id="delay-message" style="display: none; color: gray; font-style: italic; margin-top: 5px;">The website may take up to 30 seconds to load. Please be patient.</p>
<div class="website-link-container">
<img src="images/web-svgrepo-com.svg" alt="Website Icon">
<a href="#" id="project-website" target="_blank"></a>
</div>
</div>
<div id="project-link-container" class="link-icon">
<img src="images/code-solid.svg" alt="GitHub Icon">
<a href="#" id="project-link" target="_blank"></a>
</div>
<p id="project-description">Project description goes here...</p>
</div>
</div>
</div>
<script>
// Function to open modal and set content
function openProjectModal(title, imageSrc, status, techStack, website, github, description) {
document.getElementById('project-title').textContent = title;
document.getElementById('project-image').src = imageSrc;
document.getElementById('status-text').textContent = status;
document.getElementById('tech-stack-text').textContent = techStack;
document.getElementById('project-website').href = website;
document.getElementById('project-website').textContent = website;
document.getElementById('project-link').href = github;
document.getElementById('project-link').textContent = github;
document.getElementById('project-description').textContent = description;
UIkit.modal('#project-modal').show();
}
openProjectModal(
'Python-DICOM-Processing-And-Segmentation',
'path/to/output.gif',
'Completed',
'Python, SciPy, Pandas, Matplotlib',
'https://shliamin.github.io/Python-DICOM-Processing-And-Segmentation/',
'https://github.com/shliamin/Python-DICOM-Processing-And-Segmentation',
'Python tools for processing and segmenting DICOM files, with a focus on 3D visualization techniques to aid in medical imaging analysis.'
);
</script>
</body>
</html>