Skip to content

Commit

Permalink
feat: website with color and nav bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Eveeifyeve committed Feb 23, 2024
1 parent 81ab0fe commit be636fe
Show file tree
Hide file tree
Showing 20 changed files with 186 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies with bun
run: bun install

- name: Build Astro site with bun
run: bun build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# build output
dist/
# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.production

# macOS-specific files
.DS_Store
4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Cordevall Website

11 changes: 11 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from 'astro/config';

import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
redirects: {
"/github": "https://github.com/Cordevall"
},
integrations: [tailwind()]
});
Binary file added bun.lockb
Binary file not shown.
23 changes: 23 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Use the Bun image as the base
FROM oven/bun

# Set the working directory in the container
WORKDIR /usr/src/app

# Copy package.json and package-lock.json (if available)
COPY package*.json ./

# Install project dependencies
RUN bun install

# Copy the rest of the source code
COPY . .

# Build the Astro project
RUN bun build

# Expose port 5000 for the application
EXPOSE 5000

# Define the command to run the application
CMD [ "bun", "start" ]
1 change: 0 additions & 1 deletion index.html

This file was deleted.

19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "hilarious-heliosphere",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.5.5",
"@astrojs/tailwind": "^5.1.0",
"astro": "^4.4.3",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3"
}
}
Binary file added public/Cor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/components/shared/header.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
import { Image } from "astro:assets";
import image from "../../../public/Cor.png"
var size = 120
---


<style>
.paddingcustom{
padding: 20px 100px;
}
</style>

<header class="fixed flex bg-[#6370ff] top-0 left-0 w-full justify-between items-center z-10 paddingcustom">
<img src={image.src} class="h-32 w-48" alt="Logo">

<nav class="flex gap-x-4 font-bold">
<a href="/">Home</a>
<a href="/news" class="text-yellow-200">News</a>
<a href="/github">Github</a>
</nav>


</header>
1 change: 1 addition & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="astro/client" />
Empty file added src/layouts/error.astro
Empty file.
15 changes: 15 additions & 0 deletions src/layouts/layout.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
import Header from "../components/shared/header.astro"
---



<html lang="en">
<head>

</head>
<body class="dark:bg-[#4a53b7] text-white bg-[#6a79ff] m-0 p-0 box-border scroll-smooth">
<Header/>
<slot/>
</body>
</html>
Empty file added src/layouts/news.astro
Empty file.
9 changes: 9 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
import Layout from "../layouts/layout.astro";
---

<Layout>
Test
</Layout>
7 changes: 7 additions & 0 deletions src/pages/news/index.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
import Layout from "../../layouts/layout.astro"
---

<Layout>
WIP
</Layout>
8 changes: 8 additions & 0 deletions tailwind.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {},
},
plugins: [],
}
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "astro/tsconfigs/strict"
}

0 comments on commit be636fe

Please sign in to comment.