diff --git a/assets/mail.png b/assets/mail.png new file mode 100644 index 00000000..d290e2ee Binary files /dev/null and b/assets/mail.png differ diff --git a/assets/minus.png b/assets/minus.png new file mode 100644 index 00000000..d11223ff Binary files /dev/null and b/assets/minus.png differ diff --git a/assets/plus.png b/assets/plus.png new file mode 100644 index 00000000..5d4a5809 Binary files /dev/null and b/assets/plus.png differ diff --git a/assets/search.png b/assets/search.png new file mode 100644 index 00000000..6213eba2 Binary files /dev/null and b/assets/search.png differ diff --git a/css/style.css b/css/style.css index e69de29b..38eb07e5 100644 --- a/css/style.css +++ b/css/style.css @@ -0,0 +1,154 @@ +* { + box-sizing: border-box; +} + +.container { + max-width: 800px; + margin: 30px auto; +} + +.header { + margin-top: -30px; + background-color: #d44638; + color: white; + padding: 20px 20px 20px 40px; + font-size: 20px; +} + +#logo { + text-shadow: 20px 20px 20px #701616; +} + +#log-out { + margin-top: -70px; + margin-right: 10px; + float: right; + font-size: 10px; + border: 2px solid white; + padding: 10; + border-radius: 50px; + background-color: white; + color: #9c342b; + /* box-shadow: 2px 2px #c6c6c6; */ +} + +#log-out:hover { + transition: 0.3s; + background-color: #e49e9e; + color: white; +} + +#search { + float: right; + width: 80%; + background-color: rgb(247, 243, 243); + background-image: url("/assets/search.png"); + background-position: 7px; + background-size: 5%; + background-repeat: no-repeat; + padding-left: 50px; + height: 40px; + border-right: 1px solid #c6c6c6; + border-radius: 10px; +} + +body { + font-family: "roboto", sans-serif; + background-color: #eeeeee; +} + +.menu { + height: 480px; + float: left; + width: 20%; + background-color: #fff; + overflow-x: auto; + padding-top: 0px; + border-right: 1px solid #c6c6c6; +} + +.menu a { + padding: 20px 8px 20px 30px; + text-decoration: none; + font-size: 15px; + color: #818181; + display: block; +} + +.menu a:hover { + background-color: #e49e9e; + color: #ffffff; + border-top-right-radius: 50px; + border-bottom-right-radius: 50px; + transition: 0.3s; +} + +#emails { + float: right; + width: 80%; + height: 440px; + overflow: auto; + background-color: #fff; + padding-top: 0px; + border-left: 1px solid #c6c6c6; +} + +#compose:hover { + background-color: cornflowerblue; +} + +#plus { + color: turquoise; + font-size: 20px; +} + +.clear { + clear: both; +} + +.subject { + font-size: 13px; + list-style-type: none; + padding: 17px 10px 10px 50px; + border-bottom: 1px dotted #818181; + background-image: url("/assets/plus.png"); + background-position: 10px; + background-size: 6%; + background-repeat: no-repeat; +} + +.subject:hover{ + /* background: #929292; + color: white; */ + /* padding: 15px 15px 15px 50px; */ + font-size: 15px; + transition: 0.3s; +} + +.message, .sender, .date { + /* border-top: 1px solid #9c9c9c; */ + padding: 17px 10px 10px 50px; + font-size: 13px; + /* display: none; */ +} + +#first-email { + display: none; +} +/*side bar CSS*/ +/* width */ +::-webkit-scrollbar { + width: 10px; +} + +/* Track */ +::-webkit-scrollbar-track { + box-shadow: inset 0 0 5px grey; + border-radius: 10px; +} + +/* Handle */ +::-webkit-scrollbar-thumb { + background: rgb(165, 165, 165); + border-radius: 10px; +} \ No newline at end of file diff --git a/index.html b/index.html index a8a1aad9..2d7f21ea 100644 --- a/index.html +++ b/index.html @@ -4,15 +4,172 @@ + UIsubject.className = "subject"; + UIsubject.textContent = m[i].subject; + emailContainer.appendChild(UIsubject); + UIsubject.style.display = "block"; + + UIdate.className = "date"; + UIdate.textContent = `Date: ${m[i].date}`; + UIsubject.appendChild(UIdate); + UIdate.style.display = "none"; + + UIsender.className = "sender"; + UIsender.textContent = `From: ${m[i].sender}`; + UIsubject.appendChild(UIsender); + UIsender.style.display = "none"; + + UIbody.className = "message"; + UIbody.textContent = m[i].body; + UIsubject.appendChild(UIbody); + UIbody.style.display = "none"; + + // Append to Inbox Body + let first = document.getElementById("emails"); + let second = document.getElementById("first-email"); + //first.insertBefore(emailContainer, second); + first.prepend(emailContainer) + } + } + + generateEmails(geemails.length, geemails); + + let num = 11; + let inboxCount = document.querySelector("#count"); + let classDiv = document.getElementsByClassName("subject"); + for (i = 0; i + + -
- Build Me! +
+ + +
+

+ GeeMail +

+ Log Out
+ + + + + + + + +
+ +
  • Open this email, Young sir. +

    Abraham Lincoln

    +

    October 31, 2019

    +

    Lorem ipsum dolor sit amet consectetur adipisicing elit. Amet beatae veniam consequuntur deserunt suscipit nisi quidem explicabo voluptates? Consectetur reiciendis fugit aspernatur, itaque ad facilis quae exercitationem. Obcaecati accusantium quia saepe nesciunt qui! Tempora numquam pariatur id voluptate tenetur praesentium! Ratione dolorum quae reiciendis sint alias voluptates maiores voluptatem ipsum.

    +
  • + +
    + + +
    + + + + +
    \ No newline at end of file diff --git a/js/mail-generator.js b/js/mail-generator.js index 52d3ba66..1cf6fabe 100644 --- a/js/mail-generator.js +++ b/js/mail-generator.js @@ -3,9 +3,38 @@ //Gee Mail message stub data - var subject = ['Call Your Mother', 'Cheap Online Meds', 'Change Your Life Today', 'Sppoky Stories', 'Meet Singles In Your Area', 'Have You Heard?', 'Yo', 'RE: Looking for a three legged cat', 'Get Rich Quick!', 'FW: Token Chain Email']; - var sender = ['Mary Monster', 'Dave Danger', 'Spam Master', 'Spike Spurner', 'Ray Ranger', 'Catherine Chaos', 'Van Pire', 'Andy Argye', 'Rick Roger', 'Sue Mee']; - var body = ['I am never gonna see a merman, ever. You haven\'t seen my drawer of inappropriate starches?','I\'ll kill a man in a fair fight. Or if I think he\'s gonna start a fair fight. Or if he bothers me. Or if there\'s a woman. Or if I\'m getting paid. Mostly when I\'m getting paid. I thought all children despise effort and enjoy cartoons. Don\'t be ridiculous. Martha Stewart isn\'t a demon. She\'s a witch. Someone else\'s loss is my chocolatey goodness. I don\'t want to use the word genius, but I\'d be ok if you wanted to. What did I say to you about barging into my shuttle? Now you can luxuriate in a nice jail cell, but if your hand touches metal, I swear by my pretty floral bonnet: I will end you. Oh Spike, devour me! You\'re gonna die screaming but you won\'t be heard. Eyeballs to entrails, my sweet.','We need to save Buffy from Hansel and Gretel. Well, you were busy trying to get yourself lit on fire. The only thing Willow was ever good for, the only thing I ever had going for me were those moments, just moments, where Tara would look at me and I was wonderful. Everyone\'s a hero in their own way, in their own not that heroic way. Planet\'s coming up a mite fast.','Better to cut you down to size, grandma. I\'m the one who brings about the thought-pocalypse. Yeah, it was sexy the way she touched me real hard with her fists. I dislike that Anya. She\'s newly human and strangely literal.','Yeah, well, I\'m not the one who wanted Wind Beneath My Wings for the first dance. She\'s a truck-driving magic mama! And I\'m a huge fan of the way you lose control and turn into an enormous green rage monster. We\'re outlaws with hearts of gold. Or even worse, a sneezure.','Oh my god! Did it sing? Turns out I suddenly find myself needing to know the plural of apocalypse. It\'s about women. It was like the Heimlich, with stripes! First of all, Feng Shui up the yin yang, also I designed parts of it but I did not design the stone cold foxes in the small clothes and the ample massage facilities. That girl will rain destruction down on you and your ship. Sweetie, if he had a tussle with that Sasquatch, we\'d be in the dirt right about now, scooping up the Captain\'s teeth. You can\'t spend the rest of your life waiting for Xander to wake up and smell the hottie. Either blow us all up or rub soup in our hair. It\'s a toss-up. I think calling him that is an insult to the psychotic lowlife community.','Xander, that\'s not the North Star, it\'s an airplane. You can\'t open the book of my life and jump in the middle. What do they need such good eyesight for anyway? Well we could grind our enemies into talcum powder with a sledgehammer but, gosh, we did that last night. The gentlemen are coming by. You can\'t take the sky from me. Okay, at this point you\'re abusing sarcasm. Well, I haven\'t been to a hell dimension just of late, but I do know a thing or two about torment.','And now the one person who should be here is gone, and a waste like you gets to live. The human mind is like Van Halen; if you just pull out one piece and keep replacing it, it just degenerates. Turns out I suddenly find myself needing to know the plural of apocalypse. It\'s a real burn, being right so often. Who\'s calling me? Everybody I know lives here.','Looking in windows, knocking on doors. Well, look at me. I\'m all fuzzy. And what\'s with all the carrots? That girl will rain destruction down on you and your ship. If I could make you purtier, I would. I wanna hurt you, but I can\'t resist the sinister attraction of your cold and muscular body! Seems odd you\'d name your ship after a battle you were on the wrong side of.','I\'m a comfortador also. You\'re a hell of a woman. Passion rules us all. You\'re gonna die screaming but you won\'t be heard. How did your brain even learn human speech? I\'m just so curious. Occasionally, I\'m callous and strange.']; + var subject = ['Call Your Mother', + 'Cheap Online Meds', + 'Change Your Life Today', + 'Spooky Stories', + 'Meet Singles In Your Area', + 'Have You Heard?', + 'Yo', + 'RE: Looking for a three legged cat', + 'Get Rich Quick!', + 'FW: Token Chain Email']; + + var sender = ['Mary Monster', + 'Dave Danger', + 'Spam Master', + 'Spike Spurner', + 'Ray Ranger', + 'Catherine Chaos', + 'Van Pire', + 'Andy Argye', + 'Rick Roger', + 'Sue Mee']; + + var body = ['I am never gonna see a merman, ever. You haven\'t seen my drawer of inappropriate starches?', + 'I\'ll kill a man in a fair fight. Or if I think he\'s gonna start a fair fight. Or if he bothers me. Or if there\'s a woman. Or if I\'m getting paid. Mostly when I\'m getting paid. I thought all children despise effort and enjoy cartoons. Don\'t be ridiculous. Martha Stewart isn\'t a demon. She\'s a witch. Someone else\'s loss is my chocolatey goodness. I don\'t want to use the word genius, but I\'d be ok if you wanted to. What did I say to you about barging into my shuttle? Now you can luxuriate in a nice jail cell, but if your hand touches metal, I swear by my pretty floral bonnet: I will end you. Oh Spike, devour me! You\'re gonna die screaming but you won\'t be heard. Eyeballs to entrails, my sweet.', + 'We need to save Buffy from Hansel and Gretel. Well, you were busy trying to get yourself lit on fire. The only thing Willow was ever good for, the only thing I ever had going for me were those moments, just moments, where Tara would look at me and I was wonderful. Everyone\'s a hero in their own way, in their own not that heroic way. Planet\'s coming up a mite fast.', + 'Better to cut you down to size, grandma. I\'m the one who brings about the thought-pocalypse. Yeah, it was sexy the way she touched me real hard with her fists. I dislike that Anya. She\'s newly human and strangely literal.', + 'Yeah, well, I\'m not the one who wanted Wind Beneath My Wings for the first dance. She\'s a truck-driving magic mama! And I\'m a huge fan of the way you lose control and turn into an enormous green rage monster. We\'re outlaws with hearts of gold. Or even worse, a sneezure.', + 'Oh my god! Did it sing? Turns out I suddenly find myself needing to know the plural of apocalypse. It\'s about women. It was like the Heimlich, with stripes! First of all, Feng Shui up the yin yang, also I designed parts of it but I did not design the stone cold foxes in the small clothes and the ample massage facilities. That girl will rain destruction down on you and your ship. Sweetie, if he had a tussle with that Sasquatch, we\'d be in the dirt right about now, scooping up the Captain\'s teeth. You can\'t spend the rest of your life waiting for Xander to wake up and smell the hottie. Either blow us all up or rub soup in our hair. It\'s a toss-up. I think calling him that is an insult to the psychotic lowlife community.', + 'Xander, that\'s not the North Star, it\'s an airplane. You can\'t open the book of my life and jump in the middle. What do they need such good eyesight for anyway? Well we could grind our enemies into talcum powder with a sledgehammer but, gosh, we did that last night. The gentlemen are coming by. You can\'t take the sky from me. Okay, at this point you\'re abusing sarcasm. Well, I haven\'t been to a hell dimension just of late, but I do know a thing or two about torment.', + 'And now the one person who should be here is gone, and a waste like you gets to live. The human mind is like Van Halen; if you just pull out one piece and keep replacing it, it just degenerates. Turns out I suddenly find myself needing to know the plural of apocalypse. It\'s a real burn, being right so often. Who\'s calling me? Everybody I know lives here.', + 'Looking in windows, knocking on doors. Well, look at me. I\'m all fuzzy. And what\'s with all the carrots? That girl will rain destruction down on you and your ship. If I could make you purtier, I would. I wanna hurt you, but I can\'t resist the sinister attraction of your cold and muscular body! Seems odd you\'d name your ship after a battle you were on the wrong side of.', + 'I\'m a comfortador also. You\'re a hell of a woman. Passion rules us all. You\'re gonna die screaming but you won\'t be heard. How did your brain even learn human speech? I\'m just so curious. Occasionally, I\'m callous and strange.']; function loadGeeMails(){ @@ -47,3 +76,6 @@ window.getNewMessage = getNewMessage; loadGeeMails(); })(); + + +