Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1fed1b3b
authored
Nov 02, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
c1b7e081
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
160 additions
and
28 deletions
app/Http/Middleware/CheckIp.php
resources/views/common/headerNav.blade.php
resources/views/common/headerNavDisabled.blade.php
resources/views/info/index.blade.php
resources/views/info/index.html
app/Http/Middleware/CheckIp.php
View file @
1fed1b3b
...
...
@@ -23,9 +23,10 @@ class CheckIp
$ip
=
$request
->
ip
();
$result
=
geoip
(
$ip
);
if
(
in_array
(
$result
->
iso_code
,
config
(
'field.disable_ip_iso_code'
)))
{
view
()
->
share
(
'is_disable_ip'
,
true
);
view
()
->
share
(
'is_disable_ip'
,
1
);
return
redirect
()
->
to
(
'/info'
);
}
view
()
->
share
(
'is_disable_ip'
,
0
);
return
$next
(
$request
);
}
}
resources/views/common/headerNav.blade.php
View file @
1fed1b3b
<div
class=
"gw-header-nav"
style=
"
<?php
if
(
isset
(
$_COOKIE
[
'topclose'
]))
{
echo
'top:0px;'
;
}
?>
"
>
<div
class=
"gw-header-nav"
style=
"
<?php
if
(
isset
(
$_COOKIE
[
'topclose'
]))
{
echo
'top:0px;'
;
}
?>
"
>
<div
class=
"ghn-con clr"
>
<a
class=
"fl ghn-logo"
href=
"/"
><img
src=
"/assets/images/home/top.png?v=20230222"
alt=
""
></a>
<div
class=
"fr clr ghn-right-box"
>
<div
class=
"grb-top clr"
>
<a
href=
"javascript:void(0)"
class=
"fr clj gofooter"
>
CONTACT US
</a>
@if(Auth::check())
<div
class=
"login-head-box yesLogin fr clj"
>
<a
href=
"/user/order"
class=
"row"
>
<span><i
class=
"icon iconfont icon-touxiang"
></i></span>
<div
class=
"username"
>
{{Auth::user()->email??''}}
</div>
</a>
<div
class=
"userurl-box"
>
<a
href=
"/user/order"
>
My Orders
</a>
<a
href=
"/user/inquiry"
>
My RFQ
</a>
<a
href=
"/user/account"
>
My Account
</a>
<a
href=
"javascript:void(0)"
class=
"logoutbtns"
>
LOGOUT
</a>
<div
class=
"login-head-box yesLogin fr clj"
>
<a
href=
"/user/order"
class=
"row"
>
<span><i
class=
"icon iconfont icon-touxiang"
></i></span>
<div
class=
"username"
>
{{Auth::user()->email??''}}
</div>
</a>
<div
class=
"userurl-box"
>
<a
href=
"/user/order"
>
My Orders
</a>
<a
href=
"/user/inquiry"
>
My RFQ
</a>
<a
href=
"/user/account"
>
My Account
</a>
<a
href=
"javascript:void(0)"
class=
"logoutbtns"
>
LOGOUT
</a>
</div>
</div>
</div>
@else
<div
class=
"login-head-box notLoginclj fr clj"
>
<a
href=
"/login?referer={{\Illuminate\Support\Facades\URL::current()}}"
>
Login
</a>
<font>
/
</font>
<a
href=
"/reg?referer={{\Illuminate\Support\Facades\URL::current()}}"
>
Register
</a>
</div>
<div
class=
"login-head-box notLoginclj fr clj"
>
<a
href=
"/login?referer={{\Illuminate\Support\Facades\URL::current()}}"
>
Login
</a>
<font>
/
</font>
<a
href=
"/reg?referer={{\Illuminate\Support\Facades\URL::current()}}"
>
Register
</a>
</div>
@endif
<div
class=
"fr searchenter"
>
<div
class=
"searchtopbox"
>
<input
type=
"text"
class=
"mallsearchvalx"
/>
<div
class=
"searchtopbox"
>
<input
type=
"text"
class=
"mallsearchvalx"
/>
<span
class=
"mallsearchbtnx"
><i
class=
"icon iconfont icon-shouyesousuo"
></i></span>
</div>
<a
href=
"/search"
class=
"iconbx"
><i
class=
"icon iconfont icon-shouyesousuo"
></i></a>
</div>
<a
href=
"/car"
class=
"fr carbc iconbx"
><i
class=
"icon iconfont icon-gouwuche"
></i><span
class=
"carNum carNumxs"
>
0
</span></a>
</div>
<div
class=
"grb-bottom clr"
>
<ul
class=
"clr onenav"
>
<li
class=
"oneli fr"
>
<a
href=
"/about/quality"
class=
"onea"
>
Quality Inspection
</a>
</li>
<li
class=
"oneli fr"
><a
href=
"#"
class=
"onea frqbtnxs"
>
RFQ
</a></li>
<li
class=
"oneli fr"
><a
href=
"#"
class=
"onea frqbtnxs"
>
RFQ
</a></li>
<li
class=
"oneli fr"
><a
href=
"/mall"
class=
"onea"
>
STORE
</a></li>
<li
class=
"oneli fr"
>
<a
href=
"/about/company"
class=
"onea"
>
Company
</a>
...
...
resources/views/common/headerNavDisabled.blade.php
0 → 100644
View file @
1fed1b3b
<div
class=
"gw-header-nav"
style=
"
<?php
if
(
isset
(
$_COOKIE
[
'topclose'
]))
{
echo
'top:0px;'
;
}
?>
"
>
<div
class=
"ghn-con clr"
>
<a
class=
"fl ghn-logo"
href=
"/"
><img
src=
"/assets/images/home/top.png?v=20230222"
alt=
""
></a>
<div
class=
"fr clr ghn-right-box"
>
<div
class=
"grb-top clr"
>
<a
href=
"javascript:void(0)"
class=
"fr clj gofooter"
>
CONTACT US
</a>
@if(Auth::check())
<div
class=
"login-head-box yesLogin fr clj"
>
<a
href=
"/user/order"
class=
"row"
>
<span><i
class=
"icon iconfont icon-touxiang"
></i></span>
<div
class=
"username"
>
{{Auth::user()->email??''}}
</div>
</a>
<div
class=
"userurl-box"
>
<a
href=
"/user/order"
>
My Orders
</a>
<a
href=
"/user/inquiry"
>
My RFQ
</a>
<a
href=
"/user/account"
>
My Account
</a>
<a
href=
"javascript:void(0)"
class=
"logoutbtns"
>
LOGOUT
</a>
</div>
</div>
@else
<div
class=
"login-head-box notLoginclj fr clj"
>
<a
href=
"/login?referer={{\Illuminate\Support\Facades\URL::current()}}"
>
Login
</a>
<font>
/
</font>
<a
href=
"/reg?referer={{\Illuminate\Support\Facades\URL::current()}}"
>
Register
</a>
</div>
@endif
<div
class=
"fr searchenter"
>
<div
class=
"searchtopbox"
>
<input
type=
"text"
class=
"mallsearchvalx"
/>
<span
class=
"mallsearchbtnx"
><i
class=
"icon iconfont icon-shouyesousuo"
></i></span>
</div>
<a
href=
"/search"
class=
"iconbx"
><i
class=
"icon iconfont icon-shouyesousuo"
></i></a>
</div>
<a
href=
"/car"
class=
"fr carbc iconbx"
><i
class=
"icon iconfont icon-gouwuche"
></i><span
class=
"carNum carNumxs"
>
0
</span></a>
</div>
<div
class=
"grb-bottom clr"
>
<ul
class=
"clr onenav"
>
<li
class=
"oneli fr"
>
<a
href=
"/about/quality"
class=
"onea"
>
Quality Inspection
</a>
</li>
<li
class=
"oneli fr"
><a
href=
"#"
class=
"onea frqbtnxs"
>
RFQ
</a></li>
<li
class=
"oneli fr"
><a
href=
"/mall"
class=
"onea"
>
STORE
</a></li>
<li
class=
"oneli fr"
>
<a
href=
"/about/company"
class=
"onea"
>
Company
</a>
<ul
class=
"twonav"
>
<li
class=
"twoli"
><a
href=
"/about/company"
class=
"twoa"
>
About Us
</a></li>
<li
class=
"twoli"
><a
href=
"/about/certification"
class=
"twoa"
>
Certification
</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
\ No newline at end of file
resources/views/info/index.blade.php
0 → 100644
View file @
1fed1b3b
@
extends
(
'layouts.app'
)
@
section
(
'css'
)
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/home/home.min.css?v={{time()}
}
"
>
@
endsection
@
section
(
'title'
,
'Semour: The Global '
)
@
section
(
'body'
)
@
include
(
'common.headerTop'
)
@
include
(
'common.headerNavDisabled'
)
<
div
class
="
homepage
">
<div class="
floor1
">
<div class="
fl1
-
con
">
<div class="
rtdes
">
<p>STOCK AS A SERVICE</p>
<p class="
p24
">WHY CHOOSE SEMOUR?</p>
<img src="
{{
$public
}}
/
assets
/
images
/
home
/
mallgif
.
gif
" alt="">
</div>
<div class="
fl1botbox
row
rowCenter
">
<a class="
ftitem
">
<div>
<i class="
icon
iconfont
icon
-
PROCUREMENT
-
shuangse
"></i>
</div>
<p>PROCUREMENT</p>
<i class="
icon
iconfont
icon
-
lansejiantou
ijt
"></i>
</a>
<a class="
ftitem
">
<div>
<i class="
icon
iconfont
icon
-
a
-
QUALITYCONTROL
-
shuangse
"></i>
</div>
<p>QUALITY CONTROL</p>
<i class="
icon
iconfont
icon
-
lansejiantou
ijt
"></i>
</a>
<a class="
ftitem
ftlast
">
<div>
<i class="
icon
iconfont
icon
-
a
-
SUPPLYCHAIN
-
danse
"></i>
</div>
<p>SUPPLY CHAIN</p>
<i class="
icon
iconfont
icon
-
lansejiantou
ijt
"></i>
</a>
</div>
</div>
</div>
<div class="
floor2
">
<video src="
{{
$public
}}
/
assets
/
images
/
home
/
mallvadeo
.
mp4
" width="
1200
" autoplay loop controls muted></video>
</div>
<div class="
floor3
" style="
display
:
none
">
<div class="
row
">
<div class="
itemf3
trl
bgbts1
"><b>30M+</b>SKU</div>
<div class="
itemf3
trr
bgbts2
"><b>5000+</b>Suppliers</div>
</div>
<div class="
row
">
<div class="
itemf3
trl
bgbts3
"><b>3000+</b> Manufacturers</div>
<div class="
itemf3
trr
bgbts4
"><b>1000+</b>Catalogs</div>
</div>
</div>
<div class="
floor4
">
<p>READY TO CONNECT?</p>
<div class="
row
rowCenter
">
<a class="
but
" href="
/
mall
">LOCATE PARTS ON SEMOUR STORE</a>
<a class="
but
but
-
lk
frqbtnxs
">SUBMIT REAL-TIME RFQ </a>
</div>
</div>
@empty(
$_COOKIE['closehometips']
)
<div class="
footfixedcor
">
<div class="
confotfix
row
rowCenter
">
<div class="
textt
">We’ve updated our privacy policy. Please take a moment to review these changes. By clicking Accept Terms, you agree to Semour Electronics Privacy Policy and Terms of Use.</div>
<a class="
but
but
-
lk
" href="
/
about
/
privacy
">READ MORE</a>
<div class="
but
closehometips
">ACCEPT TERMS</div>
</div>
</div>
@endempty
@include('common.footersm')
</div>
@endsection
@section('js')
<script src="
{{
$public
}}
/
assets
/
js
/
home
/
home
.
js
?
v
=
{{
time
()}}
"></script>
@endsection
resources/views/info/index.html
deleted
100644 → 0
View file @
c1b7e081
12
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment