Skip to content

Commit 275ed02

Browse files
author
Dreamerpro
committed
home layout
1 parent baf12a8 commit 275ed02

17 files changed

+181
-13
lines changed

app/Http/Controllers/WelcomeCtrl.php

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use Illuminate\Http\Request;
6+
7+
use App\Http\Requests;
8+
use App\Http\Controllers\Controller;
9+
10+
use Illuminate\Foundation\Inspiring;
11+
12+
class WelcomeCtrl extends Controller
13+
{
14+
/**
15+
* Display a listing of the resource.
16+
*
17+
* @return \Illuminate\Http\Response
18+
*/
19+
public function index()
20+
{
21+
/* $a=new Inspiring ;*/
22+
return view('welcome')->with('quote',Inspiring::quote());
23+
}
24+
25+
/**
26+
* Show the form for creating a new resource.
27+
*
28+
* @return \Illuminate\Http\Response
29+
*/
30+
public function create()
31+
{
32+
//
33+
}
34+
35+
/**
36+
* Store a newly created resource in storage.
37+
*
38+
* @param \Illuminate\Http\Request $request
39+
* @return \Illuminate\Http\Response
40+
*/
41+
public function store(Request $request)
42+
{
43+
//
44+
}
45+
46+
/**
47+
* Display the specified resource.
48+
*
49+
* @param int $id
50+
* @return \Illuminate\Http\Response
51+
*/
52+
public function show($id)
53+
{
54+
//
55+
}
56+
57+
/**
58+
* Show the form for editing the specified resource.
59+
*
60+
* @param int $id
61+
* @return \Illuminate\Http\Response
62+
*/
63+
public function edit($id)
64+
{
65+
//
66+
}
67+
68+
/**
69+
* Update the specified resource in storage.
70+
*
71+
* @param \Illuminate\Http\Request $request
72+
* @param int $id
73+
* @return \Illuminate\Http\Response
74+
*/
75+
public function update(Request $request, $id)
76+
{
77+
//
78+
}
79+
80+
/**
81+
* Remove the specified resource from storage.
82+
*
83+
* @param int $id
84+
* @return \Illuminate\Http\Response
85+
*/
86+
public function destroy($id)
87+
{
88+
//
89+
}
90+
}

app/Http/routes.php

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
Route::get('/', function () {
1515
return view('holder');
1616
});
17+
Route::get('/iq', ['uses'=>'WelcomeCtrl@index']);

public/css/content.css

+40-8
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ p#line>span{
2929
background-position: center center;
3030
background-size: cover;
3131
}
32-
#signup{
33-
margin-top: 40px;
32+
#signup-form, #signin-form{
33+
margin-top: 25px;
3434
background: rgba(228, 108, 10, 0.5);
3535
padding: 10px 30px 15px;
3636
display: block;
3737
border: 1px solid rgba(0, 0, 0, 0.11);
3838
}
39-
#signup-line{
39+
#signup-form-line{
4040
text-align: center;
4141
display: block;
4242
font-weight: 600;
@@ -49,7 +49,7 @@ p#line>span{
4949
input.form-control{
5050
background: rgba(250,250,250,0.9);
5151
}
52-
#signup>p{
52+
#signup-form>p,#signin-form>p{
5353
text-align: center;
5454
padding: 8px;
5555
font-size: 100%;
@@ -60,20 +60,24 @@ input.form-control{
6060
text-align: center;
6161
font-weight: bold;
6262
padding: 3px;
63+
width: 100%;
6364
/*background: rgba(0,0,0,0.6);*/
6465

6566
}
66-
#signup>hr{
67-
margin-top:-35px !important;
67+
#signup-form>hr{
68+
margin-top:-35px !important;
69+
}
70+
#signin-form>hr{
71+
margin-top:-30px !important;
6872
}
69-
#signup>input[type=submit]{
73+
.sign-in-btn{
7074
padding: 10px;
7175
background-color: rgb(0,128,1);
7276
border: none;
7377
border-radius: 2px;
7478
color: #fff;
7579
}
76-
#signup>input[type=submit]:hover{
80+
#signup-form>input[type=submit]:hover{
7781
background-color: rgb(0,150,1);
7882
}
7983
.ss{
@@ -157,3 +161,31 @@ section.home-bottom{
157161
/*text-shadow: 0.01px 0.8px black;*/
158162
border-bottom: 8px solid black;
159163
}
164+
.lang-showcase{
165+
margin-top: 35px;
166+
padding: 5px 0;
167+
background-color: rgba(0,0,0,0.5);
168+
}
169+
.col-md-125{
170+
display: inline-block;
171+
width: 12.5%;
172+
}
173+
.col-md-125>a{
174+
display: block;
175+
padding: 4px;
176+
}
177+
.col-md-125>a>span{
178+
margin-left: 8px;
179+
}
180+
.col-md-125>a>img{
181+
width: 100%;
182+
}
183+
.sign-in{
184+
font-weight: bold;
185+
height: 40px;
186+
line-height: 40px;
187+
}
188+
#signin-form{
189+
padding: 25px !important;
190+
margin: 0 !important;
191+
}

public/css/reset.css

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
@-ms-viewport{
22
width: device-width;
33
}
4+
a{
5+
color: #fff !important;
6+
}
47
.container{
58
width:1200px !important;
69
}
@@ -10,6 +13,7 @@
1013
}
1114
}
1215
.jumbotron{
16+
padding-top: 10px !important;
1317
padding-bottom: 0 !important;
1418
margin-bottom: 0 !important;
1519
}

public/images/langs/Bangla.jpg

29.1 KB
Loading

public/images/langs/English.jpg

24.9 KB
Loading

public/images/langs/English.jps

32.2 KB
Binary file not shown.

public/images/langs/Hindi.jpg

26.4 KB
Loading

public/images/langs/Kannada.jpg

22.4 KB
Loading

public/images/langs/Malayalam.jpg

29.2 KB
Loading

public/images/langs/Marathi.jpg

21.1 KB
Loading

public/images/langs/Tamil.jpg

28.9 KB
Loading

public/images/langs/Telugu.jpg

21.8 KB
Loading

public/js/app.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ angular.module('cultstage',['ngRoute'])
66
controller: function($scope){
77
$scope.header=false;
88
}
9-
});
9+
})
10+
.otherwise({
11+
redirectTo:"/"
12+
})
13+
;
1014
}])
1115
;

public/js/controller.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
angular.module('cultstage')
22
.controller('headerCtrl', function($scope){
33
$scope.ngHeader=false;
4+
})
5+
.controller('langSCtrl', function($scope){
6+
$scope.langs=['Hindi','English','Kannada','Tamil','Telugu','Malayalam','Bangla', 'Marathi'];
47
})

public/templates/home.html

+37-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,50 @@
1+
<div id="sign-in-modal" class="modal fade" role="dialog">
2+
<div class="modal-dialog" role="document">
3+
<div class="modal-content">
4+
<!-- <div class="modal-header">
5+
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
6+
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
7+
</div> -->
8+
9+
<form class="" id="signin-form">
10+
<!-- <h3 id="signup-line">Be a part of the Cult.</h3>
11+
-->
12+
<div class="form-group"><input class="form-control" type="text" name="name" placeholder="Name"></input></div>
13+
14+
<div class="form-group"><input class="form-control" type="email" name="email" placeholder="Email"></input></div>
15+
16+
<div class="form-group"><input class="form-control" type="password" name="password" placeholder="Password"></input></div>
17+
<!-- <span class="pull-right" id="fp"><a href="#">Forgot password</a> </span> -->
18+
<input class="sign-in-btn" type="submit" value="Sign In" >
19+
<a href="" class="pull-right sign-in" data-target="#sign-in-modal" data-toggle="modal">Forgot password?</a>
20+
<p><span id="or">Or </span></p>
21+
<hr>
22+
<div class="clearfix">
23+
<div class="col-md-6 ss" id="fbbtn"><div><i class="fa fa-facebook"></i><span>Sign in with <b>Facebook</b></span></div></div>
24+
<div class="col-md-6 ss" id="gbtn"><div><i class="fa fa-google-plus"></i><span>Sign in with <b>Google</b></span></div></div>
25+
</div>
26+
</form>
27+
</div>
28+
</div>
29+
</div>
130
<div class="jumbotron">
231
<h1 id="name">CULT STAGE</h1>
332
<p id="line"><span>Indian Film and TV Fraternity's most preferred online platform for recruiting and showcasing talent.</span></p>
433

5-
<form class="col-md-4 col-md-offset-4" id="signup">
6-
<h3 id="signup-line">Be a part of the Cult.</h3>
34+
<div class="lang-showcase" ng-controller="langSCtrl">
35+
<div class="col-md-125" ng-repeat="i in langs"><a href=""><img ng-src="images/langs/{{i}}.jpg"><span>{{i}}</span></a></div>
36+
</div>
37+
<form class="col-md-4 col-md-offset-4" id="signup-form">
38+
<h3 id="signup-form-line">Be a part of the Cult.</h3>
739

840
<div class="form-group"><input class="form-control" type="text" name="name" placeholder="Name"></input></div>
941

1042
<div class="form-group"><input class="form-control" type="email" name="email" placeholder="Email"></input></div>
1143

1244
<div class="form-group"><input class="form-control" type="password" name="password" placeholder="Password"></input></div>
13-
<span class="pull-right" id="fp"><a href="#">Forgot password</a> </span>
14-
<input class="" type="submit" value="Join the Cult!" >
45+
<!-- <span class="pull-right" id="fp"><a href="#">Forgot password</a> </span> -->
46+
<input class="sign-in-btn" type="submit" value="Join the Cult!" >
47+
<a href="" class="pull-right sign-in" data-target="#sign-in-modal" data-toggle="modal">Already a member? Sign In.</a>
1548
<p><span id="or">Or </span></p>
1649
<hr>
1750
<div>

resources/views/welcome.blade.php

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<div class="container">
4040
<div class="content">
4141
<div class="title">Laravel 5</div>
42+
<p>{{ $quote }}</p>
4243
</div>
4344
</div>
4445
</body>

0 commit comments

Comments
 (0)