Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
43 changes: 43 additions & 0 deletions Page2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quote</title>
<link href="./css/style2.css" rel="stylesheet">
<!-- <script type="text/javascript" src="./js/header-functions.js"></script> -->

</head>
<body>


<header>
<nav>
<h1><strong>Choicest quotations from Presidents</strong></h1>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="Page2.html">Quote Of The Day</a></li>
<li><a href="Page3.html">Information</a></li>
<li><a href="contact.html">Feedback</a></li>
</ul>

</nav>
</header>
<div class="container">

<!-- <img src='/img/presidents-of-the-United-States.jpg'> -->
<button type="button" class="quoteBtn">Click to get more quote</button>

<blockquote>
<h2 class="quote">The greater our knowledge increases the more our ignorance unfolds.</h2>
</blockquote>
<h3 class="quoteAuthor">John Fitzgerald Kennedy</h3>

</div>
<script type="text/javascript" src="./js/script2.js"></script>

</body>

</body>

</html>
31 changes: 31 additions & 0 deletions Page3.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Information</title>
<link href="./css/style3.css" rel="stylesheet">
</head>
<body>
<header>
<nav>

<ul>
<li><a href="index.html">Home</a></li>
<li><a href="Page2.html">Quotes</a></li>
<li><a href="Page3.html">Information</a></li>
<li><a href="contact.html">Feedback</a></li>

</ul>
</nav>
</header>

<div class="images">

<button type="button" class="btn prevBtn">Prev Pic</button>
<button type="button" class="btn nextBtn">Next Pic</button>
</div>
<script src="./js/script3.js"></script>
</body>

</html>
106 changes: 6 additions & 100 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,107 +1,13 @@
# AD - SBA - HTML/CSS/JavaScript


### Link
https://mondira-roy2020.github.io/sba.javascript_3-page-website/

### Description
* In this Skill-based Assessment, you will be creating a small website and you get to pick what is the website about. The main purpose of this SBA is to test your skills in implementing a clean HTML structure that follows the methodologies of visual design, and styling your site so that it is user-friendly.

* You have the entire day for this SBA. Make sure to check in with your instructor for approval of your idea. Your work will be graded based on the below technical requirements. Also, creativity always works in your favor.

* Since this is your first time creating a 3 page website, keep it simple. Keeping it simple is very important. It ensures that you can complete this project within the given time and also gives you a better idea of what can you get done in the given time if you were to do it again with more requirements.

* Once you got your idea, think in the user’s perspective when creating the website.  You like your users to have a good experience when interacting with your site. This gives you a better chance of users trusting your site and coming back for more. For this SBA, don’t worry too much about the content. There are many places you can get free content to display on your site. Concentrate more on the web site's structure and grid system.


* Some resources for free content:
* Photos: `https://www.pexels.com/search/template/`
* Text: `https://www.lipsum.com/`
* GIFs: `https://www.motionelements.com/stock-image-10116013-business-and-startup-4k`

* Useful API sites:
* https://rapidapi.com/ (Links to an external site.)
* https://any-api.com/ (Links to an external site.)
* https://github.com/toddmotto/public-apis#public-apis- (Links to an external site.)
* https://apilist.fun/

### Deliverable:
* A theme for your site that you feel comfortable with
* Complete all technical requirements for HTML, CSS, and Javascript
* Have markups of your pages
* Research for a public API that can provide you with content (Optional)
* Include a README file. The file should include technical specifications and description of your website.
* Host on GitHub, include the link to your GitHub account in the README file(optional)
* Submit the project in a ZIP file




## Technical requirements

* HTML
* Have at least 3 pages, keep the grid system consistent as much as possible
* Use at least 10 different HTML tags
* Use HTML tables
* Implement at least two uses for forms
* Dropped Down Menu
* Use web fonts
* Use different types of content in the form of text, images, videos, and GIFs
* Use regex validation

* CSS
* Inline, internal, and external styling
* Use five different CSS selectors
* Don’t use too many fonts
* Use colors that complement each other
* Use Flexbox (Optional)
* Use SASS/SCSS (Optional)
* Use animations (Optional)

* Javascript
* External scripts
* Use variables, if statements, loops, at least one form of collections, functions/call back, and events
* Use AJAX (Optional)
* Use JSON or XML (Optional)
* Use JQuery (Optional)



## How to Download

#### Part 1 - Forking the Project
* To _fork_ the project, click the `Fork` button located at the top right of the project.


#### Part 2 - Navigating to _forked_ Repository
* Navigate to your github profile to find the _newly forked repository_.
* Copy the URL of the project to the clipboard.

#### Part 3 - Cloning _forked_ repository
* Clone the repository from **your account** into the `~/dev` directory.
* if you do not have a `~/dev` directory, make one by executing the following command:
* * `mkdir ~/dev`
* navigate to the `~/dev` directory by executing the following command:
* * `cd ~/dev`
* clone the project by executing the following command:
* * `git clone https://github.com/${MYUSERNAME}/${NAMEOFPROJECT}`





Created a 4 page website with US President's quotes and their displayed pictures. Contact/Feedback form is also created for user input and experience.

## How to Submit
Used HTML, CSS and javascript with arrays to save the quotes and images and displayed them randomly on click of a button.

#### Part 1 - _Pushing_ local changes to remote repository
* from a _terminal_ navigate to the root directory of the _cloned_ project.
* from the root directory of the project, execute the following commands:
* * add all changes
* * `git add .`
* * commit changes to be pushed
* * `git commit -m 'I have added changes'`
* * push changes to your repository
* * `git push -u origin master`
There are links to navigate between pages.

#### Part 2 - Submitting assignment
* from the browser, navigate to the _forked_ project from **your** github account.
* click the `Pull Requests` tab.
* select `New Pull Request`
The forms can be filled in but there is an error on submission. Have to figure out how to save the form or send it via email.
30 changes: 30 additions & 0 deletions contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form action="URL to form script" method="POST">

Your name: <br>
<input type="text" name="realname"><br>
<br>

Your email: <br>
<input type="text" name="email"><br>
<br>

Your comments: <br>
<textarea name="comments" rows="15" cols="50"></textarea><br><br>

<input type="submit" value="Submit">

</form>
<script type="text/javascript" src="./js/contactForm.js"></script>
</body>
</html>



54 changes: 49 additions & 5 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,53 @@
body {
background-color: navy;
}

body {

margin: 0;
font-family: Arial, Helvetica, sans-serif;
}

object {
.president-image {
background-image: url("/img/all_presidents.jpg");
background-color: #999;
height: 100vh;
width: 100vh;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}

.president-text {
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
}
/* header {
initial-letter-align:center;
} */


h2 {
text-align: center;
color: white ;
}

ul li {
background-color: #777;
color: white;
align-items: flex-start;
margin: 5px;
float: none;
padding:10px;
display:inline-block;
list-style-type: none;
list-style-position: inside;
}
a {
color:rgb(19, 18, 18);
}
a:hover{
color:rgb(129, 53, 223);
font-weight: 200;
}
73 changes: 73 additions & 0 deletions css/style2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
body {
background: url('/img/background.jpg') center/cover no-repeat;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}
h1 {
font-weight: 400;
}
nav ul{
margin:0;
display:inline;
padding:0 0 0 30px;

}

nav ul li {
list-style-type: none;
display:inline-block;
background:black;
color: white;
padding: 10px 10px;
margin:10;

}

nav ul li a {
color: white;
}

.container{
min-height: 100vh;
min-width: 50vh;
text-align: center;
align-items:center;
justify-content: center;
padding:2 rem;
margin-top:0;
border-radius: 5px;
flex:10 0 80%;
}
.quoteBtn {
border:black solid 2px;
color:#333;
float:clear;
background-color: rgb(122, 125, 129);
font-size: 1.3rem;
padding:0.25 rem 0.5 rem;
border-radius: 7px;
position: absolute;
top:45%;
left:50%;
cursor: pointer;
clear:both;
}
.quoteBtn:hover{
color: rgb(54, 14, 21);
}
blockquote{
background-color: rgb(233, 249, 250);
border: 5px solid rgb(40, 134, 138);
margin:1.5 rem;
padding: 0.5 rem;
}
.quoteAuthor{
size: 1.5 rem;
background-color: rgb(233, 249, 250);
border: 1px solid rgb(40, 134, 138);
position:absolute;
left:50%;
margin:1.5 rem;
padding: 0.5 rem;

}
Loading