Add more styles
This commit is contained in:
parent
03157faac5
commit
3db9dc1173
5 changed files with 38 additions and 24 deletions
|
@ -27,4 +27,12 @@ export default class Carousel extends Component<CarouselProps, CarouselState> {
|
||||||
<div className="carousel-next" onClick={this.scrollToNext.bind(this)}>></div>
|
<div className="carousel-next" onClick={this.scrollToNext.bind(this)}>></div>
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
|
public componentDidMount(): void {
|
||||||
|
let elem = (this.state.innerRef as any).current as HTMLDivElement;
|
||||||
|
if (elem.scrollWidth < elem.parentElement.scrollWidth) {
|
||||||
|
elem.parentElement.querySelector(".carousel-next").setAttribute("style", "display: none;");
|
||||||
|
} else {
|
||||||
|
elem.parentElement.querySelector(".carousel-next").setAttribute("style", "");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -15,9 +15,9 @@ export default class CarouselItem extends Component<CarouselItemProps, CarouselI
|
||||||
}
|
}
|
||||||
|
|
||||||
public render() {
|
public render() {
|
||||||
return <div className="carousel-item">
|
return <a className="carousel-item" href={this.props.location}>
|
||||||
<img src={this.props.image}></img>
|
<img src={this.props.image}></img>
|
||||||
<a href={this.props.location}>{this.props.workshopName}</a>
|
<a href={this.props.location}>{this.props.workshopName}</a>
|
||||||
</div>;
|
</a>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,6 +94,10 @@ body {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
column-gap: 2.5em;
|
column-gap: 2.5em;
|
||||||
}
|
}
|
||||||
|
.row-group::after{
|
||||||
|
content: "";
|
||||||
|
width: 10em;
|
||||||
|
}
|
||||||
.section-title {
|
.section-title {
|
||||||
color: var(--med-blue);
|
color: var(--med-blue);
|
||||||
font-size: 2.4em;
|
font-size: 2.4em;
|
||||||
|
@ -229,9 +233,19 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Responsive queries go here */
|
/* Responsive queries go here */
|
||||||
@media screen and (max-width: 760px) {
|
@media screen and (max-width: 617px) {
|
||||||
|
.row-group {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.slideshow-image {
|
||||||
|
width: 18em;
|
||||||
|
}
|
||||||
|
.nav-link {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (min-width: 1645px) {
|
||||||
|
.row-group::after {
|
||||||
|
width: 25em;
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 430px) {
|
|
||||||
|
|
||||||
}
|
}
|
BIN
src/public/img/temp.png
Normal file
BIN
src/public/img/temp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
|
@ -34,14 +34,6 @@ const EVENTS = [{
|
||||||
image: "img/event.png",
|
image: "img/event.png",
|
||||||
workshopName: "Workshop Name",
|
workshopName: "Workshop Name",
|
||||||
location: "/"
|
location: "/"
|
||||||
},{
|
|
||||||
image: "img/event.png",
|
|
||||||
workshopName: "Workshop Name",
|
|
||||||
location: "/"
|
|
||||||
},{
|
|
||||||
image: "img/event.png",
|
|
||||||
workshopName: "Workshop Name",
|
|
||||||
location: "/"
|
|
||||||
}];
|
}];
|
||||||
|
|
||||||
const officers = [{
|
const officers = [{
|
||||||
|
@ -83,7 +75,7 @@ const officers = [{
|
||||||
},{
|
},{
|
||||||
name: "Samyak Karnavat",
|
name: "Samyak Karnavat",
|
||||||
position: "Social Chair",
|
position: "Social Chair",
|
||||||
photo: "img/samyak.jpg"
|
photo: "img/temp.png"
|
||||||
},{
|
},{
|
||||||
name: "Tasnia Jamal",
|
name: "Tasnia Jamal",
|
||||||
position: "Social Chair",
|
position: "Social Chair",
|
||||||
|
@ -95,7 +87,7 @@ const officers = [{
|
||||||
},{
|
},{
|
||||||
name: "Zhiqiang Pi",
|
name: "Zhiqiang Pi",
|
||||||
position: "Quarterly Projects Chair",
|
position: "Quarterly Projects Chair",
|
||||||
photo: "img/zhiqiang.jpg"
|
photo: "img/temp.png"
|
||||||
},{
|
},{
|
||||||
name: "Kevin Chang",
|
name: "Kevin Chang",
|
||||||
position: "Quarterly Projects Chair",
|
position: "Quarterly Projects Chair",
|
||||||
|
@ -103,7 +95,7 @@ const officers = [{
|
||||||
},{
|
},{
|
||||||
name: "Benjamin Tang",
|
name: "Benjamin Tang",
|
||||||
position: "Project Space Chair",
|
position: "Project Space Chair",
|
||||||
photo: "img/benjamin.jpg"
|
photo: "img/temp.png"
|
||||||
},{
|
},{
|
||||||
name: "Jason Liang",
|
name: "Jason Liang",
|
||||||
position: "Professional Chair",
|
position: "Professional Chair",
|
||||||
|
@ -131,11 +123,11 @@ const officers = [{
|
||||||
},{
|
},{
|
||||||
name: "Soyon Kim",
|
name: "Soyon Kim",
|
||||||
position: "Outreach Chair",
|
position: "Outreach Chair",
|
||||||
photo: "img/soyon.jpg"
|
photo: "img/temp.png"
|
||||||
},{
|
},{
|
||||||
name: "Niklas Chang",
|
name: "Niklas Chang",
|
||||||
position: "Events Coordinator",
|
position: "Events Coordinator",
|
||||||
photo: "img/niklas.jpg"
|
photo: "img/temp.png"
|
||||||
}];
|
}];
|
||||||
|
|
||||||
interface MainProps {}
|
interface MainProps {}
|
||||||
|
@ -149,19 +141,19 @@ class Main extends React.Component<MainProps, MainState> {
|
||||||
public render() {
|
public render() {
|
||||||
return <>
|
return <>
|
||||||
<TopNav names={ACTIVE_PAGES} links={ACTIVE_PAGES.map(e=>"#" + e.toLowerCase())} image="img/IEEEUCSD.png" alt="IEEE at UCSD Logo"></TopNav>
|
<TopNav names={ACTIVE_PAGES} links={ACTIVE_PAGES.map(e=>"#" + e.toLowerCase())} image="img/IEEEUCSD.png" alt="IEEE at UCSD Logo"></TopNav>
|
||||||
<HorizontalSection title="About" link="about:blank" id="about">
|
<HorizontalSection title="About" link="/" id="about">
|
||||||
<ImageGallery urls={TEAM_PHOTOS} alt="Team photos" delay={8000}></ImageGallery>
|
<ImageGallery urls={TEAM_PHOTOS} alt="Team photos" delay={8000}></ImageGallery>
|
||||||
<span className="description-text">
|
<span className="description-text">
|
||||||
<strong>We are dedicated to helping develop students into professional Engineers</strong><br/><br/>
|
<strong>We are dedicated to helping develop students into professional Engineers</strong><br/><br/>
|
||||||
As an organization, we strive to provide opportunities to students both at UC San Diego and in the larger STEM community to gain hands-on experience with autonomous robotics and its various disciplines. Throughout the year, we host dozens of events and workshops to teach skills not frequently taught in the classroom, as well as outreach events for students looking to give back to the STEM community. We also provide professional development and other resources to help students achieve their true potential as they develop into professional engineers.
|
As an organization, we strive to provide opportunities to students both at UC San Diego and in the larger STEM community to gain hands-on experience with autonomous robotics and its various disciplines. Throughout the year, we host dozens of events and workshops to teach skills not frequently taught in the classroom, as well as outreach events for students looking to give back to the STEM community. We also provide professional development and other resources to help students achieve their true potential as they develop into professional engineers.
|
||||||
</span>
|
</span>
|
||||||
</HorizontalSection>
|
</HorizontalSection>
|
||||||
<HorizontalSection title="Events" link="about:blank" id="events">
|
<HorizontalSection title="Events" link="/" id="events">
|
||||||
<Carousel>
|
<Carousel>
|
||||||
{EVENTS.map(e=><CarouselItem {...e}/>)}
|
{EVENTS.map(e=><CarouselItem {...e}/>)}
|
||||||
</Carousel>
|
</Carousel>
|
||||||
</HorizontalSection>
|
</HorizontalSection>
|
||||||
<HorizontalSection title="Project Space" link="about:blank" id="projects">
|
<HorizontalSection title="Project Space" link="/" id="projects">
|
||||||
<ImageGallery urls={PROJECT_SPACE} alt="The IEEE Project Space" delay={8000}></ImageGallery>
|
<ImageGallery urls={PROJECT_SPACE} alt="The IEEE Project Space" delay={8000}></ImageGallery>
|
||||||
<span className="description-text">
|
<span className="description-text">
|
||||||
This is a description all about the project space and how amazingly awesome it is
|
This is a description all about the project space and how amazingly awesome it is
|
||||||
|
@ -172,9 +164,9 @@ class Main extends React.Component<MainProps, MainState> {
|
||||||
</span>
|
</span>
|
||||||
<br/>
|
<br/>
|
||||||
<Availability checkUrl="/">Check all availability</Availability>
|
<Availability checkUrl="/">Check all availability</Availability>
|
||||||
<ButtonLink url="about:blank">Check all availability</ButtonLink>
|
<ButtonLink url="https://calendar.google.com/calendar/embed?src=c_6s39rvn2ltu208443e0j2e1b58%40group.calendar.google.com">Check all availability</ButtonLink>
|
||||||
</HorizontalSection>
|
</HorizontalSection>
|
||||||
<HorizontalSection title="Officers" link="about:blank" id="officers" row={true}>
|
<HorizontalSection title="Officers" link="/" id="officers" row={true}>
|
||||||
{officers.map(o=><Officer name={o.name} position={o.position} photo={o.photo} key={o.name}></Officer>)}
|
{officers.map(o=><Officer name={o.name} position={o.position} photo={o.photo} key={o.name}></Officer>)}
|
||||||
</HorizontalSection>
|
</HorizontalSection>
|
||||||
</>;
|
</>;
|
||||||
|
|
Loading…
Reference in a new issue