Skip to content

Commit

Permalink
Feature/readme (#18)
Browse files Browse the repository at this point in the history
* using alpine, better README
  • Loading branch information
kevincobain2000 authored May 1, 2024
1 parent baad972 commit 6354637
Show file tree
Hide file tree
Showing 30 changed files with 1,534 additions and 1,142 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coveritup_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ jobs:
- uses: kevincobain2000/action-coveritup@v2
with:
pr_comment: true
types: coverage, go-mod-dependencies
types: coverage,go-mod-dependencies
3 changes: 2 additions & 1 deletion app/.air.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ cmd = "go mod tidy && go build -o ./tmp/main main.go"
# Binary file yields from `cmd`.
bin = "tmp/main"
# Customize binary.
full_bin = "PP_USER=air ./tmp/main"
# allow cors for astro
full_bin = "PP_USER=air ./tmp/main --cors=4321"
# Watch these filename extensions.
include_ext = ["go", "tpl", "tmpl", "html", "env", "conf"]
# Ignore these filename extensions or directories.
Expand Down
3 changes: 2 additions & 1 deletion app/frontend/.env.example
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
PUBLIC_GOOGLE_ANALYTICS_ID=
PUBLIC_GOOGLE_ANALYTICS_ID=
PUBLIC_HOST_URL=http://localhost:3003
1 change: 1 addition & 0 deletions app/frontend/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import astroSingleFile from 'astro-single-file'
import { defineConfig } from 'astro/config'
import tailwind from '@astrojs/tailwind'

// https://astro.build/config
export default defineConfig({
integrations: [astroSingleFile(), tailwind()]
})
1,931 changes: 911 additions & 1,020 deletions app/frontend/package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions app/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.3.4",
"@astrojs/check": "^0.5.10",
"@astrojs/tailwind": "^5.1.0",
"astro": "^4.0.8",
"astro": "^4.7.0",
"astro-single-file": "^1.1.0",
"html-minifier-terser": "^7.2.0",
"tailwindcss": "^3.4.0",
"typescript": "^5.3.3"
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "4.6.1"
"@rollup/rollup-linux-x64-gnu": "4.17.1"
}
}
2 changes: 1 addition & 1 deletion app/frontend/src/assets/medium.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/frontend/src/assets/octocat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/frontend/src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---

<!--Footer-->
<div class="w-full pt-16 pb-6 text-sm text-center md:text-left fade-in">
<div class="w-full pt-16 pb-6 text-sm text-center md:text-left fade-in select-none">
<a class="text-gray-500 no-underline hover:no-underline" href="#"
>&copy; 2023</a
>
Expand Down
2 changes: 1 addition & 1 deletion app/frontend/src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</span>
</h1>
<p
class="leading-normal text-base md:text-2xl mb-8 text-center md:text-left font-mono"
class="leading-normal text-base md:text-xl mb-8 text-center md:text-left"
>
Record what matters.
</p>
Expand Down
8 changes: 4 additions & 4 deletions app/frontend/src/components/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ const { title, description } = Astro.props;
<meta name="description" content={description} />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<link rel="canonical" href={Astro.url} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content="https://coveritup.app/favicon.ico" />
<meta property="og:url" content={Astro.url} />
<meta property="og:type" content="website" />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
Expand All @@ -41,8 +39,8 @@ const { title, description } = Astro.props;
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
{measurementID && (
<script async src="https://www.googletagmanager.com/gtag/js?id=G-8C3R3RDHSV"></script>
<script type="text/javascript">
<script is:inline async src="https://www.googletagmanager.com/gtag/js?id=G-8C3R3RDHSV"></script>
<script is:inline type="text/javascript">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
Expand All @@ -66,6 +64,8 @@ const { title, description } = Astro.props;
}
body {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
font-optical-sizing: auto;
font-style: normal;
}

.bg-gradient {
Expand Down
6 changes: 3 additions & 3 deletions app/frontend/src/components/Nav.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import medium from '@assets/medium.svg?raw'
<div class="w-full container mx-auto">
<div class="w-full flex items-center justify-between">

<a class="flex items-center text-indigo-400 no-underline hover:no-underline font-bold text-3xl" href="/">
<img src="/favicon.ico" alt="" width="25">
Cover<span class="bg-clip-text text-transparent bg-gradient-to-r from-green-400 via-pink-500 to-purple-500">ItUp</span>
<a class="flex items-center text-indigo-400 no-underline hover:no-underline font-bold text-4xl select-none" href="/">
<img src="/favicon.ico" alt="" width="35">
<span class="pt-2">Cover<span class="bg-clip-text text-transparent bg-gradient-to-r from-green-400 via-pink-500 to-purple-500">ItUp</span></span>
</a>

<div class="flex w-1/2 justify-end content-center">
Expand Down
Loading

0 comments on commit 6354637

Please sign in to comment.