Skip to content

Commit

Permalink
set up initial template
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmonisit committed Jan 19, 2024
1 parent 06153a1 commit e255134
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 8 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"extends": "next/core-web-vitals"
"extends": "next/core-web-vitals",
"rules": {
"react/jsx-first-prop-new-line": [2, "multiline"],
"react/jsx-max-props-per-line": [2, { "maximum": 1, "when": "multiline" }],
"react/jsx-indent-props": [2, 2],
"react/jsx-closing-bracket-location": [2, "tag-aligned"]
}
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"cSpell.words": ["CODECRAFT", "tailwindcss"],
"prettier.configPath": "./prettier.config.js",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
28 changes: 21 additions & 7 deletions app/(landing)/sections/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
import Image from 'next/image';

export default function Hero() {
return (
<div
className="bg-gray-100 w-full h-[100vh] max-h-[1300px]
flex flex-col justify-center items-center"
flex flex-col-reverse justify-center items-center"
>
<h1 className="font-extrabold text-5xl">
HackRU!
</h1>
<span>
Hack all knight looonnnggg
</span>
<Image
src="/landing/fire.png"
width="0"
height="0"
sizes="100vw"
alt="Fire"
/* https://stackoverflow.com/questions/69230343/nextjs-image-component-with-fixed-witdth-and-auto-height */
className="w-80 h-auto"
priority
/>

<div className="flex flex-col text-center grow justify-center text-3xl space-y-4">
<div className="text-xl mb-2">WELCOME TO OUR</div>
<div>SCHOOL OF</div>
<div>CODECRAFT &</div>
<div>WIZARDRY!</div>
</div>

</div>
);
}
3 changes: 3 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ const styleguide = require('@vercel/style-guide/prettier');
module.exports = {
...styleguide,
plugins: [...styleguide.plugins, 'prettier-plugin-tailwindcss'],
rules: {
singleAttributePerLine: true,
},
};
Binary file added public/landing/fire.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e255134

Please sign in to comment.