Merge branch 'main' into link-to-package-yml

This commit is contained in:
neil 2022-12-08 07:54:31 +08:00
commit bca44c97fa
7 changed files with 217 additions and 15 deletions

View file

@ -6,14 +6,16 @@ for row in $(jq -r '.[] | @base64' < "$1"); do
_jq() { _jq() {
echo "${row}" | base64 --decode | jq -r "${1}" echo "${row}" | base64 --decode | jq -r "${1}"
} }
full_name=$(_jq '.full_name') full_name=$(_jq '.full_name' | sed 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/')
if [[ "$full_name" == *\/* ]] || [[ "$full_name" == *\\* ]] if [[ "$full_name" == *\/* ]] || [[ "$full_name" == *\\* ]]
then then
mkdir -p "$2/+$full_name" mkdir -p "$2/+$full_name"
# remove last folder
rm -rf "$2/+$full_name" rm -rf "$2/+$full_name"
fi fi
touch "$2"/"+$(_jq '.full_name')".md
touch "$2"/"+$full_name".md
content="--- content="---
type: page type: page
title: \"$(_jq '.name')\" title: \"$(_jq '.name')\"
@ -21,5 +23,5 @@ maintainer: \"$(_jq '.maintainer')\"
Description: \"$(_jq '.desc' | tr '\"' "'")\" Description: \"$(_jq '.desc' | tr '\"' "'")\"
layout: \"package-detail\" layout: \"package-detail\"
---" ---"
echo "$content" > "$2"/"+$(_jq '.full_name')".md echo "$content" > "$2"/"+$full_name".md
done done

View file

@ -8,14 +8,15 @@
<div class="container hero-container"> <div class="container hero-container">
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<h1 class="impact" style="z-index:3; position: relative;">Keep <span class="white">what</span><br><span class="hero-float" style="float:right;"><span class="white">is</span> yours.</span></h1> <h1 class="impact" style="z-index:3; position: relative;">TEA <span class="white">CLI</span><br><span class="hero-float" style="float:right;"><span class="white">is</span> HERE.</span></h1>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12"> <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class="lead-text-container animated-25 animatedFadeInUp fadeInUp black-bg p-4" style="z-index:3; position: relative;"> <div class="lead-text-container animated-25 animatedFadeInUp fadeInUp black-bg p-4" style="z-index:3; position: relative;">
<p class="lead" style="margin-bottom: 0px;">The open-source revolution is here. Were calling on all devs to build with our powerful, new unified package manager.</p> <p class="lead" style="margin-bottom: 0px;"><a href="https://github.com/teaxyz/cli">Visit GitHub</a> to check out our README, and &#11088; the repository. You can install tea by running the one&#8208;liner in your terminal.</p>
</div> </div>
{{- partial "purple-btn-large.html" -}}
<img class="mobile-grid-element mt-5" src="/Images/mobile-grid-element-3-rows.svg" alt="grid"> <img class="mobile-grid-element mt-5" src="/Images/mobile-grid-element-3-rows.svg" alt="grid">
</div> </div>
</div> </div>

View file

@ -5,7 +5,7 @@
width:57vw; width:57vw;
height: 19.3vw; height: 19.3vw;
left: 6.8vw; left: 6.8vw;
margin-top:164vw; margin-top:173vw;
z-index: 1; z-index: 1;
background-image: url("/Images/gen-art/orange-pattern.jpg"); background-image: url("/Images/gen-art/orange-pattern.jpg");
background-position: center; background-position: center;
@ -18,7 +18,7 @@
width:36vw; width:36vw;
height: 19.3vw; height: 19.3vw;
right: 6.8vw; right: 6.8vw;
margin-top:154vw; margin-top:183vw;
z-index: 3; z-index: 3;
background-image: url("/Images/gen-art/gen-art-_0010_DALL·E 2022-09-01 10.48.33 - bright blue and green _Its time we stop robbing Peter to pay Mark and Jeff._.jpg"); background-image: url("/Images/gen-art/gen-art-_0010_DALL·E 2022-09-01 10.48.33 - bright blue and green _Its time we stop robbing Peter to pay Mark and Jeff._.jpg");
background-position: center; background-position: center;
@ -32,7 +32,7 @@
height: 18vw; height: 18vw;
border-radius:200px; border-radius:200px;
right: 40vw; right: 40vw;
margin-top:167vw; margin-top:170vw;
z-index: 3; z-index: 3;
background-image: url("/Images/gen-art/gen-art-_0002_DALL·E 2022-09-01 09.50.45 - rainbow oil spill on pavement.png.jpg"); background-image: url("/Images/gen-art/gen-art-_0002_DALL·E 2022-09-01 09.50.45 - rainbow oil spill on pavement.png.jpg");
background-position: center; background-position: center;
@ -46,7 +46,7 @@
width:36vw; width:36vw;
height: 12vw; height: 12vw;
right: 50vw; right: 50vw;
margin-top:180vw; margin-top:190vw;
z-index: 2; z-index: 2;
background-image: url("/Images/gen-art/gen-art-_0011_DALL·E 2022-09-01 10.52.27 - neon pink colored subway wall painted in the style of keith haring.png.jpg"); background-image: url("/Images/gen-art/gen-art-_0011_DALL·E 2022-09-01 10.52.27 - neon pink colored subway wall painted in the style of keith haring.png.jpg");
background-position: center; background-position: center;
@ -100,6 +100,7 @@
</style> </style>
<div class="gen-art-mobile animated-25 animatedFadeInUp fadeInUp" id="m-home-gen-art-1"></div> <div class="gen-art-mobile animated-25 animatedFadeInUp fadeInUp" id="m-home-gen-art-1"></div>
<div class="gen-art-mobile animated-5 animatedFadeInUp fadeInUp" id="m-home-gen-art-2"></div> <div class="gen-art-mobile animated-5 animatedFadeInUp fadeInUp" id="m-home-gen-art-2"></div>
<div class="gen-art-mobile" id="m-home-gen-art-3"></div> <div class="gen-art-mobile" id="m-home-gen-art-3"></div>

View file

@ -19,12 +19,12 @@
<span class="package-install-no">>{{- .installs -}}&nbsp;installs</span> --> <span class="package-install-no">>{{- .installs -}}&nbsp;installs</span> -->
</p> </p>
</div> </div>
<a href="/+{{- .full_name -}}/"> <a href="/+{{- lower .full_name -}}/">
{{- partial "detail-btn.html" . -}} {{- partial "detail-btn.html" . -}}
</a> </a>
</div> </div>
<div class="card-body thumbnail-body-mobile"> <div class="card-body thumbnail-body-mobile">
<a href="/+{{- .full_name -}}/"> <a href="/+{{- lower .full_name -}}/">
<button class="detail-btn-mobile"><i class="icon-enter-arrow"></i>details</button> <button class="detail-btn-mobile"><i class="icon-enter-arrow"></i>details</button>
</a> </a>
</div> </div>

View file

@ -0,0 +1,198 @@
<a href="https://github.com/teaxyz/cli">
<button class="purple-btn-large"><i class="icon-enter-arrow"></i>VISIT GITHUB</button>
</a>
<style>
/* Detail Button - Large */
@media only screen and (min-width: 1200px) {
.purple-btn-large{
font-family: "pp-neue-machina", sans-serif;
font-size: 16px;
background-color: #8000ff;
border: none;
color: #fff;
padding-top: 0.279vw;
text-decoration: none;
text-transform: uppercase;
width: 20.925vw;
height: 4.185vw;
transition: 0.2s ease-in-out;
}
.purple-btn-large:hover{
background-color: #8000ff;
box-shadow: inset 0vw 0vw 0vw 0.335vw #1a1a1a !important;
}
/* Icon Styling */
.purple-btn-large .icon-enter-arrow{
display: inline-block;
position: relative;
margin-right: 0.558vw;
transition: 0.2s ease-in-out;
}
.purple-btn-large:hover .icon-enter-arrow{
display: inline-block;
transform: rotate(-45deg) !important;
}
}
@media only screen and (min-width: 992px) and (max-width: 1200px) {
.purple-btn-large{
font-family: "pp-neue-machina", sans-serif;
font-size: 16px;
background-color: #8000ff;
border: none;
color: #fff;
padding-top: 0.279vw;
text-decoration: none;
text-transform: uppercase;
width: 30vw;
height: 5vw;
transition: 0.2s ease-in-out;
margin-bottom: 1vw;
}
.purple-btn-large:hover{
background-color: #8000ff;
box-shadow: inset 0vw 0vw 0vw 0.335vw #1a1a1a !important;
}
/* Icon Styling */
.purple-btn-large .icon-enter-arrow{
display: inline-block;
position: relative;
margin-right: 0.558vw;
transition: 0.2s ease-in-out;
}
.purple-btn-large:hover .icon-enter-arrow{
display: inline-block;
transform: rotate(-45deg) !important;
}
}
@media only screen and (min-width: 768px) and (max-width: 992px) {
.purple-btn-large{
font-family: "pp-neue-machina", sans-serif;
font-size: 14px;
background-color: #8000ff;
border: none;
color: #fff;
padding-top: 0.279vw;
text-decoration: none;
text-transform: uppercase;
width: 30vw;
height: 5.141vw;
margin-bottom: 1vw;
transition: 0.2s ease-in-out;
}
.purple-btn-large:hover{
box-shadow: inset 0vw 0vw 0vw 0.335vw #1a1a1a !important;
}
/* Icon Styling */
.purple-btn-large .icon-enter-arrow{
display: inline-block;
position: relative;
margin-right: 0.558vw;
transition: 0.2s ease-in-out;
}
.purple-btn-large:hover .icon-enter-arrow{
display: inline-block;
transform: rotate(-45deg) !important;
}
}
@media only screen and (min-width: 576px) and (max-width: 768px) {
.purple-btn-large{
font-family: "pp-neue-machina", sans-serif;
font-size: 14px;
background-color: #8000ff;
border: none;
color: #fff;
padding-top: 0.279vw;
text-decoration: none;
text-transform: uppercase;
width: 33.85vw;
height: 6.77vw;
margin-bottom: 2.5vw;
transition: 0.2s ease-in-out;
}
.purple-btn-large:hover{
background-color: #8000ff;
box-shadow: inset 0vw 0vw 0vw 0.335vw #1a1a1a !important;
}
/* Icon Styling */
.purple-btn-large .icon-enter-arrow{
display: inline-block;
position: relative;
margin-right: 0.558vw;
transition: 0.2s ease-in-out;
}
.purple-btn-large:hover .icon-enter-arrow{
display: inline-block;
transform: rotate(-45deg) !important;
}
}
@media only screen and (max-width: 576px) {
.purple-btn-large{
display:inline-block;
font-family: "pp-neue-machina", sans-serif;
font-size: 3vw;
background-color: #8000ff;
border: none;
color: #fff;
padding-top: 0.279vw;
text-decoration: none;
text-transform: uppercase;
width: 100%;
height: 14vw;
margin-top: 5vw;
transition: 0.2s ease-in-out;
}
.purple-btn-large:hover{
background-color: #8000ff;
box-shadow: inset 0vw 0vw 0vw 1.25vw #1a1a1a !important;
}
/* Icon Styling */
.purple-btn-large .icon-enter-arrow{
display: inline-block;
position: relative;
margin-right: 2vw;
transition: 0.2s ease-in-out;
}
.purple-btn-large:hover .icon-enter-arrow{
display: inline-block;
transform: rotate(-45deg) !important;
}
}
</style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 407 KiB

View file

@ -247,7 +247,7 @@ mark{
align-items: center; align-items: center;
height: 15vw; height: 15vw;
margin-top: 0.4vw; margin-top: 0.4vw;
margin-bottom: 1vw; margin-bottom: 0px;
} }
.package_before{ .package_before{
@ -303,7 +303,7 @@ mark{
align-items: center; align-items: center;
height: 15vw; height: 15vw;
margin-top: 1.1vw; margin-top: 1.1vw;
margin-bottom: 1vw; margin-bottom: 0px;
} }
.package_before{ .package_before{
@ -358,8 +358,8 @@ mark{
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 20.2vw; height: 20.2vw;
margin-top: 1.3vw; margin-top: .5vw;
margin-bottom: 2.5vw; margin-bottom: 0;
} }
.metric-block{ .metric-block{