Skip to content
Open
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
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
30 changes: 3 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,9 @@
Assignment 4 - Components
===

Due: October 4th, by 11:59 AM.
## Travelia

For this assignment you will re-implement the client side portion of *either* A2 or A3 using either React or Svelte components. If you choose A3 you only need to use components for the data display / updating; you can leave your login UI as is.
your hosting link https://a4-dinmukhamed-umbetzhan.glitch.me/

[Svelte Tutorial](https://github.com/cs4241-21a/cs4241-21a.github.io/blob/main/using_svelte.md)
[React Tutorial](https://github.com/cs4241-21a/cs4241-21a.github.io/blob/main/using_react.md)
I used my second assignment code as a base for this project. It was much easier to develop since I used react before. I used same styling components and put them into js files. It was challenging for me to use the build files, since glitch didn't like the name of the folder. That is why I put all files from build folder to main directory of the application. All JS files are still in the src folder.

This project can be implemented on any hosting service (Glitch, DigitalOcean, Heroku etc.), however, you must include all files in your GitHub repo so that the course staff can view them.

Deliverables
---

Do the following to complete this assignment:

1. Implement your project with the above requirements.
3. Test your project to make sure that when someone goes to your main page on Glitch/Heroku/etc., it displays correctly.
4. Ensure that your project has the proper naming scheme `a4-firstname-lastname` so we can find it.
5. Fork this repository and modify the README to the specifications below. Be sure to add *all* project files.
6. Create and submit a Pull Request to the original repo. Name the pull request using the following template: `a4-firstname-lastname`.

Sample Readme (delete the above when you're ready to submit, and modify the below so with your links and descriptions)
---

## Your Web Application Title

your hosting link e.g. http://a4-charlieroberts.glitch.me

Include a very brief summary of your project here and what you changed / added to assignment #3. Briefly (3–4 sentences) answer the following question: did the new technology improve or hinder the development experience?

Unlike previous assignments, this assignment will be solely graded on whether or not you successfully complete it. Partial credit will be generously given.
13 changes: 13 additions & 0 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"files": {
"main.css": "/static/css/main.d44f8cd0.css",
"main.js": "/static/js/main.6bd76f1a.js",
"index.html": "/index.html",
"main.d44f8cd0.css.map": "/static/css/main.d44f8cd0.css.map",
"main.6bd76f1a.js.map": "/static/js/main.6bd76f1a.js.map"
},
"entrypoints": [
"static/css/main.d44f8cd0.css",
"static/js/main.6bd76f1a.js"
]
}
Binary file added favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.6bd76f1a.js"></script><link href="/static/css/main.d44f8cd0.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
25 changes: 25 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
162 changes: 162 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
.main {
font-size: 40px;
text-align: center;
}

.form {
width: 300px;
padding: 64px 15px 24px;
margin: 0 auto;
}

.form .control {
margin: 0 0 24px;
}

.form .control input {
width: 100%;
padding: 14px 16px;
border: 0;
background: transparent;
color: #fff;
font-family: monospace, serif;
letter-spacing: 0.05em;
font-size: 16px;
}

.form .control input:hover,
.form .control input:focus {
outline: none;
border: 0;
}

.form .btn {
width: 100%;
display: block;
padding: 14px 16px;
background: transparent;
outline: none;
border: 0;
color: #fff;
letter-spacing: 0.1em;
font-weight: bold;
font-family: monospace;
font-size: 16px;
}

.block-cube {
position: relative;
}

.block-cube .bg-top {
position: absolute;
height: 10px;
background: #020024;
background: linear-gradient(90deg, #020024 0%, #340979 37%, #00d4ff 94%);
bottom: 100%;
left: 5px;
right: -5px;
transform: skew(-45deg, 0);
margin: 0;
}

.block-cube .bg-top .bg-inner {
bottom: 0;
}

.block-cube .bg {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: #020024;
background: linear-gradient(90deg, #020024 0%, #340979 37%, #00d4ff 94%);
}

.block-cube .bg-right {
position: absolute;
background: #020024;
background: #00d4ff;
top: -5px;
z-index: 0;
bottom: 5px;
width: 10px;
left: 100%;
transform: skew(0, -45deg);
}

.block-cube .bg-right .bg-inner {
left: 0;
}

.block-cube .bg .bg-inner {
transition: all 0.2s ease-in-out;
}

.block-cube .bg-inner {
background: #212121;
position: absolute;
left: 2px;
top: 2px;
right: 2px;
bottom: 2px;
}

.block-cube .text {
position: relative;
z-index: 2;
}

.block-cube.block-input input {
position: relative;
z-index: 2;
}

.block-cube.block-input input:focus~.bg-right .bg-inner,
.block-cube.block-input input:focus~.bg-top .bg-inner,
.block-cube.block-input input:focus~.bg-inner .bg-inner {
top: 100%;
background: rgba(255, 255, 255, 0.5);
}

.block-cube.block-input .bg-top,
.block-cube.block-input .bg-right,
.block-cube.block-input .bg {
background: rgba(255, 255, 255, 0.5);
transition: background 0.2s ease-in-out;
}

.block-cube.block-input .bg-right .bg-inner,
.block-cube.block-input .bg-top .bg-inner {
transition: all 0.2s ease-in-out;
}

.block-cube.block-input:focus .bg-top,
.block-cube.block-input:focus .bg-right,
.block-cube.block-input:focus .bg,
.block-cube.block-input:hover .bg-top,
.block-cube.block-input:hover .bg-right,
.block-cube.block-input:hover .bg {
background: rgba(255, 255, 255, 0.8);
}

.block-cube.block-cube-hover:focus .bg .bg-inner,
.block-cube.block-cube-hover:hover .bg .bg-inner {
top: 100%;
}

table {
text-align: center;
border: 3px solid #ffffff;
font-size: 20px;
margin-left: auto;
margin-right: auto;
margin-bottom: 50px;
width: 75%;
}

#tlist {
text-align: center;
font-size: 30px;
}
Loading