Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta tags #38

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
27 changes: 25 additions & 2 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,33 @@ import { getThemeSession } from './utils/theme.server';
import styles from '~/tailwind.css';
import mainStyles from '../styles/styles.css';

const metaDescription =
'Uma comunidade de desenvolvedores ajudando os iniciantes do mundo da programação. A He4rt Developers já está formando várias mentes brilhantes que saíram do zero e passaram para o intermediário/avançado.';
const metaCreator = "@He4rtDevs"
const title = "He4rt Developers"
const urlImage = "/images/banner-meta.png"
const imageAlt = "Logo em formato de coração roxo representando a He4rt Developers"

export const meta: MetaFunction = () => ({
charset: 'utf-8',
title: 'He4rt Developers',
viewport: 'width=device-width,initial-scale=1',
title: title,
description: metaDescription,
'twitter:card': 'summary_large_image',
'twitter:site': metaCreator,
'twitter:creator': metaCreator,
'twitter:title': title,
'twitter:description': metaDescription,
'twitter:image': urlImage,
'twitter:image:alt': imageAlt,

'og:title': title,
'og:description': metaDescription,
'og:image': urlImage,
'og:image:alt': imageAlt,
'og:url': 'https://heartdevs.com',
'og:site_name': title,

});

export const links: LinksFunction = () => [
Expand All @@ -46,7 +69,7 @@ export const links: LinksFunction = () => [
},
{
rel: 'icon',
href: '/images/brands/heart.svg',
href: '/brands/heart.svg',
type: 'image/svg',
},
{
Expand Down
15 changes: 6 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,17 @@
"sideEffects": false,
"scripts": {
"build": "run-s \"build:*\"",
"build:css": "yarn generate:css --minify",
"build:remix": "remix build",
"dev": "run-p \"dev:*\"",
"dev:css": "yarn generate:css --watch",
"dev:remix": "remix dev",
"generate:css": "npx tailwindcss -i ./styles/tailwind.css -o ./app/tailwind.css",
"start": "dotenv -e .env remix-serve build",
"start": "remix-serve build",
"typecheck": "tsc -b",
"format": "prettier -w ."
},
"dependencies": {
"@remix-run/node": "*",
"@remix-run/react": "*",
"@remix-run/serve": "*",
"@remix-run/node": "^1.19.1",
"@remix-run/react": "^1.19.1",
"@remix-run/serve": "^1.19.1",
"@types/react-slick": "^0.23.10",
"@vercel/analytics": "^0.1.6",
"@vercel/node": "^2.8.2",
Expand All @@ -32,8 +29,8 @@
"remix-utils": "^5.1.0"
},
"devDependencies": {
"@remix-run/dev": "^1.9.0",
"@remix-run/eslint-config": "^1.9.0",
"@remix-run/dev": "^1.19.1",
"@remix-run/eslint-config": "^1.19.1",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"autoprefixer": "^10.4.13",
Expand Down
Binary file added public/images/banner-meta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions remix.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ module.exports = {
// assetsBuildDirectory: "public/build",
// serverBuildPath: "api/index.js",
// publicPath: "/build/",
tailwind: true,
serverDependenciesToBundle: ['axios']
};
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"paths": {
"~/*": ["./app/*"]
},

// Remix takes care of building everything in `remix build`.
"noEmit": true
}
Expand Down
Loading