Commit 63410362 by jlec1991

Commit inicial de prueba

parents
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
/build/
/target/
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>AgendaPersonalWeb</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.jboss.tools.jst.web.kb.kbbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.hibernate.eclipse.console.hibernateBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.jboss.tools.cdi.core.cdibuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.jboss.tools.ws.jaxrs.metamodelBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.hibernate.eclipse.console.hibernateNature</nature>
<nature>org.jboss.tools.jst.web.kb.kbnature</nature>
<nature>org.jboss.tools.cdi.core.cdinature</nature>
<nature>org.jboss.tools.ws.jaxrs.nature</nature>
<nature>org.jboss.tools.jsf.jsfnature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="src/main/webapp"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.7
eclipse.preferences.version=1
org.eclipse.jpt.core.platform=hibernate
org.eclipse.jpt.jpa.core.discoverAnnotatedClasses=true
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="AgendaPersonalWeb-0.0.1-SNAPSHOT">
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<property name="context-root" value="AgendaPersonalWeb"/>
<property name="java-output-path" value="/AgendaPersonalWeb/target/classes"/>
</wb-module>
</project-modules>
<root>
<facet id="jst.jaxrs">
<node name="libprov">
<attribute name="provider-id" value="jaxrs-no-op-library-provider"/>
</node>
</facet>
<facet id="jpt.jpa">
<node name="libprov">
<attribute name="provider-id" value="jpa-no-op-library-provider"/>
</node>
</facet>
<facet id="jst.jsf">
<node name="libprov">
<attribute name="provider-id" value="jsf-no-op-library-provider"/>
</node>
</facet>
</root>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v7.0"/>
<fixed facet="java"/>
<fixed facet="jst.web"/>
<fixed facet="wst.jsdt.web"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="jboss.m2" version="1.0"/>
<installed facet="jst.cdi" version="1.0"/>
<installed facet="jst.jaxrs" version="1.1"/>
<installed facet="java" version="1.7"/>
<installed facet="jpt.jpa" version="1.0"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="jst.jsf" version="2.1"/>
</faceted-project>
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Window
\ No newline at end of file
disabled=06target
eclipse.preferences.version=1
default.configuration=AgendaPersonalWeb
eclipse.preferences.version=1
hibernate3.enabled=true
{
"plugins": {
"guess-types": {
},
"outline": {
},
"angular": {
}
},
"libs": [
"browser"
]
}
\ No newline at end of file
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>AgendaPersonalWeb</groupId>
<artifactId>AgendaPersonalWeb</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>5.0.0.Final</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.1.7</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.1.7</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.glassfish.main.extras</groupId>
<artifactId>glassfish-embedded-all</artifactId>
<version>3.1.2.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.3.0.Final</version>
</dependency>
<dependency>
<groupId>javax.ejb</groupId>
<artifactId>javax.ejb-api</artifactId>
<version>3.2.2</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.4-1200-jdbc4</version>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<version>1.0.2.Final</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.3</version>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="PUAgendaPersonal"
transaction-type="RESOURCE_LOCAL">
<class>ec.edu.epn.entities.Correo</class>
<class>ec.edu.epn.entities.Persona</class>
<class>ec.edu.epn.entities.Telefono</class>
<properties>
<property name="javax.persistence.jdbc.driver"
value="org.postgresql.Driver" /> <!-- DB Driver -->
<property name="javax.persistence.jdbc.url"
value="jdbc:postgresql://localhost:5432/agenda" /> <!-- BD Mane -->
<property name="javax.persistence.jdbc.user"
value="seguridad" /> <!-- DB User -->
<property name="javax.persistence.jdbc.password"
value="seguridad" /> <!-- DB Password -->
<property name="hibernate.dialect"
value="org.hibernate.dialect.PostgreSQLDialect" /> <!-- DB Dialect -->
</properties>
</persistence-unit>
</persistence>
\ No newline at end of file
package ec.edu.epn.controller;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import ec.edu.epn.entities.Correo;
import ec.edu.epn.entities.Persona;
import ec.edu.epn.entities.Telefono;
import ec.edu.epn.model.PersonaDAO;
@ManagedBean(name = "agendaController")
@ViewScoped
public class AgendaController implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private String nombre;
private String apellido;
private String direccion;
private String telefono;
private String correo;
public void guardarRegistroEnBDD() {
Persona persona = new Persona(nombre, apellido, direccion);
List<Telefono> telefonos = new ArrayList<>();
telefonos.add(new Telefono(telefono, persona));
List<Correo> correos = new ArrayList<Correo>();
correos.add(new Correo(correo, persona));
PersonaDAO personaDAO = new PersonaDAO();
personaDAO.create(persona);
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getApellido() {
return apellido;
}
public void setApellido(String apellido) {
this.apellido = apellido;
}
public String getDireccion() {
return direccion;
}
public void setDireccion(String direccion) {
this.direccion = direccion;
}
public String getTelefono() {
return telefono;
}
public void setTelefono(String telefono) {
this.telefono = telefono;
}
public String getCorreo() {
return correo;
}
public void setCorreo(String correo) {
this.correo = correo;
}
}
package ec.edu.epn.entities;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
@Entity(name = "correo")
public class Correo implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id_correo")
private Integer idCorreo;
@Column(name = "correo")
private String correo;
@JoinColumn(name = "id_persona", referencedColumnName = "id_persona")
@ManyToOne
private Persona persona;
public Correo(String correo, Persona persona) {
super();
this.correo = correo;
this.persona = persona;
}
public Correo() {
}
public Integer getIdCorreo() {
return idCorreo;
}
public void setIdCorreo(Integer idCorreo) {
this.idCorreo = idCorreo;
}
public String getCorreo() {
return correo;
}
public void setCorreo(String correo) {
this.correo = correo;
}
public Persona getPersona() {
return persona;
}
public void setPersona(Persona persona) {
this.persona = persona;
};
}
\ No newline at end of file
package ec.edu.epn.entities;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity(name = "persona")
public class Persona implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@Column(name = "id_persona", unique = true, nullable = false)
private Integer idPersona;
@Column(name = "nombre")
private String nombre;
@Column(name = "apellido")
private String apellido;
@Column(name = "direccion")
private String direccion;
@OneToMany(mappedBy = "persona", cascade = { CascadeType.PERSIST, CascadeType.MERGE })
private List<Correo> correos;
@OneToMany(mappedBy = "persona", cascade = { CascadeType.PERSIST, CascadeType.MERGE })
private List<Telefono> telefonos;
public Persona(String nombre, String apellido, String direccion) {
this.nombre = nombre;
this.apellido = apellido;
this.direccion = direccion;
}
public Persona() {
}
public Integer getIdPersona() {
return idPersona;
}
public void setIdPersona(Integer idPersona) {
this.idPersona = idPersona;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getApellido() {
return apellido;
}
public void setApellido(String apellido) {
this.apellido = apellido;
}
public String getDireccion() {
return direccion;
}
public void setDireccion(String direccion) {
this.direccion = direccion;
}
public List<Correo> getCorreos() {
return correos;
}
public void setCorreos(List<Correo> correos) {
this.correos = correos;
}
public List<Telefono> getTelefonos() {
return telefonos;
}
public void setTelefonos(List<Telefono> telefonos) {
this.telefonos = telefonos;
}
}
\ No newline at end of file
package ec.edu.epn.entities;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
@Entity(name = "telefono")
public class Telefono implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id_telefono")
private Integer idTelefono;
@Column(name = "telefono")
private String telefono;
@JoinColumn(name = "id_persona", referencedColumnName = "id_persona")
@ManyToOne
private Persona persona;
public Telefono(String telefono, Persona persona) {
this.telefono = telefono;
this.persona = persona;
}
public Telefono() {};
public Integer getIdTelefono() {
return idTelefono;
}
public void setIdTelefono(Integer idTelefono) {
this.idTelefono = idTelefono;
}
public String getTelefono() {
return telefono;
}
public void setTelefono(String telefono) {
this.telefono = telefono;
}
public Persona getPersona() {
return persona;
}
public void setPersona(Persona persona) {
this.persona = persona;
}
}
package ec.edu.epn.factories;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
@WebListener
public class EMF implements ServletContextListener {
private static EntityManagerFactory emf;
@Override
public void contextInitialized(ServletContextEvent event) {
emf = Persistence.createEntityManagerFactory("PUAgendaPersonal");
}
@Override
public void contextDestroyed(ServletContextEvent event) {
emf.close();
}
public static EntityManager createEntityManager() {
if (emf == null) {
throw new IllegalStateException("Context is not initialized yet.");
}
return emf.createEntityManager();
}
}
package ec.edu.epn.model;
import javax.persistence.EntityManager;
import ec.edu.epn.factories.EMF;
public abstract class AbstractFacade<T> {
private Class<T> entityClass;
protected EntityManager em = EMF.createEntityManager();
public AbstractFacade(Class<T> entityClass) {
this.entityClass = entityClass;
}
public void create(T entity) {
try {
em.getTransaction().begin();
em.persist(entity);
em.getTransaction().commit();
} catch (Exception e) {
System.err.println("Ha ocurrido un error al persistir la entidad: " + entity.getClass().toString()
+ " Error: " + e.getMessage());
} finally {
em.close();
}
}
public void edit(T entity) {
try {
em.getTransaction().begin();
em.merge(entity);
em.getTransaction().commit();
} catch (Exception e) {
System.err.println("Ha ocurrido un error al modificar la entidad: " + entity.getClass().toString()
+ " Error: " + e.getMessage());
} finally {
em.close();
}
}
public void remove(T entity) {
try {
em.getTransaction().begin();
em.remove(em.merge(entity));
em.getTransaction().commit();
} catch (Exception e) {
System.err.println("Ha ocurrido un error al eliminar la entidad: " + entity.getClass().toString()
+ " Error: " + e.getMessage());
} finally {
em.close();
}
}
public T find(Object id) {
T entity = null;
try {
entity = em.find(entityClass, id);
} catch (Exception e) {
System.err.println(
"Ha ocurrido un error al buscar la entidad: " + id.toString() + " Error: " + e.getMessage());
} finally {
em.close();
}
return entity;
}
}
package ec.edu.epn.model;
import ec.edu.epn.entities.Correo;
public class CorreoDAO extends AbstractFacade<Correo> {
public CorreoDAO() {
super(Correo.class);
}
}
package ec.edu.epn.model;
import ec.edu.epn.entities.Persona;
public class PersonaDAO extends AbstractFacade<Persona> {
public PersonaDAO() {
super(Persona.class);
}
}
package ec.edu.epn.model;
import ec.edu.epn.entities.Telefono;
public class TelefonoDAO extends AbstractFacade<Telefono> {
public TelefonoDAO() {
super(Telefono.class);
}
}
Manifest-Version: 1.0
Class-Path:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://jboss.org/schema/cdi/beans_1_0.xsd">
</beans>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">
</faces-config>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://JAVA.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<display-name>AgendaPersonalWeb</display-name>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
</web-app>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<head>
<title>Agenda personal</title>
</head>
<h:body>
<h:form>
<h:panelGrid columns="2" layout="grid">
<h:outputText value="Nombre" class='bx bxs-user'
style="FONT-SIZE: 12px; FONT-WEIGHT: bold; FONT-FAMILY: arial; " />
<h:inputText id="nombre" value="#{agendaController.nombre}" />
<h:outputText value="Apellido:"
style="FONT-SIZE: 12px; FONT-WEIGHT: bold; FONT-FAMILY: arial; " />
<h:inputText id="apellido" value="#{agendaController.apellido}" />
<h:outputText value="Teléfono:"
style="FONT-SIZE: 12px; FONT-WEIGHT: bold; FONT-FAMILY: arial; " />
<h:inputText id="telefono" value="#{agendaController.telefono}" />
<h:outputText value="Correo:"
style="FONT-SIZE: 12px; FONT-WEIGHT: bold; FONT-FAMILY: arial; " />
<h:inputText id="correo" value="#{agendaController.correo}" />
</h:panelGrid>
<h:commandButton value="Guardar Dato"
actionListener="#{agendaController.guardarRegistroEnBDD}" />
</h:form>
</h:body>
<style>
* {
margin: none;
padding: none;
box-sizing: border-box;
}
.Container {
position: relative;
outline: 1px solid black;
max-width: 20%;
min-width: 20%;
height: 100%;
padding: 20px;
margin: auto;
margin-top: 10%;
border-radius: 50px;
background: linear-gradient(145deg, #cacaca, #f0f0f0);
box-shadow: 6px 6px 17px #989898, -6px -6px 17px #ffffff;
}
.form {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.label {
margin-top: 20px;
position: relative;
font-weight: bold;
text-align: right;
}
input {
outline: none;
border: none;
width: 80%;
border-radius: 20px;
padding: 5px;
}
.btn {
box-shadow: 3px 4px 0px 0px #8a2a21;
background: linear-gradient(to bottom, #c62d1f 5%, #f24437 100%);
background-color: #c62d1f;
border-radius: 18px;
margin-top: 30px;
margin-bottom: 30px;
border: 1px solid #d02718;
display: inline-block;
cursor: pointer;
color: #ffffff;
font-family: Arial;
font-size: 17px;
padding: 7px 25px;
text-decoration: none;
text-shadow: 0px 1px 0px #810e05;
}
.btn:hover {
background: linear-gradient(to bottom, #f24437 5%, #c62d1f 100%);
background-color: #f24437;
}
.btn:active {
position: relative;
top: 1px;
}
@media ( max-width : 1085px) {
.container {
max-width: 40%;
min-width: 40%;
}
}
@media ( max-width : 550px) {
.container {
max-width: 45%;
min-width: 45%;
}
}
</style>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment