Too bad you get the layoff.
This is no surprise in these days.
Update your resume, keep looking.
As long as they offer you a good job, go for it.
It doesn't matter the company size.
It doesn't matter the job is contract or not.
You do not have to only looking for the big company.
Many small companies actually is much nicer then the big companies.