Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
3b1ba7c
added __sapper__ folder
irenekurien Apr 24, 2021
e4bd426
Merge pull request #1 from HackClubRIT/responsiveness
irenekurien Apr 26, 2021
1e1377e
Merge pull request #3 from HackClubRIT/responsiveness
irenekurien Apr 26, 2021
fdfe7b3
Merge pull request #4 from HackClubRIT/responsiveness
irenekurien Apr 26, 2021
c9a3395
Merge pull request #6 from HackClubRIT/application-form
irenekurien Apr 29, 2021
325bf5e
Merge pull request #8 from HackClubRIT/application-form
irenekurien May 4, 2021
8e915a0
Revert "created membership forms"
irenekurien May 5, 2021
06ec30f
Merge pull request #10 from HackClubRIT/revert-8-application-form
irenekurien May 5, 2021
3441616
fix
irenekurien May 5, 2021
82a122b
application form
irenekurien May 5, 2021
8719b91
made textinput components
irenekurien May 5, 2021
4fbe9d4
adding validation
irenekurien May 6, 2021
a083419
changed email validation
irenekurien May 6, 2021
9c334e0
formatted code
irenekurien May 6, 2021
6b596df
restructured code
irenekurien May 6, 2021
5c01f9c
fix
irenekurien May 6, 2021
0488fee
fixxx
irenekurien May 6, 2021
d6768b6
restructured code
irenekurien May 6, 2021
1d398d4
idk
irenekurien May 6, 2021
5913ae3
fixed validation error
irenekurien May 6, 2021
124a41d
Merge pull request #12 from HackClubRIT/membership-form
irenekurien May 6, 2021
f1591ea
form updated
irenekurien May 6, 2021
d142c5d
form updated
irenekurien May 6, 2021
09e2ba9
Merge branch 'deploy' into membership-form
irenekurien May 6, 2021
4815097
Merge pull request #13 from HackClubRIT/membership-form
irenekurien May 6, 2021
3a730f3
refactor code
irenekurien May 6, 2021
fb3b8a8
made form more responsive
irenekurien May 6, 2021
3fd8e1e
added form content
irenekurien May 7, 2021
4cb09a3
update
irenekurien May 8, 2021
ffb1be2
update tailwind
irenekurien May 8, 2021
e8c136c
clearing after submition
irenekurien May 8, 2021
5281f32
added alert message for form response
irenekurien May 9, 2021
d8663cd
small fix
irenekurien May 9, 2021
0671c52
added alert message for form response
irenekurien May 9, 2021
b3b1fce
fix
irenekurien May 9, 2021
e97151f
fix
irenekurien May 9, 2021
7ee83e8
added nprogress
irenekurien May 9, 2021
57a3700
responsiveness
irenekurien May 10, 2021
3ccb5ef
responsiveness
irenekurien May 10, 2021
c1bb862
replaced with button component
irenekurien May 10, 2021
e5093bb
update UI
irenekurien May 10, 2021
4d6779b
fix
irenekurien May 10, 2021
1413112
update code
irenekurien May 10, 2021
cf7ed0d
check
irenekurien May 10, 2021
a7555b4
update form
irenekurien May 10, 2021
5396721
Merge pull request #17 from HackClubRIT/deploy-branch
irenekurien May 10, 2021
b2c69e6
clear form after submission
irenekurien May 10, 2021
5aa71ba
Merge pull request #18 from HackClubRIT/deploy-branch
irenekurien May 10, 2021
cbc9903
fix
irenekurien May 13, 2021
fa1ff63
fix
irenekurien May 13, 2021
b41af1c
Update README.md
irenekurien May 14, 2021
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
51 changes: 7 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,17 @@
# Hack Club RIT Website: Frontend

## Running the project
### Running the project
1. To install all modules listed as dependencies in package.json file, run `npm install`

2. To run the project locally, execute the following commands in separated windows of your terminal:

`npm run dev` and
`npm run dev:tailwindcss`

## Directory structure
### Environment Variables

The two directories in the root of the project are `src` and `static`.
### src

The [src](src) directory contains the entry points for your app — `client.js`, `server.js`, `template.html` file and a `routes` directory.

#### src/routes

There are two kinds of routes — *pages*, and *server routes*.

**Pages** are Svelte components written in `.svelte` files. When a user first visits the application, they will be served a server-rendered version of the route in question, plus some JavaScript that 'hydrates' the page and initialises a client-side router. From that point forward, navigating to other pages is handled entirely on the client for a fast, app-like feel. (Sapper will preload and cache the code for these subsequent pages, so that navigation is instantaneous.)

**Server routes** are modules written in `.js` files, that export functions corresponding to HTTP methods. Each function receives Express `request` and `response` objects as arguments, plus a `next` function. This is useful for creating a JSON API, for example.

There are three simple rules for naming the files that define your routes:

* A file called `src/routes/newsletter.svelte` corresponds to the `/newsletter` route.
* A file called `src/routes/events/[slug].svelte` corresponds to the `/events/:slug` route, in which case `params.slug` is available to the route
* The file `src/routes/index.svelte` (or `src/routes/index.js`) corresponds to the root of your app. `src/routes/about/index.svelte` is treated the same as `src/routes/about.svelte`.
* Files and directories with a leading underscore do *not* create routes. This allows you to colocate helper modules and components with the routes that depend on them — for example you could have a file called `src/routes/_helpers/datetime.js` and it would *not* create a `/_helpers/datetime` route.


#### src/node_modules/images

Images added to `src/node_modules/images` can be imported into your code using `import 'images/<filename>'`. They will be given a dynamically generated filename containing a hash, allowing for efficient caching and serving the images on a CDN.

#### src/node_modules/@sapper

This directory is managed by Sapper and generated when building. It contains all the code you import from `@sapper` modules.

### static

The [static](static) directory contains static assets that should be served publicly. Files in this directory will be available directly under the root URL, e.g. an `image.jpg` will be available as `/image.jpg`.

The default [service-worker.js](src/service-worker.js) will preload and cache these files, by retrieving a list of `files` from the generated manifest:

```js
import { files } from '@sapper/service-worker';
```

If you have static files you do not want to cache, you should exclude them from this list after importing it (and before passing it to `cache.addAll`).

Static files are served using [sirv](https://github.com/lukeed/sirv).
| NAME | DESC | TYPE | DEFAULT | REQUIRED |
| --- | --- | --- | --- | --- |
| SAPPER_APP_SECRET | some secret key | string | - | YES |
| SAPPER_APP_APPLICATION_API_URL | api endpoint for application | URL | - | YES |
| SAPPER_APP_AUTHENTICATION_API_URL | api endpoint for authentication of user | URL | - | YES |
36 changes: 36 additions & 0 deletions __sapper__/build/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"bundler": "rollup",
"shimport": "2.0.4",
"assets": {
"main": "client.c2670d50.js"
},
"css": {
"main": [
"client-e118e612.css"
]
},
"dependencies": {
"index.svelte": [
"index.ade356b9.js",
"inject_styles.5607aec6.js",
"index-39716d32.css"
],
"about.svelte": [
"about.e97c8bf2.js",
"inject_styles.5607aec6.js"
],
"blog/index.svelte": [
"index.39882a62.js",
"inject_styles.5607aec6.js",
"index-7ed37c94.css"
],
"blog/[slug].svelte": [
"[slug].fac92fe6.js",
"inject_styles.5607aec6.js",
"[slug]-5bc8f95f.css"
]
},
"legacy_assets": {
"main": "client.eb14add1.js"
}
}
Binary file added __sapper__/build/client/465898c830bb9d2c.jpg
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 __sapper__/build/client/[slug]-5bc8f95f.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions __sapper__/build/client/[slug].fac92fe6.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions __sapper__/build/client/about.e97c8bf2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions __sapper__/build/client/client-e118e612.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions __sapper__/build/client/client.c2670d50.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions __sapper__/build/client/index-39716d32.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions __sapper__/build/client/index-7ed37c94.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ul.svelte-1frg2tf{margin:0 0 1em 0;line-height:1.5}
1 change: 1 addition & 0 deletions __sapper__/build/client/index.39882a62.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions __sapper__/build/client/index.ade356b9.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions __sapper__/build/client/inject_styles.5607aec6.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 __sapper__/build/client/legacy/[slug]-5bc8f95f.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions __sapper__/build/client/legacy/[slug].56a49ff2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions __sapper__/build/client/legacy/about.2765021c.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions __sapper__/build/client/legacy/client-e118e612.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions __sapper__/build/client/legacy/client.eb14add1.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions __sapper__/build/client/legacy/index-39716d32.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions __sapper__/build/client/legacy/index-7ed37c94.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ul.svelte-1frg2tf{margin:0 0 1em 0;line-height:1.5}
1 change: 1 addition & 0 deletions __sapper__/build/client/legacy/index.1d635a01.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading