Created
August 15, 2013 08:02
-
-
Save PureSingh/6239098 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wt/WApplication> | |
#include <Wt/WContainerWidget> | |
#include <Wt/WText> | |
#include <Wt/WImage> | |
#include <Wt/WMenu> | |
#include <Wt/WStackedWidget> | |
#include <Wt/WVideo> | |
#include <Wt/WBreak> | |
#include <Wt/WTabWidget> | |
#include <Wt/WAnimation> | |
using namespace Wt; | |
class webpage : public WApplication | |
{ | |
public: | |
webpage(const WEnvironment &env); | |
private: | |
}; | |
webpage::webpage(const WEnvironment& env) | |
: WApplication(env) | |
{ useStyleSheet("wtpage.css"); | |
WContainerWidget *container1=new WContainerWidget(root()); | |
container1->setStyleClass("a1"); | |
WImage *image=new WImage("banner.jpg",container1); //wt logo | |
image->setStyleClass("he1"); | |
WStackedWidget *cont = new WStackedWidget();//main menu stack widget declaration | |
WMenu *menu=new WMenu (cont,Horizontal,container1);//main menu widget | |
container1->addWidget(cont);//adding stack widget after WMenu | |
menu->setStyleClass("m1");//style class of main menu | |
WContainerWidget *introcontainer=new WContainerWidget(); | |
WContainerWidget *tutorialcontainer=new WContainerWidget(); | |
WContainerWidget *contactcontainer=new WContainerWidget(); | |
WContainerWidget *footercontainer=new WContainerWidget(); | |
menu->addItem ("History",introcontainer);//connecting menu items to corresponding container widget | |
menu->addItem ("Mahanpurakh",tutorialcontainer); | |
menu->addItem ("Contact",contactcontainer); | |
introcontainer->addWidget(new WBreak()); | |
introcontainer->addWidget(new WBreak()); | |
introcontainer->addWidget(new WContainerWidget(container1)); | |
WText *text1=new WText("Sri Nanaksar Gurdwara is situated in the Ludhiana district of Punjab and is located approximately five miles from the city of Jagraon along the road from Ludhiana to Moga and Ferozpur. The sacred beginnings of Nanaksar began over a hundred-years ago as a simple hut; humbled by its natural surroundings amongst the thick of the jungle. This location was specifically chosen by the Holy Saint, Baba Nand Singh Ji as it personified a spiritual retreat where one could move to escape the misguidance of the world, and concentrate on the sole treasure of Naam Simran.",introcontainer); | |
introcontainer->addWidget(new WBreak()); | |
introcontainer->addWidget(new WBreak()); | |
text1=new WText("Baba Nand Singh Ji was born on the Pooranmashi of month Kathak (November) in 1870 in village Sherpura, Tehsil Jagraon, Distt Ludhiana. His father name was Sardar Jai Singh Ji and his mother name was Mata Sada Kaur Ji. Even as a child, Baba Nand Singh Ji was extremely pious and his urge for devotional worship continuously saw him escape all worldly measures and partake solely in meditating the holy name of Shri Guru Nanak Dev Ji through recitations of Sahib Shri Guru Granth Sahib Ji.",introcontainer); | |
introcontainer->addWidget(new WBreak()); | |
introcontainer->addWidget(new WBreak()); | |
text1=new WText("Baba Nand Singh Ji mastered selfless sacrifice, and devoted his existence to prolonged meditations and holy service. Baba Nand Singh Ji placed the utmost importance on the need for contemplation and never placed a single regard on weather conditions or how safe the local terrain was before embarking on his spiritual retreats. Furthermore, he never worried for worldly comforts such as food or water and solely believed that everything was in Waheguru hukam. This belief was principled on the thought that since he was devoting and meditating solely on the name of a higher being, all worldly requirements should definitely come when the time was right. With this strong belief in mind, he maintained his uninterrupted meditation and even in the most wild and isolated terrains, food always came as an offering from one source or another, at the required times in hukam from a higher being.",introcontainer); | |
introcontainer->addWidget(new WBreak()); | |
introcontainer->addWidget(new WBreak()); | |
text1=new WText("Through his teachings and the gathering of followers across India, Baba Nand Singh Ji established Gurdwara Nanaksar near Village Kaleran (5 miles away from Jagraon) in Punjab. Through stating the need to live a life fulfilling the teachings embedded within Sikhi, the establishment of Gurdwara Nanaksar provided the foundation for Guru Nanak Sahib message to be shared with the masses. With this new religious sanctuary, the continuous recitations of Akhand Paaths and Sewa continued but dramatically increased, attracting sangat from across Punjab and India. Even with the new amount of devotees visiting on a daily basis, the previous langar provisions of food arriving when it was in hukam remained and even though a single cook, kitchen or utensil cannot be found on the Nanaksar premises, the langar continues 24 hours a day, all with the love and belief of the devotees. Even today, a single program has not passed at Nanaksar without the provisions for langar being met to everyones contentment.",introcontainer); | |
introcontainer->addWidget(new WBreak()); | |
introcontainer->addWidget(new WBreak()); | |
text1=new WText("Baba Nand Singh Ji left for His heavenly abode on 13 of Bhadon (28th August) in 1943. Prior to leaving, Baba Nand Singh Ji clearly stressed that there could only be one successor to continue the message of Guru Nanak Sahib. This successor had to be overflowing with love, virtue, knowledge and an undying compassion to serve humanity through immeasurable means. With this said the only person Baba Nand Singh Ji found suitable and up to this most divine task was Baba Isher Singh Ji.",introcontainer); | |
introcontainer->addWidget(new WBreak()); | |
introcontainer->addWidget(new WBreak()); | |
text1=new WText("Upon his return to Nanaksar. Baba Isher Singh Ji introduced the divine baptization with sacred nector, known as Amrit, on a large scale as prescribed by Shri Guru Gobind Singh Ji. Further to that, the singing of hymns from Sahib Shri Guru Granth Sahib Ji, and the continuous discourses by different singers (ragis) and devotees of Baba Ji continued day and night.",introcontainer); | |
introcontainer->addWidget(new WBreak()); | |
introcontainer->addWidget(new WBreak()); | |
text1=new WText("Through advancing the development of the Nanaksar Gurdwara, Baba Isher Singh Ji visited different states in India and conducted religious programs to all race, religions and creeds. Baba Ji continually stressed that the partaking in holy Amrit was an absolutely essential part of being one with Akal Purakh and to see yourself as a reflection of your father, Shri Dasmesh Pitah. BabaJi discourses emphasized the importance of Gurbani as the only source of true liberation and Amrit as the only means of overcoming the fear of death. Baba Isher Singh Ji continually stressed that Sahib Shri Guru Granth Sahib Ji is the true Guru of the Sikhs and how all ailments can be relieved through maintaining an absolute faith in Guru Sahib and holding its message and body as the true Guru in this life and beyond.",introcontainer); | |
introcontainer->setStyleClass("t11"); | |
tutorialcontainer->addWidget(new WContainerWidget(container1)); | |
WStackedWidget *content = new WStackedWidget();//tutorial menu stack widget declaration | |
WMenu *secondmenu=new WMenu (content,Horizontal,tutorialcontainer);//tutorial menu widget | |
tutorialcontainer->addWidget(content);//adding stack widget after WMenu | |
secondmenu->setStyleClass("menu1");// | |
WContainerWidget *textcontainer=new WContainerWidget(); | |
WContainerWidget *imagecontainer=new WContainerWidget(); | |
WContainerWidget *videocontainer=new WContainerWidget(); | |
WContainerWidget *menucontainer=new WContainerWidget(); | |
WContainerWidget *Babaji=new WContainerWidget(); | |
secondmenu->addItem ("Baba MahaHarnam Singh ji",textcontainer); | |
secondmenu->addItem ("Baba Nand Singh ji ",imagecontainer); | |
secondmenu->addItem ("Baba Isher Singh ji ",videocontainer); | |
secondmenu->addItem ("Baba Kundan Singh ji",menucontainer); | |
secondmenu->addItem ("Baba Harbhajan Singh ji",Babaji); | |
textcontainer->addWidget(new WContainerWidget(container1)); | |
textcontainer->addWidget(new WBreak()); | |
WText *e1=new WText("Baba MahaHarnam Singh",textcontainer); | |
e1->setStyleClass("v1"); | |
WText *text2 = new WText("Baba Harnam Singh Ji was the highest spiritual Luminary, God has ever gifted to mankind.",textcontainer); | |
text2->setStyleClass("t12"); | |
textcontainer->addWidget(new WBreak()); | |
textcontainer->addWidget(new WBreak()); | |
text2 = new WText("Once Baba Harnam Singh Ji Maharaj, who always used to sit in a dark room, asked a Sewak whether it was day or night? The sewak out of curiosity asked Him the reasons for this query. Baba ji replied, “Just as in the sun there is no darkness, for those established in the luminous paramjot, brilliance of thousands of such moons and suns fades away into insignificance. This brilliance and light of the physical sun is only a borrowed fraction of the eternal source of light. In this Luminousity Eternal the sages always remain established. Thousands of such luminous suns and moons can not dispel the darkness of ignorance, and the delusion of ‘maya’, which a mere glance of a perfect saint could do and achieve”. Baba Harnam Singh Ji was the highest spiritual Luminary, God has ever gifted to mankind.",textcontainer); | |
text2->setStyleClass("t12"); | |
contactcontainer->addWidget(new WContainerWidget(container1)); | |
contactcontainer->setStyleClass("p1"); | |
text1=new WText("Gurvinder Singh",contactcontainer); | |
contactcontainer->addWidget(new WBreak()); | |
contactcontainer->addWidget(new WBreak()); | |
text1=new WText("D4 CSE",contactcontainer); | |
contactcontainer->addWidget(new WBreak()); | |
contactcontainer->addWidget(new WBreak()); | |
text1=new WText ("email id: [email protected]",contactcontainer); | |
footercontainer->addWidget(new WContainerWidget(container1)); | |
footercontainer->setStyleClass("footer"); | |
} | |
Wt::WApplication *createApplication(const Wt::WEnvironment& env) | |
{ | |
return new webpage(env); | |
} | |
int main(int argc, char **argv) | |
{ | |
return Wt::WRun(argc, argv, &createApplication); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment