Skip to content

Commit

Permalink
Merge pull request #24 from gdgpescara/feature/cloudrun
Browse files Browse the repository at this point in the history
Cloud run and new sponsors
  • Loading branch information
gregoriopalama authored Oct 27, 2023
2 parents d2cf938 + a2397dd commit 25354f3
Show file tree
Hide file tree
Showing 19 changed files with 192 additions and 141 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.DS_Store
node_modules
dist
functions
.firebaserc
firebase.json
.firebase
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:lts AS runtime
WORKDIR /app

COPY . .

RUN npm install
RUN npm install -g pnpm
RUN npm run build

ENV HOST=0.0.0.0
ENV PORT=4321
EXPOSE 4321
CMD node ./dist/server/entry.mjs
9 changes: 5 additions & 4 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import tailwind from "@astrojs/tailwind";
import nodejs from "@astrojs/node";
import astroI18next from "astro-i18next";


// https://astro.build/config
export default defineConfig({
site: "https://gdgpescara.github.io", // TODO: remove after setting the real deploy
base: '/hedwig', // TODO: remove after setting the real deploy
//site: "https://gdgpescara.github.io", // TODO: remove after setting the real deploy
//base: '/hedwig', // TODO: remove after setting the real deploy
integrations: [react(), tailwind(),astroI18next()],
output: "hybrid",
output: "server",
adapter: nodejs({
mode: "middleware",
mode: "standalone",
}),
});
12 changes: 1 addition & 11 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
{
"functions": {
"source": "functions"
},
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}

}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
"generate-translations": "npx astro-i18next generate"
},
"dependencies": {
"@astrojs/node": "^6.0.0",
"@astrojs/node": "^6.0.3",
"@astrojs/react": "^2.2.1",
"@astrojs/tailwind": "^5.0.0",
"@astrojs/vercel": "^5.0.2",
"@splidejs/splide": "^4.1.4",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"astro": "^3.0.8",
"astro-firebase": "^0.0.3",
"astro-i18next": "1.0.0-beta.21",
"clsx": "^2.0.0",
"daisyui": "^3.1.6",
Expand Down
33 changes: 33 additions & 0 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page Not Found</title>

<style media="screen">
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px 16px; border-radius: 3px; }
#message h3 { color: #888; font-weight: normal; font-size: 16px; margin: 16px 0 12px; }
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
@media (max-width: 600px) {
body, #message { margin-top: 0; background: white; box-shadow: none; }
body { border-top: 16px solid #ffa100; }
}
</style>
</head>
<body>
<div id="message">
<h2>404</h2>
<h1>Page Not Found</h1>
<p>The specified file was not found on this website. Please check the URL for mistakes and try again.</p>
<h3>Why am I seeing this?</h3>
<p>This page was generated by the Firebase Command-Line Interface. To modify it, edit the <code>404.html</code> file in your project's configured <code>public</code> directory.</p>
</div>
</body>
</html>
89 changes: 0 additions & 89 deletions public/index.html

This file was deleted.

Binary file added src/assets/sponsors/aesys.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/assets/sponsors/futura.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sponsors/innovalley.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 src/assets/sponsors/jetbrains.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sponsors/pythonpescara.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sponsors/ready2use.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sponsors/scuolacomics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sponsors/synergie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 86 additions & 26 deletions src/components/Sponsors.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ import surediIconSrc from "../assets/sponsors/suredi.svg";
import udaIconSrc from "../assets/sponsors/uda.png";
import decIconSrc from "../assets/sponsors/dec.png";
import netsonsIconSrc from "../assets/sponsors/netsons.svg";
import futuraIconSrc from "../assets/sponsors/futura.svg";
import leanStartupIconSrc from "../assets/sponsors/leanstartuplab.png";
import pythonPescaraIconSrc from "../assets/sponsors/pythonpescara.png";
import jetbrainsIconSrc from "../assets/sponsors/jetbrains.svg";
import synergieIconSrc from "../assets/sponsors/synergie.png";
import innovalleyIconSrc from "../assets/sponsors/innovalley.png";
import ready2useIconSrc from "../assets/sponsors/ready2use.png";
import aesysIconSrc from "../assets/sponsors/aesys.png";
import scuolacomicsIconSrc from "../assets/sponsors/scuolacomics.png";
import Section from "./Section.astro";
import Sponsor from "./Sponsor.astro";
import type { ImageMetadata } from "astro";
Expand All @@ -27,40 +35,26 @@ const sponsors: SponsorValue[][] = [
name: "Google",
imageSrc: googleIconSrc,
link: "https://gdg.community.dev/",
},
{
level: "Media partner",
name: "Stickermule",
imageSrc: stickermuleIconSrc,
link: "https://www.stickermule.com",
},
{
level: "Community partner",
name: "Lean Startup Lab",
imageSrc: leanStartupIconSrc,
link: "https://meetu.ps/c/4fDsg/FSPD4/a",
},
}
],
[
{
level: "General partner",
name: "UdA",
imageSrc: udaIconSrc,
link: "https://www.unich.it/",
level: "Platinum sponsor",
name: "Netsons",
imageSrc: netsonsIconSrc,
link: "https://www.netsons.com/",
},
{
level: "General Partner",
name: "DEC",
imageSrc: decIconSrc,
link: "https://www.dec.unich.it/home-dec-1",
level: "Platinum sponsor",
name: "Ready2Use",
imageSrc: ready2useIconSrc,
link: "https://r2u.it/",
},
],
[
{
level: "Platinum sponsor",
name: "Netsons",
imageSrc: netsonsIconSrc,
link: "https://www.netsons.com/",
name: "Aesys - Aesys Cyber",
imageSrc: aesysIconSrc,
link: "https://www.aesys.tech/",
}
],
[
Expand All @@ -75,6 +69,18 @@ const sponsors: SponsorValue[][] = [
name: "Tredipi",
imageSrc: tredipiIconSrc,
link: "https://www.tredipi.it/",
},
{
level: "Gold sponsor",
name: "Synergie",
imageSrc: synergieIconSrc,
link: "https://www.synergie-italia.it/",
},
{
level: "Gold sponsor",
name: "Innovalley",
imageSrc: innovalleyIconSrc,
link: "https://www.inno-valley.it/",
}
],
[
Expand All @@ -83,6 +89,60 @@ const sponsors: SponsorValue[][] = [
name: "Suredi",
imageSrc: surediIconSrc,
link: "https://www.suredi.it/",
},
{
level: "Silver sponsor",
name: "Scuola Internazionale del Comics - sede di Pescara",
imageSrc: scuolacomicsIconSrc,
link: "https://scuolacomics.com/sede/pescara",
}
],
[
{
level: "Bronze sponsor",
name: "Futura",
imageSrc: futuraIconSrc,
link: "https://www.linkedin.com/company/futura-dev/",
}
],
[
{
level: "General partner",
name: "UdA",
imageSrc: udaIconSrc,
link: "https://www.unich.it/",
},
{
level: "General Partner",
name: "DEC",
imageSrc: decIconSrc,
link: "https://www.dec.unich.it/home-dec-1",
},
{
level: "General partner",
name: "JetBrains",
imageSrc: jetbrainsIconSrc,
link: "https://www.jetbrains.com/",
},
{
level: "Media partner",
name: "Stickermule",
imageSrc: stickermuleIconSrc,
link: "https://www.stickermule.com",
},
],
[
{
level: "Community partner",
name: "Lean Startup Lab",
imageSrc: leanStartupIconSrc,
link: "https://meetu.ps/c/4fDsg/FSPD4/a",
},
{
level: "Community partner",
name: "Python Pescara",
imageSrc: pythonPescaraIconSrc,
link: "https://pescara.python.it/",
}
]
];
Expand Down
Loading

0 comments on commit 25354f3

Please sign in to comment.