Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ partial "header.html" . }}

<div id="main">
<div id="main" class="main">
<section class="first" id="first">
<div class="container">
{{ with .Site.Params.Index.First }}
Expand Down Expand Up @@ -131,7 +131,7 @@ <h3 class="section-title">

<section class="seventh" id="seventh">
<div class="section-wave">
<img class="section-img70" src="/assets/7-0.svg" alt="wave1" />
<img class="section-img70 pc-show" src="/assets/7-0.svg" alt="wave1" />
</div>

<div class="container">
Expand All @@ -147,7 +147,7 @@ <h3 class="section-title">{{ .title }}</h3>

<img class="section-img71" src="/assets/7-1.svg" alt="wave2" />
<img class="section-img72" src="/assets/7-2.svg" alt="diamond1" />
<img class="section-img73" src="/assets/7-3.svg" alt="diamond2" />
<img class="section-img73 pc-show" src="/assets/7-3.svg" alt="diamond2" />
</div>
</section>

Expand Down
27 changes: 19 additions & 8 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Title }} | {{ .Site.Title }}</title>

{{ if .IsHome }}
<link rel="stylesheet" href="{{ "/css/plugin/aos.css" | relURL }}" />
<link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" />
<link rel="stylesheet" href="{{ "/css/home_clip.css" | relURL }}">
{{ end }}

{{ partial "head_custom.html" . }}
Expand All @@ -17,11 +16,23 @@
<body>
<nav class="header">
<div class="container">
<h1 class="logo"><a href="#"><img src="/assets/logo.svg" alt="" height="36"></a></h1>
<ul class="menu">
{{ range .Site.Menus.main }}
<li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
{{ end }}
</ul>
<h1 class="logo">
<a href="#">
<img class="pc-show" src="/assets/logo.svg" alt="openPitrix" height="36">
<span class="logo1 mobile-show" style="background-image: url('/assets/logo-1.svg');"></span>
<span class="logo2" style="background-image: url('/assets/logo-2.svg');"></span>
</a>
</h1>
<button class="menu-btn mobile-show"></button>
<div class="menu-wrapper">
<ul class="menu">
{{ range .Site.Menus.main }}
<li>
<a href="{{ .URL | relURL }}">{{ .Name }}</a>
<img class="mobile-show" src="/assets/arrow-right.svg" alt="arrow-right">
</li>
{{ end }}
</ul>
</div>
</div>
</nav>
257 changes: 138 additions & 119 deletions layouts/partials/home_clip.html

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions static/assets/arrow-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions static/assets/logo-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions static/assets/logo-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 81 additions & 0 deletions static/css/home_clip.css
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,84 @@
animation-delay: .5s;
}

/* common */
.pc-show {
display: block;
}
.mobile-show {
display: none;
}

/* pc narrow screen */
@media (max-width: 1200px) {
.section-process .center-pitrix-icon {
left: 550px;
}
}

/* ipad pro vertical screen & mobile */
@media (max-width: 1024px) {
.section-process {
display: flex;
justify-content: center;
align-items: center;
}
.img-sources img {
width: 0.4rem;
height: 0.4rem;
}
.img-sources #java {
top: 0.3rem;
left: 0.2rem;
}
.img-sources #php {
top: auto;
bottom: 0.3rem;
left: 0.2rem;
}
.img-sources #more {
top: 0.77rem;
left: 0.65rem;
}
.left-dots {
top: 0.66rem;
left: 0.55rem;
}
.img-targets img {
width: 0.6rem;
right: 0.15rem !important;
}
.img-targets #aws {
top: 0.1rem;
}
.img-targets #qingcloud {
top: 0.73rem;
}
.img-targets #vmware {
top: auto;
bottom: 0.1rem;
}
.center-pitrix-icon {
position: static;
width: auto !important;
height: auto !important;
margin: 0.05rem 0 0 0.1rem;
transform: scale(1);
}
.right-dots {
top: 0.4rem;
right: 0.68rem;
}
}

@media (max-width: 768px) {
.center-pitrix-icon {
transform: scale(0.8);
}
}

@media (max-width: 414px) {
.center-pitrix-icon {
transform: scale(0.5);
}
}
Loading