Code Monkey home page Code Monkey logo

ltw-project-g60's People

Contributors

ca-moes avatar filiperecharte avatar goncaloacteixeira avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

ca-moes

ltw-project-g60's Issues

HTML → PHP

Refactor project to PHP, using templates structure.

ToDo | Minimal & Extra Requirements

Minimal:

  • User
    • Register
    • Login
    • LogOut
    • Edit Profile
      • Edit Username
      • Edit Password
      • Adicionar shelter a colaborações
    • Adicionar Pets a Favoritos
    • Adicionar questões a outros pets
    • Propor um pet
  • Posts
    • User adicionar Pets com informação (nome/sem nome, espécie, tamanho, cor, photos, localização)
    • Editar Posts antigos
    • Questões e Respostas em Posts
    • Aceitar ou Recusar Proposals
  • Pesquisar por Pets

Extra:

  • Shelters como utilizadores
  • Shelters terem uma página dedicada com todos os pets para adoção
  • Users serem colaboradores de um shelter
    • Terem possibilidade de editar info sobre o shelter
    • Terem possibilidade de editar os pets do shelter
  • Ter um Workflow para a adoção de testes
  • Após users adotarem um pet, O pet fica como adopted e dá na mesma para adicioanr fotos á galeria

X - Dani
@ - Filipe
% - Gonçalo

  • X Ver favoritos - botão que altera "My Pets" e troca-se a si próprio para uma casa

  • % CORES

  • X Verificação Inputs

    • Add pet <- Falta pôr sugestões com CSS
    • Registo
  • % Estilo Inputs

  • @ Proposals (JS):

    • Comentário/Motivação
    • Botão submit
  • X Add to Favourites em cada pet

  • %? Página de próprio user com capacidade de editar campos:

    • About me
    • password
    • username
  • X Pesquisa de Pets

  • % HomePage - não ter texto todo nos pets. Pôr max length e a acabar com ...

  • % Adicionar unidades comprimento em pets_list

  • @ Responsivo

    • Telemóvel
    • Tablet
  • X Segurança

  • Caso os anos sejam menores que 0, pôr em meses

  • Retirar Favoritos da página pets_list para utilizadores não registados e shelters

  • Aquelas pontas da direita
    image

  • REST API

Style CSS

  • Cores
  • Estilo dos Inputs
  • Acabar descrição homepage com "..." e max length
  • Style dos Favoritos
  • Editar Info Utilizador/Shelter (quando js estiver feito) **falta php **
  • Adicionar proposta (idem)
  • Estilo About Me (idem)
  • Estilo Contacts (idem)
  • Caso anos seja maior que 0, colocar meses (php) -> trocar anos por meses

CSRF

  • pôr acceptProposal como action_accept_Proposal
  • fix a botão dos favoritos

  • action_add_comment - AJAX
  • action_add_favorite - AJAX
  • action_add_pet
  • action_add_reply - AJAX
  • action_edit_pet
  • action_edit_shelter
  • action_edit_user
  • action_get_favorites - AJAX - não recebe dados
  • action_login
  • action_logout - não recebe dados e não acede a db
  • action_register
  • action_remove_favorite - AJAX
  • action_submit_proposal
<input id="csrf_var" type="hidden" name="csrf" value="<?=$_SESSION['csrf']?>">

include 'csrf_set.php';
set_csrf();

if (!isset($_SESSION['csrf']) || $_SESSION['csrf'] !== $_POST['csrf']){
  echo '<script type="text/javascript">alert("Hacker Attack")</script>';
  die();
}

Using SASS as CSS Preprocessor

Preprocessing

CSS on its own can be fun, but stylesheets are getting larger, more complex, and harder to maintain. This is where a preprocessor can help. Sass lets you use features that don't exist in CSS yet like variables, nesting, mixins, inheritance and other nifty goodies that make writing CSS fun again.

Once you start tinkering with Sass, it will take your preprocessed Sass file and save it as a normal CSS file that you can use in your website.

Installing SASS

Install Anywhere (Standalone)

You can install Sass on Windows, Mac, or Linux by downloading the package for your operating system from GitHub and adding it to your PATH. That’s all—there are no external dependencies and nothing else you need to install.

Install Anywhere (npm)

If you use Node.js, you can also install Sass using npm by running

npm install -g sass

However, please note that this will install the pure JavaScript implementation of Sass, which runs somewhat slower than the other options listed here. But it has the same interface, so it’ll be easy to swap in another implementation later if you need a bit more speed!

Webstorm

Guide to SASS/LESS/SCSS on WebStorm

How to code in SASS

You can find useful information here

Project Structure

Our SASS files will be stored on ./style
The main .css file (style.css) will contain all CSS code from every SASS file.

The goal here is to separate styles from each page in several SASS files, this allows us to have a better understanding of what is going on with our site's style.

  • style.sass should only contain @use statements so it can process every other SASS file inside.
  • there sould be a SASS file for every group of pages. i.e. credentials.sass for login.html and register.html; homepage.sass for homepage.html, etc.
  • common.sass should contain style code for common elements throughout the project as the filename suggests.

This ussue will be updated as we learn more about SASS.

Responsivo

  • Add pet
  • Homepage
  • Shelter Profile
  • User Profile
  • Pets List
  • Shelters List
  • Pet Detail
  • Register
  • Login
  • Navigation bar

ToDo

X - Dani
@ - Filipe
% - Gonçalo

  • X Ver favoritos - botão que altera "My Pets" e troca-se a si próprio para uma casa

  • % CORES

  • X Verificação Inputs

    • Add pet <-
    • Registo
  • % Estilo Inputs

  • @ Proposals (JS):

    • Comentário/Motivação
    • Botão submit
  • X Add to Favourites em cada pet

  • %? Página de próprio user com capacidade de editar campos:

    • About me
    • password
    • username
  • X Pesquisa de Pets

  • % HomePage - não ter texto todo nos pets. Pôr max length e a acabar com ...

  • % Adicionar unidades comprimento em pets_list

  • @ Responsivo

    • Telemóvel
    • Tablet
  • X Segurança

  • Caso os anos sejam menores que 0, pôr em meses

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.