Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# capabletechteam.github.io

Tech team website!

## Note

Without Tailwind, this site will seem funny!

1. Run `npm i`
2. In one terminal, run `npm run build-watch``
3. Then visit the website using one or another method (eg. `npx http-server`` which is preinstalled)
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"devDependencies": {
"tailwindcss": "^3.4.15",
"http-server": "^14.1.1"
"http-server": "^14.1.1",
"tailwindcss": "^3.4.15"
},
"scripts": {
"build-watch": "tailwindcss -i ./src/style.css -o ./src/output.css --watch"
Expand Down
13 changes: 8 additions & 5 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<!DOCTYPE html>
<html>
<!--
This isn't vanilla HTML!
1. Run npm i
2. In one terminal, run npm run build-watch
3. Then visit the website using one or another method (eg. npx http-server which is preinstalled)
NOTE for devs: Without Tailwind, this site will seem funny!
-> See README.md for more details.
-->
<head>
<link href="output.css" rel="stylesheet" type="text/css">
<!-- Inter font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
<meta name="charset" content="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="tech, team">
Expand All @@ -16,8 +18,9 @@
</head>

<body>
<main class="container mx-auto px-4 mt-1">
<main class="container mx-auto px-4 mt-1 font-inter">
<h1 class="text-3xl">The Tech Team website!</h1>
<p>Stuff goes here...</p>
</main>
</body>

Expand Down
24 changes: 21 additions & 3 deletions src/output.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* TailwindCSS in this file: actual outputted CSS should go to output.css */

*, ::before, ::after {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
Expand Down Expand Up @@ -108,7 +106,9 @@
--tw-contain-style: ;
}

/* ! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com */
/*
! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
Expand Down Expand Up @@ -606,3 +606,21 @@ video {
font-size: 1.875rem;
line-height: 2.25rem;
}

/* Real CSS starts here */

html, body {
padding: 0;
margin: 0;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
position: fixed;
}

/* Inter font */

.font-inter {
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
17 changes: 15 additions & 2 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
/* TailwindCSS in this file: actual outputted CSS should go to output.css */

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Real CSS starts here */
html, body {
padding: 0;
margin: 0;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
position: fixed;
}
/* Inter font */
.font-inter {
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}