Anuj-Panthri commited on
Commit
2b70216
·
1 Parent(s): 1251c2f

added dashboard and explore pages

Browse files
README.md CHANGED
@@ -7,7 +7,9 @@ ## Tasks :-
7
  - [X] Create Home Page
8
  - [X] Create Login Page
9
  - [X] Create Signup Page
10
- - [ ] Create an simple Dashboard page
 
 
11
 
12
 
13
  ## Steps to run :-
 
7
  - [X] Create Home Page
8
  - [X] Create Login Page
9
  - [X] Create Signup Page
10
+ - [X] Create an simple layout page
11
+ - [X] Create an simple Dashboard page
12
+ - [X] Create an simple explore skills page
13
 
14
 
15
  ## Steps to run :-
app/Http/Controllers/DashboardController.php CHANGED
@@ -10,4 +10,7 @@ class DashboardController extends Controller
10
  public function home(){
11
  return view('dashboard.home');
12
  }
 
 
 
13
  }
 
10
  public function home(){
11
  return view('dashboard.home');
12
  }
13
+ public function explore(){
14
+ return view('dashboard.explore');
15
+ }
16
  }
public/css/dashboard/explore.css ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #main_section{
2
+ display:flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ }
6
+ #search_skill_form{
7
+ margin: 2rem;
8
+ /* marigin: */
9
+ margin-top:4rem;
10
+ display:flex;
11
+ flex-direction: row;
12
+ align-items: center;
13
+ }
14
+
15
+ #search_skill_form>.search_input{
16
+ font-size:1.4rem;
17
+ padding: 0.3rem;
18
+ width: 500px;
19
+ margin-inline:1rem;
20
+ border:none;
21
+ outline:none;
22
+ border-bottom:2px solid #000;
23
+ }
24
+ #search_skill_form>.search_btn{
25
+ padding:1rem 1.5rem;
26
+ font-size:1rem;
27
+ border:none;
28
+ margin-inline:1rem;
29
+ background-color:blue;
30
+ border-radius: 50px;
31
+ color:#fff;
32
+ cursor: pointer;
33
+ }
34
+
35
+ .skills_container{
36
+ width:90%;
37
+ min-height:200px;
38
+ border-radius: 10px;
39
+ box-shadow: #000 0px 0px 20px -10px;
40
+ padding: 1rem;
41
+ position:relative;
42
+ margin-bottom: 2rem;
43
+ }
44
+
45
+ .create_skill_container{
46
+ display:flex;
47
+ justify-content: end;
48
+ }
49
+
50
+ .create_skill_btn{
51
+ /* width:100%; */
52
+ top:20px;
53
+ right:20px;
54
+
55
+ display: inline-block;
56
+ padding:1rem 1.5rem;
57
+ font-size:1rem;
58
+ border:none;
59
+ /* margin-inline:1rem; */
60
+ background-color:blue;
61
+ border-radius: 50px;
62
+ color:#fff;
63
+ }
64
+ .skills{
65
+ display:flex;
66
+ align-items: center;
67
+ justify-content: start;
68
+ flex-wrap: wrap;
69
+ margin-top:2rem;
70
+ }
71
+
72
+ .skill{
73
+ margin:1rem;
74
+ margin-right:2rem;
75
+ display:flex;
76
+ flex-direction: column;
77
+ align-items: center;
78
+ justify-content: center;
79
+ border-radius: 15px;
80
+ padding:10px;
81
+ box-shadow: #000 0px 0px 20px -10px;
82
+
83
+ }
84
+
85
+ .skill>.title{
86
+ margin:1rem;
87
+ font-weight: 500;
88
+ letter-spacing: 2px;
89
+ }
90
+ .skill>.start_btn{
91
+ display: inline-block;
92
+ margin:1rem;
93
+
94
+
95
+ padding:0.5rem 1rem;
96
+ font-size:1rem;
97
+ border:none;
98
+ /* margin-inline:1rem; */
99
+ background-color:blue;
100
+ border-radius: 50px;
101
+ color:#fff;
102
+ }
public/css/dashboard/home.css CHANGED
@@ -1,66 +1,27 @@
1
- @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&family=Roboto:wght@300&display=swap');
2
-
3
- *{
4
- margin:0;
5
- padding:0;
6
- box-sizing: border-box;
7
- font-family: 'Poppins', sans-serif;
8
- }
9
-
10
- a{
11
- color:#000;
12
- /* border:none; */
13
- text-decoration: none;
14
- }
15
-
16
- header{
17
- height:80px;
18
- background-color: #FFC3C3;
19
- display: flex;
20
- flex-direction: row;
21
- align-items: center;
22
- justify-content: space-between;
23
- padding:0.7rem 2rem;
24
- }
25
- header .circle{
26
- border:2px solid #000;
27
- border-radius: 50%;
28
- aspect-ratio: 1;
29
- display: flex;
30
- align-items: center;
31
- justify-content: center;
32
- padding: 0.6rem;
33
- }
34
- header>.title{
35
- font-size:2rem;
36
- cursor: pointer;
37
  }
38
 
39
- header>.sub_header{
40
- display: flex;
 
41
  flex-direction: row;
42
  align-items: center;
43
- justify-content: space-between;
44
- }
45
 
46
- header>.sub_header a{
47
- margin-inline:10px;
48
- cursor: pointer;
49
  }
50
- header>.sub_header a:hover{
51
- border-bottom:2px solid #000;
52
  }
53
-
54
- section{
55
- min-height:400px;
56
- border-bottom: 1px solid black;
57
- padding:1rem 2rem;
58
  }
59
-
60
- section>p{
61
  font-size:1.5rem;
62
- width:50ch;
63
  /* margin-inline:2rem; */
 
64
  }
65
  #get_started_btn{
66
  background-color: #44d;
@@ -71,4 +32,5 @@ #get_started_btn{
71
  font-weight: 600;
72
  font-size: 1rem;
73
  cursor: pointer;
 
74
  }
 
1
+ section{
2
+ min-height:400px;
3
+ border-bottom: 1px solid black;
4
+ padding:1rem 2rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  }
6
 
7
+ /*only shown to new user with no skills*/
8
+ #new_user_section{
9
+ display:flex;
10
  flex-direction: row;
11
  align-items: center;
12
+ justify-content: space-around;
 
13
 
 
 
 
14
  }
15
+ #new_user_section>img{
16
+ width:60%;
17
  }
18
+ #new_user_section>.sub_container{
19
+ padding:1rem;
 
 
 
20
  }
21
+ section p{
 
22
  font-size:1.5rem;
 
23
  /* margin-inline:2rem; */
24
+ margin:1rem 0;
25
  }
26
  #get_started_btn{
27
  background-color: #44d;
 
32
  font-weight: 600;
33
  font-size: 1rem;
34
  cursor: pointer;
35
+ display: inline-block;
36
  }
public/css/home.css CHANGED
@@ -1,49 +1,3 @@
1
- @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&family=Roboto:wght@300&display=swap');
2
-
3
- *{
4
- margin:0;
5
- padding:0;
6
- box-sizing: border-box;
7
- font-family: 'Poppins', sans-serif;
8
- }
9
-
10
- a{
11
- color:#000;
12
- /* border:none; */
13
- text-decoration: none;
14
- }
15
-
16
- header{
17
- height:80px;
18
- background-color: #FFC3C3;
19
- display: flex;
20
- flex-direction: row;
21
- align-items: center;
22
- justify-content: space-between;
23
- padding:0.7rem 2rem;
24
- }
25
-
26
- header>.title{
27
- font-size:2rem;
28
- cursor: pointer;
29
- }
30
-
31
- header>.sub_header{
32
- display: flex;
33
- flex-direction: row;
34
- align-items: center;
35
- justify-content: space-between;
36
- }
37
-
38
- header>.sub_header a{
39
- margin-inline:10px;
40
- cursor: pointer;
41
- }
42
- header>.sub_header a:hover{
43
- border-bottom:2px solid #000;
44
- }
45
-
46
-
47
  #info_container,#topdown_container,#bottomup_container{
48
  min-height:500px;
49
  padding:2rem 4rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  #info_container,#topdown_container,#bottomup_container{
2
  min-height:500px;
3
  padding:2rem 4rem;
public/css/layouts/main.css ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&family=Roboto:wght@300&display=swap');
2
+
3
+ *{
4
+ margin:0;
5
+ padding:0;
6
+ box-sizing: border-box;
7
+ font-family: 'Poppins', sans-serif;
8
+ }
9
+
10
+ a{
11
+ color:#000;
12
+ /* border:none; */
13
+ text-decoration: none;
14
+ }
15
+
16
+ header{
17
+ height:80px;
18
+ background-color: #FFC3C3;
19
+ display: flex;
20
+ flex-direction: row;
21
+ align-items: center;
22
+ justify-content: space-between;
23
+ padding:0.7rem 2rem;
24
+ }
25
+
26
+ header>.title{
27
+ font-size:2rem;
28
+ cursor: pointer;
29
+ }
30
+
31
+ header>.sub_header{
32
+ display: flex;
33
+ flex-direction: row;
34
+ align-items: center;
35
+ justify-content: space-between;
36
+ }
37
+
38
+ header>.sub_header a{
39
+ margin-inline:10px;
40
+ cursor: pointer;
41
+ }
42
+ header>.sub_header a:hover{
43
+ border-bottom:2px solid #000;
44
+ }
45
+ header #user_badge{
46
+ border-radius:50%;
47
+ background-color: #0000004c;
48
+ aspect-ratio: 1;
49
+ color:#fff;
50
+ padding:1rem;
51
+
52
+ display:flex;
53
+ align-items: center;
54
+ justify-content: center;
55
+ }
public/images/skills collage.png ADDED

Git LFS Details

  • SHA256: 8fc3d1a74715493241320cd54eab54ece4f7f776d987297915406654e8069b86
  • Pointer size: 132 Bytes
  • Size of remote file: 1.01 MB
resources/views/dashboard/explore.blade.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @extends('layouts.main')
2
+ @section('head')
3
+ <title>Explore Skills</title>
4
+ <link rel="stylesheet" href="{{ asset('css/dashboard/explore.css') }}">
5
+ @endsection
6
+ @section('main')
7
+ <section id="main_section">
8
+ <form id="search_skill_form">
9
+ <input type='text' class='search_input'>
10
+ <input type='submit' class='search_btn' value='Search'>
11
+ </form>
12
+ <div class="skills_container">
13
+ <div class="create_skill_container">
14
+ <a href='#' class="create_skill_btn">Create New Skill</a>
15
+ </div>
16
+
17
+ <div class="skills">
18
+ @for ($i = 0; $i < 10; $i++)
19
+ <div class="skill">
20
+ <span class='title'>Singing Skill</span>
21
+
22
+ <a href="#" class="start_btn">Start</a>
23
+ </div>
24
+ @endfor
25
+ </div>
26
+
27
+ </div>
28
+ </section>
29
+ @endsection
resources/views/dashboard/home.blade.php CHANGED
@@ -1,35 +1,18 @@
1
- <html>
2
-
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
- <title>Learn Guide | Home Page</title>
8
- <link rel="stylesheet" href="{{ asset('css/dashboard/home.css') }}">
9
- </head>
10
-
11
- <body>
12
- <header>
13
- <a class='title' href="{{ route('home') }}">LearnGuide</a>
14
- <div class="sub_header">
15
- <div>
16
- <a href="{{ route('dashboard') }}">Dashboard</a>
17
- <a>My Skills</a>
18
- <a>Explore</a>
19
- </div>
20
- <div class='circle'>
21
- {{ Auth::guard('customuser')->user()->username }}
22
- </div>
23
  </div>
24
- </header>
25
- <section>
26
- <p>
27
- you should start learning the skills which interests you or which can help you with your career.
28
- </p>
29
- <button id="get_started_btn">Get Started</button>
30
- @include('components.topdown')
31
- @include('components.bottomup')
32
  </section>
33
- </body>
34
-
35
- </html>
 
1
+ @extends('layouts.main')
2
+ @section('head')
3
+ <title>Dashboard</title>
4
+ <link rel="stylesheet" href="{{ asset('css/dashboard/home.css') }}">
5
+ @endsection
6
+ @section('main')
7
+ <section id="new_user_section">
8
+ <div class='sub_container'>
9
+ <p>
10
+ Start learning the skills which you always wanted to the right way.
11
+ </p>
12
+ <a href="{{ route('dashboard.explore') }}" id="get_started_btn">Get Started</a>
 
 
 
 
 
 
 
 
 
 
13
  </div>
14
+ <img src="{{ asset('images/skills collage.png') }}">
15
+ {{-- @include('components.topdown')
16
+ @include('components.bottomup') --}}
 
 
 
 
 
17
  </section>
18
+ @endsection
 
 
resources/views/home.blade.php CHANGED
@@ -1,27 +1,9 @@
1
- <html>
2
-
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
- <title>Learn Guide | Home Page</title>
8
- <link rel="stylesheet" href="{{ asset('css/home.css') }}">
9
- </head>
10
-
11
- <body>
12
- <header>
13
- <a class='title'>LearnGuide</a>
14
- <div class="sub_header">
15
- <div>
16
- <a>Dashboard</a>
17
- <a>My Skills</a>
18
- <a>Explore</a>
19
- </div>
20
- <div>
21
- <a href="{{ route('login.form') }}">Login</a>
22
- </div>
23
- </div>
24
- </header>
25
  <section id='info_container'>
26
  <p>
27
  Let’s learn skills the right way
@@ -34,7 +16,11 @@
34
  <section id='topdown_container'>
35
  <h2 class="heading">Top Down Approach</h2>
36
  <div class="main_section">
37
- <p>Top-down learning is a teaching style that focuses on providing students a large view of a subject, without explaining the components that make up the subject. It is based on the idea that a teacher drives the classroom and determines what is to be taught. Top-down learning also involves perceiving the world by drawing from what we already know in order to interpret new information. Top-down learning is influenced by higher mental processes such as expectations, beliefs, values, and social influences.</p>
 
 
 
 
38
  @include('components.topdown')
39
  </div>
40
  </section>
@@ -42,10 +28,12 @@
42
  <h2 class="heading">Bottom Up Approach</h2>
43
  <div class="main_section">
44
  @include('components.bottomup')
45
- <p>Bottom-up learning is a teaching style that focuses on providing students the components that make up a subject, and then building up to a larger view of the subject. It is based on the idea that students are active learners who construct their own knowledge from the bottom up. Bottom-up learning also involves perceiving the world by processing sensory information and building up to higher levels of cognition. Bottom-up learning is influenced by lower mental processes such as perception, attention, memory, and reasoning.</p>
 
 
 
 
 
46
  </div>
47
  </section>
48
-
49
- </body>
50
-
51
- </html>
 
1
+ @extends('layouts.main')
2
+ @section('head')
3
+ <title>Learn Guide | Home Page</title>
4
+ <link rel='stylesheet' href="{{ asset('css/home.css') }}">
5
+ @endsection
6
+ @section('main')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  <section id='info_container'>
8
  <p>
9
  Let’s learn skills the right way
 
16
  <section id='topdown_container'>
17
  <h2 class="heading">Top Down Approach</h2>
18
  <div class="main_section">
19
+ <p>Top-down learning is a teaching style that focuses on providing students a large view of a subject, without
20
+ explaining the components that make up the subject. It is based on the idea that a teacher drives the
21
+ classroom and determines what is to be taught. Top-down learning also involves perceiving the world by
22
+ drawing from what we already know in order to interpret new information. Top-down learning is influenced by
23
+ higher mental processes such as expectations, beliefs, values, and social influences.</p>
24
  @include('components.topdown')
25
  </div>
26
  </section>
 
28
  <h2 class="heading">Bottom Up Approach</h2>
29
  <div class="main_section">
30
  @include('components.bottomup')
31
+ <p>Bottom-up learning is a teaching style that focuses on providing students the components that make up a
32
+ subject, and then building up to a larger view of the subject. It is based on the idea that students are
33
+ active learners who construct their own knowledge from the bottom up. Bottom-up learning also involves
34
+ perceiving the world by processing sensory information and building up to higher levels of cognition.
35
+ Bottom-up learning is influenced by lower mental processes such as perception, attention, memory, and
36
+ reasoning.</p>
37
  </div>
38
  </section>
39
+ @endsection
 
 
 
resources/views/layouts/main.blade.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <html>
2
+
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="stylesheet" href="{{ asset('css/layouts/main.css') }}">
8
+ @yield('head')
9
+ </head>
10
+
11
+ <body>
12
+ <header>
13
+ <a class='title' href="{{ route('home') }}">LearnGuide</a>
14
+ <div class="sub_header">
15
+ <div>
16
+ <a href="{{ route('dashboard') }}">Dashboard</a>
17
+ <a>My Skills</a>
18
+ <a href="{{ route('dashboard.explore') }}">Explore</a>
19
+ </div>
20
+
21
+ @if (!Auth::guard('customuser')->check())
22
+ <div>
23
+ <a href="{{ route('login.form') }}">Login</a>
24
+ </div>
25
+ @else
26
+ <div id="user_badge">
27
+ {{ Auth::guard('customuser')->user()->username }}
28
+ </div>
29
+ @endif
30
+ </div>
31
+ </div>
32
+ </header>
33
+ @yield('main')
34
+
35
+ </body>
36
+
37
+ </html>
routes/web.php CHANGED
@@ -25,5 +25,6 @@
25
  Route::prefix('/dashboard')->middleware('is_customuser')->controller(DashboardController::class)->group(function(){
26
 
27
  Route::get("/",'home')->name("dashboard");
 
28
 
29
  });
 
25
  Route::prefix('/dashboard')->middleware('is_customuser')->controller(DashboardController::class)->group(function(){
26
 
27
  Route::get("/",'home')->name("dashboard");
28
+ Route::get("/explore",'explore')->name("dashboard.explore");
29
 
30
  });