Cognizant Academy Truyum Web Interface Specification Document
Cognizant Academy Truyum Web Interface Specification Document
Cognizant Academy Truyum Web Interface Specification Document
truYum
Version 1.0
Prepared By / Last
Reviewed By Approved By
Updated By
Ramadevanahalli
Chandrasekaran
Name Vimalathithan Krishnan Lingachar,
Janardhanan
Shashidhara Murthy
Learning Solution Learning Solution
Role Learning Solution Lead
Designer Architect
Signature
1.0 Introduction 3
1.1 Purpose of this document 3
1.2 Definitions & Acronyms 3
1.3 Project Overview 3
1.4 Scope 3
1.5 Intended Audience 3
1.6 Hardware and Software Requirement 3
1.4 Scope
Develop static HTML web pages for truYum application.
Scrum Master
Application Architect
Project Manager
Test Manager
Development Team
Testing Team
2. Software Requirement
b. Chrome Browser
truyum-ui
|_ images
|_ js
|_ style
File: truYum/menu-item-list-admin.html
Field Specification
The menu items are listed in table kind of structure. Find below the specification for each column in
the Menu Item List table.
File: truyum-ui/menu-item-list-customer.html
Field Specification
File: truyum-ui/edit-menu-item.html
Field Specification
File: truyum-ui/edit-menu-item-status.html
File: truyum-ui/menu-item-list-customer-notification.html
Field Specification
7.1 Cart
Displays the list of items added to the cart. This screen is arrived based on the navigation link in the
top of the screen from menu-item-list-customer.html.
File: truyum-ui/cart.html
Field Specification
Free Delivery Label Display ‘Yes’ or ‘No’ based the respective menu
item delivery status
Delete Link Display ‘Delete’ link, which displays the same page
with notification message that the item is deleted
from the Cart successfully.
File: truyum-ui/cart-empty.html
Field Specification
File: truyum-ui/cart-notification.html
Field Specification
9.1 HTML
1. Place all HTML files under truyum-ui folder.
2. HTML5 semantic tags has to be used wherever applicable. Avoid using div tags for
header, footer, article and navigation bar.
3. Document Type should be defined as in the first line of the HTML document.
<!DOCTYPE html>
4. Form fields must always include a <label> element with a "for" attribute matching the "id".
<label for="field-email">email</label>
<input type="email" id="field-email" name="email" value="" />
5. Each form field should have "name" attribute.
6. All tag names and attributes must be written in lowercase.
9.2 CSS
1. CSS files names should be style.css
2. CSS files should be placed in truyum-ui/style folder.
3. Feel free to change the Background Color, Font, Font Size and Font Color of the screen.
But it should be applied consistently across screens using CSS. Following are the
element in the screen that can be targeted for style change:
a. Navigation Bar
b. Page Heading
c. Form Elements
d. Messages
4. Reuse styles wherever applicable. Potential areas are Application Name, Page Title,
Form Fields and Buttons
5. Selector names should be in lower case with words separated by hyphen.
.page-title {
margin: 20px;
}
6. Selector class names should be relevant to the purpose of the element where the style is
applied. For example if common style needs to be applied for all text boxes in an
application.
7. Properties should be followed by a colon and a space
8. Properties and values should be in lower case
9. Use hexadecimal code for color definition
Example:
.login-form {
background: #fdfdfd;
display: block;
margin: 0;
margin-left: 20px;
}
9.3 JavaScript
1. JavaScript file name should script.js
2. JavaScript file should be placed in folder truyum-ui/js
3. Use camelCase for variables and functions.
var firstName = "John";
function alert() {
alert("This is an alert message.");