chore: point the repository links to Gitea and swap the GitHub icon
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b1a4f4263f
commit
d8323c653b
4 files changed
+19
-19
No files matched your search
+7
-14
@@ -1,19 +1,12 @@
|
|||||||
import { paginaMeta, jsonLd } from "@/lib/seo";
|
import { paginaMeta, jsonLd, SITE } from "@/lib/seo";
|
||||||
import Header from "@/components/Header";
|
import Header from "@/components/Header";
|
||||||
import Footer from "@/components/Footer";
|
import Footer from "@/components/Footer";
|
||||||
import PageHero from "@/components/PageHero";
|
import PageHero from "@/components/PageHero";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
import GiteaMark from "@/components/GiteaMark";
|
||||||
import { ArrowUpRight, Code, Globe, GitCompare, Info, Languages } from "lucide-react";
|
import { ArrowUpRight, Code, Globe, GitCompare, Info, Languages } from "lucide-react";
|
||||||
|
|
||||||
const GITHUB = "https://github.com/lucasrguerra/ESPDocs";
|
const REPOSITORIO = SITE.repositorio;
|
||||||
|
|
||||||
function GithubMark({ className }) {
|
|
||||||
return (
|
|
||||||
<svg className={className} viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
|
||||||
<path d="M12 .5a12 12 0 00-3.8 23.4c.6.1.8-.3.8-.6v-2.1c-3.3.7-4-1.6-4-1.6-.5-1.2-1.2-1.5-1.2-1.5-1-.7.1-.7.1-.7 1.1.1 1.7 1.1 1.7 1.1 1 .1 1.6-.7 1.9-1 .1-.8.4-1.3.8-1.6-2.6-.3-5.3-1.3-5.3-5.8 0-1.3.5-2.3 1.2-3.1-.1-.3-.5-1.6.1-3.3 0 0 1-.3 3.3 1.2a11.4 11.4 0 016 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.7.2 3 .1 3.3.8.8 1.2 1.9 1.2 3.1 0 4.5-2.7 5.5-5.3 5.8.5.4.9 1.1.9 2.2v3.2c0 .3.2.7.8.6A12 12 0 0012 .5z" />
|
|
||||||
</svg>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
export const metadata = paginaMeta({
|
export const metadata = paginaMeta({
|
||||||
@@ -28,7 +21,7 @@ export default function Sobre() {
|
|||||||
{ icon: Languages, title: "Em português", desc: "Dados técnicos organizados e apresentados em português do Brasil." },
|
{ icon: Languages, title: "Em português", desc: "Dados técnicos organizados e apresentados em português do Brasil." },
|
||||||
{ icon: GitCompare, title: "Comparações visuais", desc: "Tabelas e diagramas para escolher a série certa sem abrir dez datasheets." },
|
{ icon: GitCompare, title: "Comparações visuais", desc: "Tabelas e diagramas para escolher a série certa sem abrir dez datasheets." },
|
||||||
{ icon: Globe, title: "Acesso centralizado", desc: "Links diretos para a documentação oficial, repositórios e exemplos." },
|
{ icon: Globe, title: "Acesso centralizado", desc: "Links diretos para a documentação oficial, repositórios e exemplos." },
|
||||||
{ icon: Code, title: "Código aberto", desc: "Contribuições são bem-vindas no GitHub." },
|
{ icon: Code, title: "Código aberto", desc: "Contribuições são bem-vindas no Gitea." },
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -60,8 +53,8 @@ export default function Sobre() {
|
|||||||
title="Sobre o ESPDocs"
|
title="Sobre o ESPDocs"
|
||||||
lede="Uma plataforma não oficial, em português, que organiza as informações técnicas do ESP32 e leva você à documentação oficial da Espressif. Feita para a comunidade de hardware livre."
|
lede="Uma plataforma não oficial, em português, que organiza as informações técnicas do ESP32 e leva você à documentação oficial da Espressif. Feita para a comunidade de hardware livre."
|
||||||
>
|
>
|
||||||
<a href={GITHUB} target="_blank" rel="noopener noreferrer" className="btn btn-primary">
|
<a href={REPOSITORIO} target="_blank" rel="noopener noreferrer" className="btn btn-primary">
|
||||||
<GithubMark className="h-4 w-4" />
|
<GiteaMark className="h-4 w-4" />
|
||||||
Ver o repositório
|
Ver o repositório
|
||||||
<ArrowUpRight className="h-4 w-4" aria-hidden="true" />
|
<ArrowUpRight className="h-4 w-4" aria-hidden="true" />
|
||||||
</a>
|
</a>
|
||||||
@@ -108,7 +101,7 @@ export default function Sobre() {
|
|||||||
</p>
|
</p>
|
||||||
<ol className="mt-6 space-y-3">
|
<ol className="mt-6 space-y-3">
|
||||||
{[
|
{[
|
||||||
"Faça o fork do repositório no GitHub.",
|
"Faça o fork do repositório no Gitea.",
|
||||||
"Implemente as melhorias e confira as referências técnicas oficiais.",
|
"Implemente as melhorias e confira as referências técnicas oficiais.",
|
||||||
"Abra um Pull Request descrevendo os ajustes feitos.",
|
"Abra um Pull Request descrevendo os ajustes feitos.",
|
||||||
].map((passo, i) => (
|
].map((passo, i) => (
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import Logo from "@/components/Logo";
|
import Logo from "@/components/Logo";
|
||||||
|
import GiteaMark from "@/components/GiteaMark";
|
||||||
import { ArrowUpRight } from "lucide-react";
|
import { ArrowUpRight } from "lucide-react";
|
||||||
import { SITE } from "@/lib/seo";
|
import { SITE } from "@/lib/seo";
|
||||||
|
|
||||||
@@ -123,12 +124,10 @@ export default function Footer() {
|
|||||||
href={SITE.repositorio}
|
href={SITE.repositorio}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
aria-label="GitHub do projeto (abre em nova aba)"
|
aria-label="Gitea do projeto (abre em nova aba)"
|
||||||
className="grid h-11 w-11 place-items-center rounded-full border border-line text-ink transition-colors hover:border-line-strong hover:bg-surface"
|
className="grid h-11 w-11 place-items-center rounded-full border border-line text-ink transition-colors hover:border-line-strong hover:bg-surface"
|
||||||
>
|
>
|
||||||
<svg className="h-4 w-4" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
<GiteaMark className="h-4 w-4" />
|
||||||
<path d="M12 .5a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2.1c-3.3.7-4-1.6-4-1.6-.5-1.2-1.2-1.5-1.2-1.5-1-.7.1-.7.1-.7 1.1.1 1.7 1.1 1.7 1.1 1 .1 1.6-.7 1.9-1 .1-.8.4-1.3.8-1.6-2.6-.3-5.3-1.3-5.3-5.8 0-1.3.5-2.3 1.2-3.1-.1-.3-.5-1.6.1-3.3 0 0 1-.3 3.3 1.2a11.4 11.4 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.7.2 3 .1 3.3.8.8 1.2 1.9 1.2 3.1 0 4.5-2.7 5.5-5.3 5.8.5.4.9 1.1.9 2.2v3.2c0 .3.2.7.8.6A12 12 0 0 0 12 .5z" />
|
|
||||||
</svg>
|
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
href={SITE.autorLinkedin}
|
href={SITE.autorLinkedin}
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
// Marca do Gitea (Simple Icons, CC0). Troca o octocat nos links do repositório.
|
||||||
|
export default function GiteaMark({ className }) {
|
||||||
|
return (
|
||||||
|
<svg className={className} viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
||||||
|
<path d="M4.209 4.603c-.247 0-.525.02-.84.088-.333.07-1.28.283-2.054 1.027C-.403 7.25.035 9.685.089 10.052c.065.446.263 1.687 1.21 2.768 1.749 2.141 5.513 2.092 5.513 2.092s.462 1.103 1.168 2.119c.955 1.263 1.936 2.248 2.89 2.367 2.406 0 7.212-.004 7.212-.004s.458.004 1.08-.394c.535-.324 1.013-.893 1.013-.893s.492-.527 1.18-1.73c.21-.37.385-.729.538-1.068 0 0 2.107-4.471 2.107-8.823-.042-1.318-.367-1.55-.443-1.627-.156-.156-.366-.153-.366-.153s-4.475.252-6.792.306c-.508.011-1.012.023-1.512.027v4.474l-.634-.301c0-1.39-.004-4.17-.004-4.17-1.107.016-3.405-.084-3.405-.084s-5.399-.27-5.987-.324c-.187-.011-.401-.032-.648-.032zm.354 1.832h.111s.271 2.269.6 3.597C5.549 11.147 6.22 13 6.22 13s-.996-.119-1.641-.348c-.99-.324-1.409-.714-1.409-.714s-.73-.511-1.096-1.52C1.444 8.73 2.021 7.7 2.021 7.7s.32-.859 1.47-1.145c.395-.106.863-.12 1.072-.12zm8.33 2.554c.26.003.509.127.509.127l.868.422-.529 1.075a.686.686 0 0 0-.614.359.685.685 0 0 0 .072.756l-.939 1.924a.69.69 0 0 0-.66.527.687.687 0 0 0 .347.763.686.686 0 0 0 .867-.206.688.688 0 0 0-.069-.882l.916-1.874a.667.667 0 0 0 .237-.02.657.657 0 0 0 .271-.137 8.826 8.826 0 0 1 1.016.512.761.761 0 0 1 .286.282c.073.21-.073.569-.073.569-.087.29-.702 1.55-.702 1.55a.692.692 0 0 0-.676.477.681.681 0 1 0 1.157-.252c.073-.141.141-.282.214-.431.19-.397.515-1.16.515-1.16.035-.066.218-.394.103-.814-.095-.435-.48-.638-.48-.638-.467-.301-1.116-.58-1.116-.58s0-.156-.042-.27a.688.688 0 0 0-.148-.241l.516-1.062 2.89 1.401s.48.218.583.619c.073.282-.019.534-.069.657-.24.587-2.1 4.317-2.1 4.317s-.232.554-.748.588a1.065 1.065 0 0 1-.393-.045l-.202-.08-4.31-2.1s-.417-.218-.49-.596c-.083-.31.104-.691.104-.691l2.073-4.272s.183-.37.466-.497a.855.855 0 0 1 .35-.077z" />
|
||||||
|
</svg>
|
||||||
|
);
|
||||||
|
}
|
||||||
+1
-1
@@ -13,7 +13,7 @@ export const SITE = {
|
|||||||
autorUrl: "https://lucasrguerra.dev.br",
|
autorUrl: "https://lucasrguerra.dev.br",
|
||||||
autorLinkedin: "https://linkedin.com/in/lucasrguerra",
|
autorLinkedin: "https://linkedin.com/in/lucasrguerra",
|
||||||
autorEmail: "contato@lucasrguerra.dev.br",
|
autorEmail: "contato@lucasrguerra.dev.br",
|
||||||
repositorio: "https://github.com/lucasrguerra/ESPDocs",
|
repositorio: "https://git.lucasrguerra.dev.br/lucasrguerra/ESPDocs",
|
||||||
blog: "https://cienciaembarcada.com.br",
|
blog: "https://cienciaembarcada.com.br",
|
||||||
livroTitulo: "Microcontroladores ESP32",
|
livroTitulo: "Microcontroladores ESP32",
|
||||||
livroSubtitulo: "Conectividade, Eficiência e Desempenho",
|
livroSubtitulo: "Conectividade, Eficiência e Desempenho",
|
||||||
|
|||||||
Reference in new issue
Block a user