Skip to content
Snippets Groups Projects
Verified Commit 5184500e authored by Matthew Wang's avatar Matthew Wang
Browse files

Fix invalid CSS, resolve all `javac` warnings

parent b29f901e
No related branches found
No related tags found
No related merge requests found
Pipeline #575984 passed with stages
in 1 minute and 53 seconds
*.class
.DS_Store
*.html
import java.util.Arrays;
import java.util.stream.Stream;
import java.util.List;
import java.util.stream.Collectors;
import java.lang.reflect.Method;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.io.*;
public class GenerateProducts {
......@@ -21,7 +19,6 @@ public class GenerateProducts {
PrintStream out = new PrintStream(new FileOutputStream("index.html", true));
Method[] methods = products.getMethods();
Stream<Method> stream1 = Arrays.stream(methods);
List<Method> productList = Arrays.stream(methods)
.filter(line -> line.getReturnType().equals(product))
.collect(Collectors.toList());
......
import java.util.Arrays;
import java.util.stream.Stream;
import java.util.List;
import java.util.stream.Collectors;
import java.lang.reflect.Method;
import java.lang.reflect.Field;
import java.io.*;
public class GenerateSite {
......@@ -13,20 +7,10 @@ public class GenerateSite {
public static final String itemEnd = "</li>";
public static void main(String[] args) throws Exception {
Class<?> staff = Staff.class;
Class<?> employee = Employee.class;
Object dummy = staff.getDeclaredConstructor().newInstance();
clearFiles(".");
clearFiles("staff");
PrintStream out = new PrintStream(new File("index.html"));
Method[] methods = staff.getMethods();
Stream<Method> stream1 = Arrays.stream(methods);
List<Method> employeeList = Arrays.stream(methods)
.filter(line -> line.getReturnType().equals(employee))
.collect(Collectors.toList());
printHeader(out, "FAANG");
out.println(indent(2) + "<h1><span class=\"company\">FAANG</span><span class=\"slogan\">Insert Catchy Slogan Here</span></h1>");
......@@ -34,7 +18,7 @@ public class GenerateSite {
out.println(indent(3) + "<div class=\"left_col\">");
out.println(indent(4) + "<p class=\"tab\">Products</p>");
out.println(indent(4) + listStart);
out.close();
GenerateProducts.main(null);
......
import java.util.Arrays;
import java.util.stream.Stream;
import java.util.List;
import java.util.stream.Collectors;
import java.lang.reflect.Method;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.io.*;
public class GenerateStaff {
......@@ -21,7 +19,6 @@ public class GenerateStaff {
PrintStream out = new PrintStream(new FileOutputStream("index.html", true));
Method[] methods = staff.getMethods();
Stream<Method> stream1 = Arrays.stream(methods);
List<Method> employeeList = Arrays.stream(methods)
.filter(line -> line.getReturnType().equals(employee))
.collect(Collectors.toList());
......
import java.io.*;
/* check out these products! */
public class Products { /* a good class, but not as good as cse391 */
public Product joshsProduct() {
return new Product("Dirt", "The good stuff", "dirt.jpeg", 0.0);
}
}
import java.io.*;
public class Staff {
public Employee faangPup() {
return new Employee("Steve", "Company Pup", "Provides Moral Support", "pup.jpg");
}
......@@ -9,4 +7,4 @@ public class Staff {
public Employee cjobes() {
return new Employee("Colton", "Lead Naps Analyst", "What do you mean I'm not valuable to the company?", "colton.jpg");
}
}
}
@font-face {
font-family: 'Manrope'; /*a name to be used later*/
src: url('../fonts/Manrope-ExtraBold.otf'); /*URL to font*/
font-family: "Manrope"; /*a name to be used later*/
src: url("../fonts/Manrope-ExtraBold.otf"); /*URL to font*/
}
@font-face {
font-family: 'Manrope-Var'; /*a name to be used later*/
src: url('../fonts/Manrope-Light.otf'); /*URL to font*/
font-family: "Manrope-Var"; /*a name to be used later*/
src: url("../fonts/Manrope-Light.otf"); /*URL to font*/
}
body {
width: 50%;
margin: auto;
padding: 0;
width: 50%;
margin: auto;
padding: 0;
}
h1 {
margin: 0;
padding: 0;
font-family: 'Manrope';
font-size: 40pt;
text-align: center;
margin-top: 75px;
color: #363C74;
margin: 0;
padding: 0;
font-family: "Manrope";
font-size: 40pt;
text-align: center;
margin-top: 75px;
color: #363c74;
}
p {
margin: 0;
padding: 0;
font-family: 'Manrope-Var';
font-size: 27pt;
margin: 0;
padding: 0;
font-family: "Manrope-Var";
font-size: 27pt;
}
li {
margin: 5px;
margin: 5px;
}
.tab {
font-family: 'Manrope-var';
font-size: 15pt;
text-align: center;
padding-top: 10px;
font-family: "Manrope-var";
font-size: 15pt;
text-align: center;
padding-top: 10px;
}
.company {
font-family: 'Manrope';
font-size: 40pt;
padding-right: 20px;
font-family: "Manrope";
font-size: 40pt;
padding-right: 20px;
}
.slogan {
font-family: 'Manrope-Var';
font-size: 27pt;
color: #E8D3A2;
font-family: "Manrope-Var";
font-size: 27pt;
color: #e8d3a2;
}
.entry {
font-family: 'Manrope';
font-size: 15pt;
color: black;
text-decoration: none;
font-family: "Manrope";
font-size: 15pt;
color: black;
text-decoration: none;
}
.entry:hover {
color: #E8D3A2;
text-decoration: none;
color: #e8d3a2;
text-decoration: none;
}
.entry:visited {
color: #363C74;
text-decoration: none;
color: #363c74;
text-decoration: none;
}
.entry:visited:hover {
color: #E8D3A2;
text-decoration: none;
color: #e8d3a2;
text-decoration: none;
}
.about {
font-family: 'Manrope';
font-size: 15pt;
margin; 5px
color: black;
text-decoration: none;
line-height: 1em;
font-family: "Manrope";
font-size: 15pt;
margin: 5px;
color: black;
text-decoration: none;
line-height: 1em;
}
.wrap {
margin:0 auto;
margin: 0 auto;
}
.left_col {
float:left;
width: 50%;
float: left;
width: 50%;
}
.right_col {
float:right;
width: 50%;
float: right;
width: 50%;
}
img {
display: block;
max-width: 100%;
height: auto;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment