diff options
| author | Mhykol <mchaeldonald62@pm.me> | 2024-05-27 10:47:21 -0400 |
|---|---|---|
| committer | Mhykol <mchaeldonald62@pm.me> | 2024-05-27 10:47:21 -0400 |
| commit | a13a1045dca2fa2c70617d853b7bd08c34c3cffe (patch) | |
| tree | 2ae7e0cdc60f3b8adf576f6ae560870e54665bfe | |
| parent | 2bbec83695a4d1df6d0bb8455146af996ac00293 (diff) | |
Stop tracking scripts directory
| -rw-r--r-- | scripts/about.js | 20 | ||||
| -rw-r--r-- | scripts/blog.js | 61 | ||||
| -rw-r--r-- | scripts/contact.js | 25 | ||||
| -rw-r--r-- | scripts/index.js | 99 | ||||
| -rw-r--r-- | scripts/shop.js | 51 |
5 files changed, 0 insertions, 256 deletions
diff --git a/scripts/about.js b/scripts/about.js deleted file mode 100644 index 0f34fe5..0000000 --- a/scripts/about.js +++ /dev/null @@ -1,20 +0,0 @@ -class About { - constructor() {} - - Main() { - const data = ` - <section id='about'> - <div> - <h1>About</h1> - <img src='/img/154553384264124594.avif'/> - <p>Hi there! I'm Michael, an IT enthusiast who loves learning and is passionate about building a career in this field. As an "Architect" (INTJ-T personality type), I enjoy problem-solving and coming up with innovative solutions. I've had hands-on experience in web development and tech consulting, where I've worked on various projects and helped clients with their IT needs. I'm always eager to explore new technologies and stay updated on industry trends.</p> - - <p>In the next five years, I see myself growing in the IT industry, possibly running my own business, and contributing to its development with fresh ideas. My goal is to build a meaningful and impactful career in IT while inspiring others to do the same!</p> - </div> - </section> - ` - return data - } -} - -module.exports = () => {return new About()} diff --git a/scripts/blog.js b/scripts/blog.js deleted file mode 100644 index 0d88bcf..0000000 --- a/scripts/blog.js +++ /dev/null @@ -1,61 +0,0 @@ -const blog = require('../source/blog') - -class Blog { - constructor() {} - - async Main() { - return blog().ReadBlogs().then(output => { - const data = { - start: ` - <section id='blog'> - <div> - <h1>My Blog</h1> - `, - body: '', - end: ` - </div> - </section> - ` - } - - const text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." - - output.forEach((value, key) => { - data.body += ` - <div class='bloglistitem' id='blogItem'> - <h3>${value.title}</h3> - <p class='date'>Date: ${(value.date.getMonth() + 1).toString().padStart(2, '0')}/${(value.date.getDate()).toString().padStart(2, '0')}/${value.date.getFullYear()}</p> - <p>${value.short}</p> - <button class='bloglistbutton' value='${key}'>Read more</button> - </div>` - }) - - const result = data.start + data.body + data.end - return result - }) - } - - async Item(x) { - const data = { - start: ` - <section id='blogitem'> - <div class='fullscreenImg'> - </div> - <div class='content'> - `, - body: '', - end: ` - </div> - </section> - ` - } - return blog().ReadBlogs().then(output => { - if (x) { - data.body = output.get(x).body - return data.start + data.body + data.end - } - }) - } -} - -module.exports = () => {return new Blog()} diff --git a/scripts/contact.js b/scripts/contact.js deleted file mode 100644 index e33ac78..0000000 --- a/scripts/contact.js +++ /dev/null @@ -1,25 +0,0 @@ -class Contact { - constructor() {} - - Main() { - const data = { - contact: ` - <section id='contact'> - <h1>Contact</h1> - <div class='form'> - <p>Full Name:</p> - <input type='text' name='fullname'/> - <p>Email:</p> - <input type='email' name='email'/> - <p>Message:</p> - <textarea name='message'></textarea><br> - <button id='contact-submit'>Submit</button> - </div> - </section> - ` - } - return data.contact - } -} - -module.exports = () => {return new Contact()} diff --git a/scripts/index.js b/scripts/index.js deleted file mode 100644 index 45bcfdb..0000000 --- a/scripts/index.js +++ /dev/null @@ -1,99 +0,0 @@ -const blog = require('../source/blog') -const readBlogs = blog().ReadBlogs() - -class Index { - constructor() {} - - async Main() { - return readBlogs.then(output => { - const text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." - const blogs = { - blogsArr: Array.from(output.keys()), - int: 0, - result: '' - } - - for (let [key, value] of output.entries()) { - if (blogs.int >= 2) {break} - blogs.result += `<div><h3>${value.title}</h3><p>Date: ${(value.date.getMonth() + 1).toString().padStart(2, '0')}/${(value.date.getDate()).toString().padStart(2, '0')}/${value.date.getFullYear()}</p><p>${value.short}</p></div>` - blogs.int++ - } - - const data = { - index:` - <section id='index'> - <div class='index'> - <h1>Welcome to my website!</h1> - <p>Welcome to my personal website! I'm Michael, an enthusiast with a keen interest in sharing knowledge and insights in technology. Feel free to explore my work experience and engage with my blog, where I discuss my interests.</p> - <div> - <button id='index-about'>About me</button> - <button class='index-readblogs'>Visit My Blog</button> - </div> - </div> - </section> - `, - main: ` - <section id='work'> - <h1>Work/Education</h1> - <div class='workitems'> - <div> - <h3>Cultural-Impact</h3> - <ul> - <li><p>Technology Consultant</p></li> - <li><p>Working with clients on their websites (frontend/backend)</p></li> - </ul> - </div> - <div> - <h3>University of Cincinnati</h3> - <ul> - <li>Java</li> - <li>Database Management</li> - <li>Networking</li> - <li>Web Development</li> - <li>System Administration (Windows/Linux)</li> - </ul> - </div> - </div> - </section> - `, - blog: ` - <section id='index-blog'> - <h1>Blog</h1> - <div class='index-blog'> - ${blogs.result} - </div> - <center><button class='index-readblogs'>Read Blogs</button></center> - </section> - `, - websites: ` - <section id='mywebsites'> - <h1>My Websites</h1> - <p>Here are some websites I have created</p> - <div class='websites'> - <img id='goodhandhauling' src='/img/Screenshot_20240414_143225.avif'/> - <img id='helpinghands' src='/img/Screenshot_20240414_143258.avif'/> - </div> - </section> - `, - contact: ` - <section id='contact'> - <h1>Contact</h1> - <div class='form'> - <p>Full Name:</p> - <input type='text' name='fullname'/> - <p>Email:</p> - <input type='email' name='email'/> - <p>Message:</p> - <textarea name='message'></textarea><br> - <button id='contact-submit'>Submit</button> - </div> - </section> - ` - } - return data.index + data.main + data.blog + data.websites + data.contact - }) - } -} - -module.exports = (x) => {return new Index(x)} - diff --git a/scripts/shop.js b/scripts/shop.js deleted file mode 100644 index e75d289..0000000 --- a/scripts/shop.js +++ /dev/null @@ -1,51 +0,0 @@ -const database = require('../source/database') -const estore = database('EStore') - -class Shop { - constructor() {} - - async Main() { - return estore.Query('SELECT * FROM Products').then(output => { - const data = { - start: ` - <section id='shop'> - <div> - <h1>This is the Shop page</h1> - `, - body: '', - end: ` - </div> - </section> - ` - } - if (output) { - for (let i = 0; i < output[0].length; i++) { - data.body += ` - <div class='item'> - <h2>${output[0][i].ProductName}</h2> - <p>ID: ${output[0][i].ID}</p> - </div> - ` - } - } else { - data.body = ` - There are no items in the database. - ` - } - return data.start + data.body + data.end - }) - } - Product() { - const data = ` - <section id='product'> - <div> - <h1>This is the Product page</h1> - <p>Description</p> - </div> - </section> - ` - return data - } -} - -module.exports = () => {return new Shop()} |
