Skip to content

Commit

Permalink
feat: MSG 추가 중
Browse files Browse the repository at this point in the history
  • Loading branch information
Sniij committed Feb 6, 2025
1 parent 8a57433 commit 6784c8a
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 4 deletions.
16 changes: 13 additions & 3 deletions deploy/assets/js/contentMD.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$(document).ready(function() {

var markdownFiles = ["content/introduce.md","content/dowajoyak.md", "content/portfolio.md", "content/petching.md", "content/eco.md", "content/blog.md"];
var targetElements = ["#mark-introduce","#modal-dowajoyak", "#modal-portfolio", "#modal-petching", "#modal-parking", "#modal-blog"];
var markdownFiles = ["content/introduce.md","content/dowajoyak.md", "content/portfolio.md", "content/petching.md", "content/eco.md", "content/blog.md", "content/msg.md"];
var targetElements = ["#mark-introduce","#modal-dowajoyak", "#modal-portfolio", "#modal-petching", "#modal-parking", "#modal-blog", "#modal-msg"];

for (var i = 0; i < markdownFiles.length; i++) {
$.ajax({
Expand Down Expand Up @@ -46,6 +46,11 @@ $(document).ready(function() {
const modalBlog = document.getElementById("modal_blog");
const bootstrapModal = new bootstrap.Modal(modalBlog);
bootstrapModal.show();
}
else if(window.location.hash === "#modal_msg"){
const modalMsg = document.getElementById("modal_msg");
const bootstrapModal = new bootstrap.Modal(modalMsg);
bootstrapModal.show();
}

document.getElementById("modalPortfolio").addEventListener("click", function(){
Expand All @@ -63,7 +68,9 @@ $(document).ready(function() {
document.getElementById("modalBlog").addEventListener("click", function(){
window.location.hash = "#modal_blog";
});

document.getElementById("modalMsg").addEventListener("click", function(){
window.location.hash = "#modal_msg";
});

document.getElementById("modalDowajoyakClose").addEventListener("click", function () {
history.replaceState(null,null,'generic.html');
Expand All @@ -80,4 +87,7 @@ $(document).ready(function() {
document.getElementById("modalBlogClose").addEventListener("click", function () {
history.replaceState(null,null,'generic.html');
});
document.getElementById("modalMsgClose").addEventListener("click", function () {
history.replaceState(null,null,'generic.html');
});
});
2 changes: 1 addition & 1 deletion deploy/assets/js/visitors.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let url = 'https://server.portfolio.chomanki.com/visitors/portfolio-ga4';

let today = new Date();
let dd = String(today.getDate()).padStart(2, '0');
let dd = String(today.getDate() - 2).padStart(2, '0');
let mm = String(today.getMonth() + 1).padStart(2, '0');
let yyyy = today.getFullYear();

Expand Down
44 changes: 44 additions & 0 deletions deploy/content/msg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<h1 class="modal-title fs-5" id="exampleModalLabel" style="text-align: left; font-size: 2rem; padding: 1rem 0 0 1rem" >

Micro Services Golang
<a href="https://github.com/Sniij/mircro-services-golang" target="_blank" class="icon brands alt fa-github" ><span class="label">GitHub</span></a>

</h1>

<hr style="margin:0px 0px 1rem 0px;">
<div id="modal_inContent" style="position: inherit; text-align: left; font-family: 'KBO-Dia-Gothic_bold';">
<h3>🔗 URLs</h3>
<p>
Github: <a href="https://github.com/Sniij/mircro-services-golang" target="_blank">https://github.com/Sniij/mircro-services-golang</a><br/>
</p>
<hr style="margin: 1rem 0px 1rem 0px;">
<h3>🛒 Skills</h3>
<p style="font-family: 'Pretendard-Regular';">
skills..
</p>
<hr style="margin: 1rem 0px 1rem 0px;">
<h3>📚 Summary</h3>
<p style="font-family: 'Pretendard-Regular';">
summary...
</p>
<hr style="margin: 1rem 0px 1rem 0px;">
<h3>⛓ Architecture</h3>
<p>
- Full: <br/>
<a href="images/bg.png" target="_blank" class="image main" style="width: 70%;">
<img src="images/bg.png" alt="bg.png"/>
</a>
</p>
<hr style="margin: 1rem 0px 1rem 0px;">
<h3>📑 Meaning</h3>
<p style="font-family: 'Pretendard-Regular';">
meaning....
</p>
<hr style="margin: 1rem 0px 1rem 0px;">
<h3>👨‍👨‍👦‍👦 Member</h3>
<p style="font-family: 'Pretendard-Regular'; padding-left: 10px;">
Full: <a href="https://github.com/Sniij" target="_blank" >조만기</a><br />
</p>
<hr style="margin: 1rem 0px 5rem 0px;">
</div>
</div>
29 changes: 29 additions & 0 deletions deploy/generic.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,35 @@
<!-- Main -->
<div id="main">

<!--Start MSG-->
<article class="post featured">
<header class="major">
<span class="date">January, 2025</span>
<h2><a>MSG</a></h2>
<p style="font-family: 'KBO-Dia-Gothic_bold'; font-style: normal;">MSA Project 입니다.</p>
</header>
<a target="_blank" class="image main">
<img src="images/blog_img/blog_main.png" alt="blog_main.png" /></a>
<!-- Button trigger modal -->
<button type="button" class="button large" id="modalMsg" data-bs-toggle="modal" data-bs-target="#modal_msg">
Full Story
</button>


<!-- Modal MSG-->
<div class="modal fade" id="modal_msg" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true" style="background-color: rgb(255, 255, 255); height: 100%;">
<div class="modal-dialog modal-fullscreen-sm-down">
<div class="modal-content">
<div id="modal-msg"></div>
<div class="modal-footer" style="position: fixed; padding-top: 100px; bottom: 15px; width: 100%; text-align: center;">
<button type="button" class="btn btn-secondary" id="modalMsgClose" data-bs-dismiss="modal" style="background-color: white;">Close</button></div>
</div>
</div>
<!--End Modal-->

</article>
<!--End MSG-->

<!--Start BLOG-->
<article class="post featured">
<header class="major">
Expand Down

0 comments on commit 6784c8a

Please sign in to comment.