Skip to content

Commit

Permalink
Merge pull request #45 from UoaWDCC/14-Events-Summary
Browse files Browse the repository at this point in the history
14 events summary
  • Loading branch information
Oculux314 authored Jul 14, 2024
2 parents cb75a90 + e85eb31 commit 277da8a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 26 deletions.
36 changes: 12 additions & 24 deletions strapi/config/plugins.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
module.exports = ({ env }) => ({
// ...
// upload: {
// config: {
// provider: "aws-s3",
// providerOptions: {
// s3Options: {
// credentials: {
// accessKeyId: env("AWS_ACCESS_KEY_ID"),
// secretAccessKey: env("AWS_SECRET_ACCESS_KEY"),
// },
// region: env("AWS_REGION"),
// endpoint: env("AWS_ENDPOINT_URL_S3"),
// params: {
// Bucket: env("BUCKET_NAME"),
// },
// },
// },
// actionOptions: {
// upload: {},
// uploadStream: {},
// delete: {},
// },
// },
// },
upload: {
config: {
breakpoints: {
// Image sizes
xlarge: 1920,
large: 1000,
medium: 750,
small: 500,
thumbnail: 64,
},
},
},
"strapi-plugin-populate-deep": {
config: {
defaultDepth: 3, // Default is 5
Expand Down
7 changes: 5 additions & 2 deletions web/src/lib/strapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ export default async function fetchApi<T>({
url.searchParams.append(key, value);
});
}
const res = await fetch(url.toString());
console.log(url.toString());
const res = await fetch(url.toString(), {
headers: {
authorization: `Bearer ${import.meta.env.STRAPI_API_KEY}`,
},
});
let data = await res.json();

if (wrappedByKey) {
Expand Down
14 changes: 14 additions & 0 deletions web/src/pages/events/index.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
import Layout from "@/layouts/layout.astro";
---

<Layout title="Events" description="Upcoming events at WDCC">
<section class="py-16 text-center">
<h1 class="text-4xl font-bold mb-4">Upcoming Events</h1>
<p class="text-lg text-gray-600 max-w-5xl mx-auto">
WDCC hosts regular workshops, competitions and social events throughout the year.
We aim to help students develop practical skills that can be used in the workforce.
We host social events to help students network among peers and with industry people.
</p>
</section>
</Layout>

0 comments on commit 277da8a

Please sign in to comment.