Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
deb96d0
edit home controller and layoutcshtml
Mar 25, 2019
d14b85d
View product page
Mar 25, 2019
4016287
Merge pull request #2 from ThangVDSE05281/TrongNQ
vinhtrong Mar 25, 2019
0094713
complete home
Mar 25, 2019
e388b79
View details page - commit 2
Mar 25, 2019
573dde9
Merge branch 'master' into tan
peanutnbt Mar 25, 2019
fcf33be
Merge pull request #5 from ThangVDSE05281/TrongNQ
vinhtrong Mar 25, 2019
cd8c19f
Merge branch 'master' into tan
peanutnbt Mar 25, 2019
575cb75
Merge pull request #6 from ThangVDSE05281/tan
peanutnbt Mar 25, 2019
e08a2ad
TrongNQ commit 3
Mar 25, 2019
5ee5980
add tan1
Mar 25, 2019
c5a7614
Commit date 26/03/2019
vinhtrong Mar 26, 2019
a3c77db
Complete News functionality
vinhtrong Mar 26, 2019
8b3e38f
3Functionalities
reijiokito Mar 26, 2019
4b7bfdc
Helping
reijiokito Mar 26, 2019
2439efe
search and paging
Mar 26, 2019
da4c922
Merge branch 'master' into tan1
peanutnbt Mar 26, 2019
7ed7384
Merge pull request #8 from ThangVDSE05281/tan1
peanutnbt Mar 26, 2019
80264e3
fix config
Mar 26, 2019
15f735f
Fix bug
vinhtrong Mar 26, 2019
65f3165
Fix bug
vinhtrong Mar 26, 2019
6ca060c
Fix bug
vinhtrong Mar 26, 2019
2b4c9fc
Add About and Contact Page
vinhtrong Mar 26, 2019
78d46bc
Tam hoan thanh full functionalities
reijiokito Mar 26, 2019
219a6df
Merge branch 'master' into cong
vinhtrong Mar 27, 2019
ebbec21
Merge pull request #9 from ThangVDSE05281/cong
vinhtrong Mar 27, 2019
aaf8317
Complete version 1.0
vinhtrong Mar 27, 2019
90b2d15
Version 1.0.1
vinhtrong Mar 27, 2019
849255c
Fix Bug
vinhtrong Mar 27, 2019
db96f34
Up database Script
vinhtrong Mar 27, 2019
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
Binary file added Database/script.sql
Binary file not shown.
1 change: 1 addition & 0 deletions Test/App_Start/BundleConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static void RegisterBundles(BundleCollection bundles)
"~/Content/bootstrap.css",
"~/Content/site.css",
"~/Content/home.css"));

}
}
}
76 changes: 74 additions & 2 deletions Test/App_Start/RouteConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

using Test.Models;
namespace Test
{
public class RouteConfig
Expand All @@ -18,11 +18,83 @@ public static void RegisterRoutes(RouteCollection routes)
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);

routes.MapRoute(
name: "AddCart",
url: "{controller}/{action}/{id}/{quantity}",
defaults: new { controller = "Home", action = "AddCart", id = UrlParameter.Optional, quantity = UrlParameter.Optional }
);

routes.MapRoute(
name: "ProductDetails",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "AddCart", id = UrlParameter.Optional }
defaults: new { controller = "Home", action = "ViewProduct", id = UrlParameter.Optional }
);

routes.MapRoute(
name: "Phone",
url: "{controller}/{action}",
defaults: new { controller = "PhonePage", action = "Index" }
);
routes.MapRoute(
name: "PhonePaging",
url: "{controller}/{action}/{page}",
defaults: new { controller = "PhonePage", action = "Paging", page = UrlParameter.Optional }
);

routes.MapRoute(
name: "LapTop",
url: "{controller}/{action}",
defaults: new { controller = "LapTopPage", action = "Index" }
);
routes.MapRoute(
name: "LapTopPaging",
url: "{controller}/{action}/{page}",
defaults: new { controller = "LapTopPage", action = "Paging", page = UrlParameter.Optional }
);
routes.MapRoute(
name: "Search",
url: "{controller}/{action}",
defaults: new { controller = "Search", action = "Index" }
);
routes.MapRoute(
name: "GetFirstSearch",
url: "{controller}/{action}",
defaults: new { controller = "Search", action = "GetFirstSearch" }
);


routes.MapRoute(
name: "News",
url: "{controller}/{action}/{id}",
defaults: new { controller = "News", action = "ViewPost", id = UrlParameter.Optional }
);
routes.MapRoute(
name: "ViewCart",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Cart", action = "ViewCart"}
);
routes.MapRoute(
name: "RemoveProduct",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Cart", action = "RemoveProduct",id = UrlParameter.Optional }
);
routes.MapRoute(
name: "UpdateProductSession",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Cart", action = "UpdateProductSession", id = UrlParameter.Optional,quantity=UrlParameter.Optional }
);
routes.MapRoute(
name: "ThanhToan",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Cart", action = "ThanToan"}
);
routes.MapRoute(
name: "Checkout",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Cart", action = "Checkout",id=UrlParameter.Optional }
);
}

}
}
184 changes: 184 additions & 0 deletions Test/Content/Site.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,187 @@ select,
textarea {
max-width: 280px;
}

/*View product page css*/
#view-product-body {
min-height: 550px;
}
.price-text-color {
color: #219FD1;
}

.price-sale .card .card-title {
background: #DE181D;
color: white;
padding: 1.25rem;
}
.price-sale .card .card-title span {
color: #F8E31C;
}

.price-sale .card .card-block .card-text span:before {
content: '';
background: url(../../Images/bullet.png);
width: 14px;
height: 14px;
background-size: 14px 14px;
}

.price-sale .card .card-block .buy-now {
display: block;
overflow: hidden;
padding: 9px 0;
background-image: linear-gradient(-180deg,#e52025 2%,#d81116 96%);
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
font-size: 16px;
line-height: normal;
text-transform: uppercase;
color: #fff;
text-align: center;
}
.price-sale .card .card-block .buy-now span {
display: block;
font-size: 12px;
color: #fff;
text-transform: none;
}

.price-sale .card .card-block .buy-ins span {
display: block;
font-size: 12px;
color: #fff;
text-transform: none;
}

.price-sale .card .card-block .buy-ins {
line-height: normal;
display: block;
padding: 9px 0;
text-align: center;
margin: 10px 0 0;
background-image: linear-gradient(-180deg,#288ad6 0%,#0e74c3 100%);
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
color: #fff;
font-size: 16px;
text-transform: uppercase;
}

.view-content ul.policy {
border: 1px dashed #f6a623;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
margin-bottom: 30px;
margin-top: 0;
}

.checkexist .dropdown {
margin-top:10px;
width: 100%;
}
.breadcrumb-item + .breadcrumb-item::before {
display: inline-block;
padding-right: 0.5rem;
padding-left: 0.5rem;
color: #636c72;
content: "/";
}
.container-card-button {
flex: 1;
display: flex;
align-items: center;
background: #0090e3;
color: #fff;
}

.container-card-button .icon-card {
font-size: 22px;
padding: 5px 8px;
}
.btn-default {
flex: 1;
transition: 0.4s;
color: #fff;
background-color: #303030;
text-transform: uppercase;
}

/*Footer*/
#myFooter {
background-color: #3c3d41;
color: white;
margin-top: 20px;
padding-top: 30px;
font-size: 20px;
margin-bottom: -20px;
}
.footer-copyright {
background-color: #333333;
padding-top: 3px;
padding-bottom: 3px;
text-align: center;
}
#myFooter .social-networks {
text-align: center;
padding-top: 10px;
padding-bottom: 16px;
}
#myFooter .social-networks a {
color: white;
font-size: 34px;
margin-right: 10px;
}
#myFooter .btn {
color: white;
background-color: #d84b6b;
border-radius: 20px;
cursor: pointer;
border: none;
width: 150px;
display: block;
margin: 10px auto;
line-height: 25px;
}
#myFooter .col-sm-2>ul>li>a {
color: white;
}
/*Style for view news page*/
#header-news {
max-width: 100%;
min-height: 250px;
padding: 100px !important;
background: linear-gradient(141deg, #0fb8ad 0%, #1fc8db 51%, #2cb5e8 75%);
opacity: 0.95;
}
.news-header-title {
color: white;
text-align: center;
}
.news-des {
font-size: 25px;
text-align: left;
border-left: 5px solid coral;
padding-left: 5px;
}
article .imgwrap {
position: relative;
min-height: 100px;
margin-top: 5px;
background: #f1f1f1;
margin: 0 auto;
}
article .imgwrap img {
max-width: 825px;
}
#news-wrapper {
margin-top: 20px;
max-width: 100%;
padding: 15px;
}
.infor-news a {
color: white;
}
Loading