Skip to content

Commit

Permalink
Merge pull request #2 from creativetimofficial/dev-main
Browse files Browse the repository at this point in the history
refactor: update product
  • Loading branch information
groovemen committed Aug 30, 2023
2 parents 1d60a8c + fd104eb commit 88b6b87
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
15 changes: 15 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig } from "astro/config";

import react from "@astrojs/react";

// https://astro.build/config
import tailwind from "@astrojs/tailwind";

const isProd = process.env.NODE_ENV === "production";

// https://astro.build/config
export default defineConfig({
integrations: [react(), tailwind()],
site: "https://creativetimofficial.github.io",
base: "/astro-launch-ui",
});
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
export interface Props {
title: string;
metaDescription?: string;
}
const { title } = Astro.props;
const { title, metaDescription } = Astro.props;
---

<!DOCTYPE html>
Expand All @@ -16,8 +17,9 @@ const { title } = Astro.props;
href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700|Noto+Sans:300,400,500,600,700,800|PT+Mono:300,400,500,600,700"
rel="stylesheet"
/>
<title>{title} by Creative Tim</title>
<meta name="description" content={metaDescription} />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
<link rel="canonical" href="https://www.creative-tim.com/astro/" />
<!-- Google Tag Manager -->
<script>
Expand All @@ -33,10 +35,6 @@ const { title } = Astro.props;
})(window, document, "script", "dataLayer", "GTM-NKDMSK6");
</script>
<!-- End Google Tag Manager -->
<link
rel="stylesheet"
href="../../astro-ecommerce/assets/css/material-tailwind.css"
/>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
Expand Down

0 comments on commit 88b6b87

Please sign in to comment.