Skip to content

Commit

Permalink
use elegoo svg
Browse files Browse the repository at this point in the history
  • Loading branch information
12944qwerty committed Oct 11, 2024
1 parent 413e829 commit 8422e1f
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 7 deletions.
2 changes: 1 addition & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ ul.experience-chart h4 {
}

.owl-carousel {
margin-top: 50px;
margin-top: 30px;
}

.sponsors-container h1 {
Expand Down
2 changes: 1 addition & 1 deletion content/english/blog/blacklightning.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ date: "2020-05-12T12:14:34+06:00"
image: "images/portfolio/blackLightning.jpg"
tags: ["Competition"]
description: "Showcase of BLRS2's 18\" Robot Black Lightning"
draft: false
draft: true
---

<!--{{<example>}} -->
Expand Down
2 changes: 1 addition & 1 deletion content/english/blog/elegoo.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Elegoo"
titleimg: "images/clients/elegoo/elegoo.png"
titlesvg: "elegoo.svg"
date: "2024-08-22T12:00:00-04:00"
image: "images/clients/elegoo/filament.jpg"
tags: ["Elegoo"]
Expand Down
2 changes: 1 addition & 1 deletion content/english/sponsors.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ draft: false
sponsor_slider:
# slider item loop
- name : ""
image : "images/clients/elegoo/elegoo.png"
svgimage : "elegoo.svg"
designation : ""
content : "ELEGOO's generous sponsorship will provide us with top-notch filaments, ensuring that our robots are built to last and perform at their best. As a leader in the 3D printing industry, ELEGOO offers a wide range of high-quality products, from 3D printers and filaments to resins and laser engravers. We are excited to incorporate their innovative solutions into our design process, confident that their support will elevate our competitive edge."
custom_attributes: "style='border-radius:0% !important;'"
Expand Down
6 changes: 4 additions & 2 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
<div class="wow fadeInUp" data-wow-duration="1.5s">
{{ with .Params.image }}<img src="{{. | absURL}}" alt="image" class="img-fluid w-100 mb-5">{{ end }}
<div class="about-me-text mb-4">
{{ if .Params.titleimg }}
<img src="{{.Params.titleimg | absURL}}" alt="{{.Title}}" class="img-fluid" height="30px">
{{ if .Params.titlesvg }}
{{ partial .Params.titlesvg }}
{{ else if .Params.titleimg }}
<img src="{{.Params.titleimg | absURL}}" alt="{{.Title}}" class="img-fluid" height="30px">
{{ else }}
<h1>{{.Title | markdownify}}</h1>
{{ end }}
Expand Down
6 changes: 5 additions & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,11 @@ <h1 class="wow fadeInUp" data-wow-duration="1.5s">{{ .Title | markdownify }}</h1
{{ range .Params.sponsor_slider }}
<div class="single-sponsor">
<div class="sponsor-holder">
<img class="img-fluid" src="{{ .image | absURL }}" alt="{{ .name }}">
{{ if .svgimage }}
{{ partial .svgimage "100" }}
{{ else }}
<img class="img-fluid" src="{{ .image | absURL }}" alt="{{ .name }}">
{{ end }}
<h2>{{ .name }}</h2>
<span>{{ .designation | markdownify }}</span>
<p><i class="fa fa-quote-left"></i> {{ .content | markdownify }} <i class="fa fa-quote-right"></i></p>
Expand Down
38 changes: 38 additions & 0 deletions layouts/partials/elegoo.svg.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

<svg class="img-fluid" viewBox="0 0 990 195" height="{{ . }}" style="display:block;margin:auto" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" version="1.1">
<defs id="defs6">
<clipPath clipPathUnits="userSpaceOnUse" id="clipPath16">
<path d="m0,768l1366,0l0,-768l-1366,0l0,768z" id="path14"/>
</clipPath>
<linearGradient id="linearGradient48" spreadMethod="pad" x1="-0.29" x2="1.19" y1="0.5" y2="0.5">
<stop id="stop34" offset="0" stop-color="#935bff"/>
<stop id="stop36" offset="0.11" stop-color="#935bff"/>
<stop id="stop38" offset="0.43" stop-color="#0036ff"/>
<stop id="stop40" offset="0.43" stop-color="#0036ff"/>
<stop id="stop42" offset="0.88" stop-color="#00cfff"/>
<stop id="stop44" offset="0.88" stop-color="#00cfff"/>
<stop id="stop46" offset="1" stop-color="#00cfff"/>
</linearGradient>
</defs>
<g class="layer">
<title>Layer 1</title>
<g id="g8" transform="translate(1 -4) translate(0 5) matrix(1.33333 0 0 -1.33333 -452 621)">
<g id="g10">
<g clip-path="url(#clipPath16)" id="g12">
<g id="g18" transform="translate(779.14,379.3114)">
<path d="m0,0l-39.83,0l0,23.37l67.24,0l0,-75.25l-22.96,0l0,17.04c-9.17,-12.96 -23.33,-17.74 -39.45,-18.66c-16.68,-0.95 -33.47,5.32 -45.89,16.38c-14.47,12.87 -21.7,30.71 -21.7,49.95c0,39.82 26.14,70.98 66.96,70.98c16.24,0 31.41,-4.99 43.85,-15.56c4.72,-4.02 10.41,-10.23 13.34,-15.82l0.56,-1.07l-22.91,-14.69l-0.66,1.35c-11.1,22.4 -42.49,26.86 -60.07,9.51c-7.9,-7.79 -13.17,-20.08 -13.17,-31.21c0,-9.41 2.81,-19.96 7.93,-27.86c7.25,-11.2 18.2,-16.36 31.43,-16.36c18.17,-0.01 30.5,11.31 35.33,27.9m-292.07,-26.64l68.49,0l0,-25.22l-95.47,0l0,1.34l0,131.16l0,1.34l26.98,0l0,-108.62zm-118.1,83.4l0,-28.22l59.06,0l0,-25.22l-59.06,0l0,-29.96l72.78,0l0,-25.22l-99.76,0l0,1.34l0,131.16l0,1.34l99.76,0l0,-25.22l-72.78,0zm227.18,0l0,-28.22l59.06,0l0,-25.22l-59.06,0l0,-29.96l72.77,0l0,-25.22l-99.76,0l0,1.34l0,131.16l0,1.34l99.76,0l0,-25.22l-72.77,0z" fill="#0036ff" fill-rule="evenodd" id="path20"/>
</g>
</g>
</g>
<g id="g22">
<g id="g24">
<g id="g30">
<g id="g32">
<path d="m823.37,394.7c0,-39.23 29.05,-68.94 68.53,-68.94l0,0c20.57,0 38.31,8.06 50.59,21.35l0,0c-5.28,8.05 -9,14.22 -13.38,22.36l0,0c-6.35,-6.95 -15.55,-13.03 -25.16,-16.01l0,0c-27.47,-8.5 -52.34,13.1 -52.34,41.26l0,0c0,22.63 16.95,43.19 40.29,43.19l0,0c14.81,0 27.62,-8.38 34.67,-21.28l0,0c11.04,-18.32 11.35,-41.07 23.11,-59.82l0,0c12.36,-19.83 34.6,-31.09 57.79,-31.09l0,0c38.89,0 68.53,30.25 68.53,68.94l0,0c0,39.24 -29.05,68.95 -68.53,68.95l0,0c-20.57,0 -38.3,-8.07 -50.59,-21.36l0,0c5.28,-8.05 9.01,-14.22 13.38,-22.36l0,0c6.1,6.73 14.9,12.64 24.18,15.71l0,0c27.83,9.2 53.32,-12.28 53.32,-40.95l0,0c0,-22.63 -16.95,-43.2 -40.29,-43.2l0,0c-14.81,0 -27.62,8.38 -34.66,21.29l0,0c-10.81,17.93 -11.12,40.68 -23.12,59.81l0,0c-12.37,19.85 -34.61,31.09 -57.79,31.09l0,0c-38.89,0 -68.53,-30.25 -68.53,-68.94" fill="url(#linearGradient48)" id="path50"/>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>

0 comments on commit 8422e1f

Please sign in to comment.